diff --git a/perl-Any-URI-Escape.spec b/perl-Any-URI-Escape.spec index ebf69cc24dec85abefcb4df2fd3df060e27d0e54..1d7606cfc3af547035c6fe8ced24b52c2faad30b 100644 --- a/perl-Any-URI-Escape.spec +++ b/perl-Any-URI-Escape.spec @@ -1,74 +1,56 @@ %global _empty_manifest_terminate_build 0 Name: perl-Any-URI-Escape Version: 0.01 -Release: 1 +Release: 2 Summary: Load URI::Escape::XS preferentially over URI::Escape -License: GPL+ or Artistic +License: GPL-1.0-or-later OR Artistic-1.0-Perl Group: Development/Libraries -URL: http://search.cpan.org/dist/Any-URI-Escape/ -Source0: http://www.cpan.org/authors/id/P/PH/PHRED/Any-URI-Escape-%{version}.tar.gz +URL: https://search.cpan.org/dist/Any-URI-Escape/ +Source0: https://www.cpan.org/authors/id/P/PH/PHRED/Any-URI-Escape-%{version}.tar.gz BuildArch: noarch BuildRequires: perl-generators BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(URI::Escape) Requires: perl(URI::Escape) -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + %description URI::Escape is great, but URI::Escape::XS is faster. This module loads URI::Escape::XS and imports the two most common methods if XS is installed. + %package help Summary : Load URI::Escape::XS preferentially over URI::Escape Provides: perl-Any-URI-Escape-doc + %description help URI::Escape is great, but URI::Escape::XS is faster. This module loads URI::Escape::XS and imports the two most common methods if XS is installed. + %prep %setup -q -n Any-URI-Escape-%{version} + %build export PERL_MM_OPT="" %{__perl} Makefile.PL INSTALLDIRS=vendor -make %{?_smp_mflags} +%make_build %install -export PERL_MM_OPT="" -rm -rf $RPM_BUILD_ROOT - make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT -find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; -find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; - %{_fixperms} $RPM_BUILD_ROOT/* -pushd %{buildroot} -touch filelist.lst -if [ -d usr/bin ];then - find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst -fi -if [ -d usr/sbin ];then - find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst -fi -if [ -d usr/lib64 ];then - find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst -fi -if [ -d usr/lib ];then - find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst -fi -popd -mv %{buildroot}/filelist.lst . %check make test -%clean -rm -rf $RPM_BUILD_ROOT - -%files -f filelist.lst -%defattr(-,root,root,-) +%files %doc Changes README %{perl_vendorlib}/* + %files help -%{_mandir}/* +%{_mandir}/man?/* %changelog +* Sun Jan 19 2025 Funda Wang - 0.01-2 +- drop useless perl(:MODULE_COMPAT) requirement + * Wed Aug 12 2020 weidong 0.01-1 - Initial release for OpenEuler