diff --git a/Class-Field-0.24.tar.gz b/Class-Field-0.24.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..b1af08fc8d655614ece2db5a8486d1efdd537fb9 Binary files /dev/null and b/Class-Field-0.24.tar.gz differ diff --git a/perl-Class-Field.spec b/perl-Class-Field.spec new file mode 100644 index 0000000000000000000000000000000000000000..24e18ab0525aad3f122269d6316ecc3993ef07be --- /dev/null +++ b/perl-Class-Field.spec @@ -0,0 +1,73 @@ +%global _empty_manifest_terminate_build 0 +Name: perl-Class-Field +Version: 0.24 +Release: 1 +Summary: Class Field Accessor Generator +License: GPL+ or Artistic +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 +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} + +%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 +%{perl_vendorlib}/* +%files help +%{_mandir}/* + +%changelog +* Wed Jun 30 2021 Perl_Bot 0.24-1 +- Specfile autogenerated by Perl_Bot