From a334ac974ac815f59c441b8f86ccce0fa8c9426c Mon Sep 17 00:00:00 2001 From: Liwei Ge Date: Tue, 19 Jul 2022 11:21:39 +0800 Subject: [PATCH] spec: add sub doc package --- perl-ExtUtils-ParseXS.spec | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/perl-ExtUtils-ParseXS.spec b/perl-ExtUtils-ParseXS.spec index 7708011..fac40f8 100644 --- a/perl-ExtUtils-ParseXS.spec +++ b/perl-ExtUtils-ParseXS.spec @@ -1,8 +1,10 @@ +%define anolis_release .0.1 + Name: perl-ExtUtils-ParseXS # Epoch to compete with perl.spec Epoch: 1 Version: 3.35 -Release: 2%{?dist} +Release: 2%{anolis_release}%{?dist} Summary: Module and a script for converting Perl XS code into C code License: GPL+ or Artistic URL: http://search.cpan.org/dist/ExtUtils-ParseXS/ @@ -46,6 +48,14 @@ ExtUtils::ParseXS will compile XS code into C code by embedding the constructs necessary to let C functions manipulate Perl values and creates the glue necessary to let Perl access those functions. +%package doc +Summary: Documents for %{name} +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +BuildArch: noarch + +%description doc +Doc pages for %{name}. + %prep %setup -q -n ExtUtils-ParseXS-%{version} @@ -64,13 +74,18 @@ ln -s ../../../../bin/xsubpp $RPM_BUILD_ROOT%{perl_vendorlib}/ExtUtils/ make test %files -%doc Changes README %{_bindir}/* %{perl_vendorlib}/* %{_mandir}/man1/* %{_mandir}/man3/* +%files doc +%doc Changes README + %changelog +* Tue Jul 19 2022 Liwei Ge - 1:3.35-2.0.1 +- Add doc sub package + * Thu Feb 08 2018 Fedora Release Engineering - 1:3.35-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild -- Gitee