diff --git a/perl-JSON.spec b/perl-JSON.spec index 7bb5190968054980f5b277a6572fe1c19ecda03b..4dacbd1ece722331fe44988fd411de03450e5477 100644 --- a/perl-JSON.spec +++ b/perl-JSON.spec @@ -1,3 +1,5 @@ +%define anolis_release .0.1 + # Upstream has switched back to five-digit versions temporarily %global rpm_version 2.97 %global temp_version_suffix 001 @@ -5,7 +7,7 @@ Name: perl-JSON Summary: Parse and convert to JSON (JavaScript Object Notation) Version: %{rpm_version}%{?temp_version_suffix:.%{temp_version_suffix}} -Release: 2%{?dist} +Release: 2%{anolis_release}%{?dist} License: GPL+ or Artistic Source0: http://search.cpan.org/CPAN/authors/id/I/IS/ISHIGAKI/JSON-%{rpm_version}%{?temp_version_suffix}.tar.gz @@ -42,6 +44,14 @@ BuildRequires: perl(Tie::IxHash) This module converts between JSON (JavaScript Object Notation) and Perl data structure into each other. For JSON, see http://www.crockford.com/JSON/. +%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-%{rpm_version}%{?temp_version_suffix} @@ -63,11 +73,16 @@ find %{buildroot} -type f -name .packlist -delete make test %files -%doc Changes README %{perl_vendorlib}/* %{_mandir}/man3/* +%files doc +%doc Changes README + %changelog +* Tue Jul 19 2022 Liwei Ge - 2.97.001-2.0.1 +- Add doc sub package + * Thu Feb 08 2018 Fedora Release Engineering - 2.97.001-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild