From cda26213f7ce3942544983b40a7a1935f80a49a7 Mon Sep 17 00:00:00 2001 From: mgb01105731 Date: Sun, 9 Oct 2022 17:36:56 +0800 Subject: [PATCH] add doc package --- libfastjson.spec | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/libfastjson.spec b/libfastjson.spec index 16b1068..4f0826b 100644 --- a/libfastjson.spec +++ b/libfastjson.spec @@ -1,4 +1,4 @@ -%define anolis_release 1 +%define anolis_release 2 Name: libfastjson Version: 0.99.9 Release: %{anolis_release}%{?dist} @@ -17,9 +17,17 @@ objects in C, output them as JSON formatted strings and parse JSON formatted strings back into the C representation of JSON objects. +%package doc +Summary: Documentation files for %{name} +Requires: %{name} = %{version}-%{release} +BuildArch: noarch + +%description doc +The %{name}-doc package contains documentation files for %{name}. + %package devel Summary: Development files for libfastjson -Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: %{name} = %{version}-%{release} %description devel This package contains libraries and header files for @@ -51,14 +59,19 @@ make V=1 check %files %{!?_licensedir:%global license %%doc} %license COPYING -%doc AUTHORS ChangeLog README.html %{_libdir}/libfastjson.so.* +%files doc +%doc AUTHORS ChangeLog README.html + %files devel %{_includedir}/libfastjson %{_libdir}/libfastjson.so %{_libdir}/pkgconfig/libfastjson.pc %changelog +* Sun Oct 09 2022 mgb01105731 - 0.99.9-2 +- add doc package + * Thu Mar 10 2022 Liwei Ge - 0.99.9-1 - Init version from upstream v0.99.9 -- Gitee