diff --git a/HTTP-Cache-Transparent-1.4.tar.gz b/HTTP-Cache-Transparent-1.4.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..ee5beb0d79aa104dbbe3579090b3675ecd40f41a Binary files /dev/null and b/HTTP-Cache-Transparent-1.4.tar.gz differ diff --git a/perl-HTTP-Cache-Transparent.spec b/perl-HTTP-Cache-Transparent.spec new file mode 100644 index 0000000000000000000000000000000000000000..47e6dca3a39dfbff3be0dc78f7dbd1dec1c13dd7 --- /dev/null +++ b/perl-HTTP-Cache-Transparent.spec @@ -0,0 +1,76 @@ +%global _empty_manifest_terminate_build 0 +Name: perl-HTTP-Cache-Transparent +Version: 1.4 +Release: 1 +Summary: Cache the result of http get-requests persistently +License: CHECK(Distributable) +Group: Development/Libraries +URL: http://search.cpan.org/dist/HTTP-Cache-Transparent/ +Source0: http://www.cpan.org/authors/id/M/MA/MATTIASH/HTTP-Cache-Transparent-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl-generators +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(LWP) +Requires: perl(LWP) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +%description +An implementation of http get that keeps a local cache of fetched pages to +avoid fetching the same data from the server if it hasn't been updated. The +cache is stored on disk and is thus persistent between invocations. +%package help +Summary : Cache the result of http get-requests persistently +Provides: perl-HTTP-Cache-Transparent-doc +%description help +An implementation of http get that keeps a local cache of fetched pages to +avoid fetching the same data from the server if it hasn't been updated. The +cache is stored on disk and is thus persistent between invocations. +%prep +%setup -q -n HTTP-Cache-Transparent-%{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 META.json README.md +%{perl_vendorlib}/* +%files help +%{_mandir}/* + +%changelog +* Wed Jun 30 2021 Perl_Bot 1.4-1 +- Specfile autogenerated by Perl_Bot