From 701c5fa91320f1e3155517d6d90334950e037c97 Mon Sep 17 00:00:00 2001 From: Liwei Ge Date: Tue, 19 Jul 2022 13:28:26 +0800 Subject: [PATCH] spec: add sub doc package --- perl-JSON-PP.spec | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/perl-JSON-PP.spec b/perl-JSON-PP.spec index 6705cb1..0d621e8 100644 --- a/perl-JSON-PP.spec +++ b/perl-JSON-PP.spec @@ -1,3 +1,5 @@ +%define anolis_release .0.1 + # Need to provide five digit version numbers until 3.x, # so that BR: perl(JSON::PP) >= 2.27200 etc. will still work %global our_version 2.97.001 @@ -9,7 +11,7 @@ Name: perl-JSON-PP Epoch: 1 Version: %{our_version} -Release: 3%{?dist} +Release: 3%{anolis_release}%{?dist} Summary: JSON::XS compatible pure-Perl module License: GPL+ or Artistic URL: http://search.cpan.org/dist/JSON-PP/ @@ -70,6 +72,14 @@ Marc Lehmann in C, so must be compiled and installed in the used environment. JSON::PP is a pure-Perl module and is compatible with JSON::XS. +%package doc +Summary: Documents for %{name} +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +BuildArch: noarch + +%description doc +Doc pages for %{name}. + %prep %setup -q -n JSON-PP-%{five_digit_version} @@ -94,14 +104,19 @@ find %{buildroot} -type f -name .packlist -delete make test %files -%doc Changes README %{_bindir}/json_pp %{perl_vendorlib}/JSON/ %{_mandir}/man1/json_pp.1* %{_mandir}/man3/JSON::PP.3* %{_mandir}/man3/JSON::PP::Boolean.3* +%files doc +%doc Changes README + %changelog +* Tue Jul 19 2022 Liwei Ge - 1:2.97.001-3.0.1 +- Add doc sub package + * Fri Jun 08 2018 Petr Pisar - 1:2.97.001-3 - Use perl-interpreter on RHEL -- Gitee