From 5b62cd17356a3c904c687e6b48d40bee00d49e0e Mon Sep 17 00:00:00 2001 From: Funda Wang Date: Sun, 19 Jan 2025 18:08:20 +0800 Subject: [PATCH] drop useless perl(:MODULE_COMPAT) requirement --- perl-Class-C3-Adopt-NEXT.spec | 47 ++++++++++------------------------- 1 file changed, 13 insertions(+), 34 deletions(-) diff --git a/perl-Class-C3-Adopt-NEXT.spec b/perl-Class-C3-Adopt-NEXT.spec index 074242d..75cae9f 100644 --- a/perl-Class-C3-Adopt-NEXT.spec +++ b/perl-Class-C3-Adopt-NEXT.spec @@ -1,12 +1,11 @@ -%global _empty_manifest_terminate_build 0 Name: perl-Class-C3-Adopt-NEXT Version: 0.14 -Release: 1 +Release: 2 Summary: This module is intended as a drop-in replacement for NEXT, supporting the same interface, but using Class::C3 to do the hard work -License: GPL+ or Artistic +License: GPL-1.0-or-later OR Artistic-1.0-Perl Group: Development/Libraries -URL: http://search.cpan.org/dist/Class-C3-Adopt-NEXT/ -Source0: http://www.cpan.org/authors/id/E/ET/ETHER/Class-C3-Adopt-NEXT-%{version}.tar.gz +URL: https://search.cpan.org/dist/Class-C3-Adopt-NEXT/ +Source0: https://www.cpan.org/authors/id/E/ET/ETHER/Class-C3-Adopt-NEXT-%{version}.tar.gz BuildArch: noarch BuildRequires: perl >= 0:5.006 BuildRequires: perl-generators @@ -23,7 +22,6 @@ Requires: perl(List::Util) >= 1.33 Requires: perl(MRO::Compat) Requires: perl(strict) Requires: perl(warnings) -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description This module is intended as a drop-in replacement for NEXT, supporting the same interface, but using Class::C3 to do the hard work. You can then write new code without NEXT, and migrate individual source files to use Class::C3 or method modifiers as appropriate, at whatever pace you're comfortable with. @@ -44,43 +42,24 @@ export PERL_MM_OPT="" ./Build %install -export PERL_MM_OPT="" -rm -rf $RPM_BUILD_ROOT - ./Build install --destdir=$RPM_BUILD_ROOT --create_packlist=0 -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 ./Build test -%clean -rm -rf $RPM_BUILD_ROOT - -%files -f filelist.lst -%defattr(-,root,root,-) -%doc Changes CONTRIBUTING dist.ini LICENSE META.json README +%files +%license LICENSE +%doc Changes CONTRIBUTING dist.ini META.json README %{perl_vendorlib}/* + %files help -%{_mandir}/* +%{_mandir}/man?/* %changelog -* Thu Jul 01 2021 Perl_Bot 0.14-1 +* Sun Jan 19 2025 Funda Wang - 0.14-2 +- drop useless perl(:MODULE_COMPAT) requirement + +* Thu Jul 01 2021 Perl_Bot - 0.14-1 - Specfile autogenerated by Perl_Bot -- Gitee