From 9780060e38b9e7d1c0a2824275845699739f1e07 Mon Sep 17 00:00:00 2001 From: DengXiewei Date: Mon, 18 Jul 2022 19:27:55 +0800 Subject: [PATCH] Add doc sub package Signed-off-by: DengXiewei --- libfastjson.spec | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/libfastjson.spec b/libfastjson.spec index c7c71cc..17c3819 100644 --- a/libfastjson.spec +++ b/libfastjson.spec @@ -1,6 +1,8 @@ +%define anolis_release .0.1 + Name: libfastjson Version: 0.99.9 -Release: 1%{?dist} +Release: 1%{anolis_release}%{?dist} Summary: A JSON implementation in C License: MIT URL: https://github.com/rsyslog/libfastjson @@ -24,6 +26,14 @@ Requires: %{name}%{?_isa} = %{version}-%{release} This package contains libraries and header files for developing applications that use libfastjson. +%package doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + +%description doc +Doc pages for %{name}. + %prep %setup -q @@ -52,7 +62,6 @@ make V=1 check %files %{!?_licensedir:%global license %%doc} %license COPYING -%doc AUTHORS ChangeLog README.html %{_libdir}/libfastjson.so.* %files devel @@ -60,7 +69,13 @@ make V=1 check %{_libdir}/libfastjson.so %{_libdir}/pkgconfig/libfastjson.pc +%files doc +%doc AUTHORS ChangeLog README.html + %changelog +* Mon Jul 18 2022 DengXiewei - 0.99.9-1.0.1 +- Add doc sub package + * Thu Apr 22 2021 Attila Lakatos - 0.99.9-1 - rebase to v0.99.9 Resolves: rhbz#1936807 -- Gitee