diff --git a/perl-Class-Field.spec b/perl-Class-Field.spec index 24e18ab0525aad3f122269d6316ecc3993ef07be..7c8d9ff642f571be148f8cf609bbcf64d1335c11 100644 --- a/perl-Class-Field.spec +++ b/perl-Class-Field.spec @@ -1,73 +1,55 @@ -%global _empty_manifest_terminate_build 0 Name: perl-Class-Field Version: 0.24 -Release: 1 +Release: 2 Summary: Class Field Accessor Generator -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-Field/ -Source0: http://www.cpan.org/authors/id/I/IN/INGY/Class-Field-%{version}.tar.gz +URL: https://search.cpan.org/dist/Class-Field/ +Source0: https://www.cpan.org/authors/id/I/IN/INGY/Class-Field-%{version}.tar.gz BuildArch: noarch BuildRequires: perl >= 1:v5.8.1 BuildRequires: perl-generators BuildRequires: perl(ExtUtils::MakeMaker) -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + %description Class::Field exports two subroutines, field and const. These functions are used to declare fields and constants in your class. + %package help Summary : Class Field Accessor Generator Provides: perl-Class-Field-doc + %description help Class::Field exports two subroutines, field and const. These functions are used to declare fields and constants in your class. + %prep %setup -q -n Class-Field-%{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,-) -%doc Changes CONTRIBUTING LICENSE META.json README +%files +%license LICENSE +%doc Changes CONTRIBUTING META.json README %{perl_vendorlib}/* + %files help -%{_mandir}/* +%{_mandir}/man?/* %changelog -* Wed Jun 30 2021 Perl_Bot 0.24-1 +* Sun Jan 19 2025 Funda Wang - 0.24-2 +- drop useless perl(:MODULE_COMPAT) requirement + +* Wed Jun 30 2021 Perl_Bot - 0.24-1 - Specfile autogenerated by Perl_Bot