diff --git a/Class-Adapter-1.09.tar.gz b/Class-Adapter-1.09.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..815bb5d8e1fc1203fb5bf7aeb1727cd47b991cb9 Binary files /dev/null and b/Class-Adapter-1.09.tar.gz differ diff --git a/perl-Class-Adapter.spec b/perl-Class-Adapter.spec new file mode 100644 index 0000000000000000000000000000000000000000..6b1e5525de7cbb5d9118f8280a2859528a1b7f99 --- /dev/null +++ b/perl-Class-Adapter.spec @@ -0,0 +1,83 @@ +%global _empty_manifest_terminate_build 0 +Name: perl-Class-Adapter +Version: 1.09 +Release: 1 +Summary: Perl implementation of the "Adapter" Design Pattern +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Class-Adapter/ +Source0: http://www.cpan.org/authors/id/E/ET/ETHER/Class-Adapter-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl >= 0:5.006 +BuildRequires: perl-generators +BuildRequires: perl(Carp) +BuildRequires: perl(constant) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(File::Spec) +BuildRequires: perl(Scalar::Util) >= 1.10 +BuildRequires: perl(strict) +BuildRequires: perl(Test::More) +BuildRequires: perl(warnings) +Requires: perl(Carp) +Requires: perl(Scalar::Util) >= 1.10 +Requires: perl(strict) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +%description +The Class::Adapter class is intended as an abstract base class for creating +any sort of class or object that follows the Adapter pattern. +%package help +Summary : Perl implementation of the "Adapter" Design Pattern +Provides: perl-Class-Adapter-doc +%description help +The Class::Adapter class is intended as an abstract base class for creating +any sort of class or object that follows the Adapter pattern. +%prep +%setup -q -n Class-Adapter-%{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 dist.ini LICENSE META.json README +%{perl_vendorlib}/* +%files help +%{_mandir}/* + +%changelog +* Wed Jul 21 2021 Perl_Bot 1.09-1 +- Specfile autogenerated by Perl_Bot