From 6509ea0eafe2246a110ab3a893dfc2d5127fc62a Mon Sep 17 00:00:00 2001 From: mgb01105731 Date: Fri, 14 Oct 2022 15:34:38 +0800 Subject: [PATCH] optimise spec file & add doc package --- perl-Encode.spec | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/perl-Encode.spec b/perl-Encode.spec index ae8d3db..0a9b7d6 100644 --- a/perl-Encode.spec +++ b/perl-Encode.spec @@ -1,4 +1,4 @@ -%define anolis_release 1 +%define anolis_release 2 %global cpan_version 3.16 Name: perl-Encode @@ -69,6 +69,14 @@ Requires: perl(parent) >= 0.221 The Encode module provides the interface between Perl strings and the rest of the system. Perl strings are sequences of characters. +%package doc +Summary: Documentation files for %{name} +Requires: %{name} = %{epoch}:%{version}-%{release} +BuildArch: noarch + +%description doc +The %{name}-doc package contains documentation files for %{name}. + %package -n perl-encoding Summary: Write your Perl script in non-ASCII or non-UTF-8 Version: 3.00 @@ -119,13 +127,14 @@ perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 \ find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -delete %{_fixperms} $RPM_BUILD_ROOT/* +%generate_compatibility_deps + %check unset AUTHOR_TESTING ENC2XS_NO_COMMENTS ENC2XS_VERBOSE MAKEFLAGS PERL_CORE \ PERL_ENCODING PERL_ENCODE_DEBUG make test %files -%doc AUTHORS Changes README %{_bindir}/encguess %{_bindir}/piconv %{perl_vendorarch}/auto/* @@ -136,6 +145,12 @@ make test %{_mandir}/man1/piconv.* %{_mandir}/man3/Encode.* %{_mandir}/man3/Encode::* +%{abidir}/encguess-option.list +%{abidir}/piconv-option.list +%{abidir}/*.dump + +%files doc +%doc AUTHORS Changes README %files -n perl-encoding %doc AUTHORS Changes README @@ -144,10 +159,14 @@ make test %files devel %{_bindir}/enc2xs +%{abidir}/enc2xs-option.list %{_mandir}/man1/enc2xs.* %{perl_vendorarch}/Encode/*.e2x %{perl_vendorarch}/Encode/encode.h %changelog +* Fri Oct 14 2022 mgb01105731 - 4:3.16-2 +- optimise spec file & add doc package + * Fri Mar 11 2022 Chunmei Xu - 4:3.16-1 - int from upstream 3.16 -- Gitee