diff --git a/HTTP-Cache-Transparent-0.7.tar.bz2 b/HTTP-Cache-Transparent-0.7.tar.bz2 deleted file mode 100644 index 444abae..0000000 --- a/HTTP-Cache-Transparent-0.7.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8eb2af61ed8bc237358841a69f57f2dd16508bf550ab5e2a51638f5153e30427 -size 7628 diff --git a/HTTP-Cache-Transparent-1.0.tar.gz b/HTTP-Cache-Transparent-1.0.tar.gz deleted file mode 100644 index 229d128..0000000 --- a/HTTP-Cache-Transparent-1.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:31b6b54d9488b35eb8ca54b6f5bcefd6eb1e208ca8a4038c1cee61042747f1d9 -size 8526 diff --git a/HTTP-Cache-Transparent-1.1.tar.gz b/HTTP-Cache-Transparent-1.1.tar.gz new file mode 100644 index 0000000..6e3a424 --- /dev/null +++ b/HTTP-Cache-Transparent-1.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0abf7b7d972abcd5d77aa4d138ad58406948e7f276f4071e13097b841f7c7eda +size 9005 diff --git a/perl-HTTP-Cache-Transparent.changes b/perl-HTTP-Cache-Transparent.changes index ec0176a..862588b 100644 --- a/perl-HTTP-Cache-Transparent.changes +++ b/perl-HTTP-Cache-Transparent.changes @@ -1,3 +1,52 @@ +------------------------------------------------------------------- +Tue Apr 14 20:48:43 UTC 2015 - coolo@suse.com + +- updated to 1.1 + see /usr/share/doc/packages/perl-HTTP-Cache-Transparent/Changes + + 2012-10-25 Mattias Holmlund + + Version 1.1 + + Unlink temporary cachefiles if we fail to give them a proper name + Resolves https://rt.cpan.org/Ticket/Display.html?id=60065 + + Handle multiple simultaneous cache cleanups + Hopefully resolves https://rt.cpan.org/Public/Bug/Display.html?id=77015 + + Handle caching of zero-size documents + Resolves https://rt.cpan.org/Public/Bug/Display.html?id=76785 + + Populate $response->message with the default message for the code + Patch from Graham Barr + + Ensure response has access to request when fetching from cache + Patch from Graham Barr. + + Handle undefined content from servers. + + 2007-12-12 Mattias Holmlund + + Version 1.0 + + Add ApproveContent option. + Add pod-tests. + Mark internal methods with leading underscore. + +------------------------------------------------------------------- +Tue Apr 14 20:48:43 UTC 2015 - coolo@suse.com + +- updated to 1.0 + see /usr/share/doc/packages/perl-HTTP-Cache-Transparent/Changes + + 2007-12-12 Mattias Holmlund + + Version 1.0 + + Add ApproveContent option. + Add pod-tests. + Mark internal methods with leading underscore. + ------------------------------------------------------------------- Mon Nov 29 18:30:12 UTC 2010 - coolo@novell.com diff --git a/perl-HTTP-Cache-Transparent.spec b/perl-HTTP-Cache-Transparent.spec index 8727fc1..792804d 100644 --- a/perl-HTTP-Cache-Transparent.spec +++ b/perl-HTTP-Cache-Transparent.spec @@ -1,60 +1,67 @@ -%define modname HTTP-Cache-Transparent -Name: perl-%{modname} -Version: 0.7 -Release: 1 +# +# spec file for package perl-HTTP-Cache-Transparent +# +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +Name: perl-HTTP-Cache-Transparent +Version: 1.1 +Release: 0 +%define cpan_name HTTP-Cache-Transparent Summary: Cache the result of http get-requests persistently -Requires: perl = %{perl_version} perl-libwww-perl -BuildRequires: perl perl-macros perl-libwww-perl -License: GPL/Artistic +License: GPL-1.0+ or Artistic-1.0 Group: Development/Libraries/Perl -Source: %{modname}-%{version}.tar.bz2 -BuildRoot: %{_tmppath}/%{name}-root -Requires: perl-libwww-perl +Url: http://search.cpan.org/dist/HTTP-Cache-Transparent/ +Source: http://www.cpan.org/authors/id/M/MA/MATTIASH/%{cpan_name}-%{version}.tar.gz +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: perl +BuildRequires: perl-macros +BuildRequires: perl(LWP) +Requires: perl(LWP) +%{perl_requires} %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. -Authors: --------- - Mattias Holmlund, <$firstname -at- $lastname -dot- se> +Uses the http-headers If-Modified-Since and ETag to let the server decide +if the version in the cache is up-to-date or not. + +The cache is implemented by modifying the LWP::UserAgent class to +seamlessly cache the result of all requests that can be cached. %prep -%setup -q -n %{modname}-%{version} +%setup -q -n %{cpan_name}-%{version} +find . -type f -print0 | xargs -0 chmod 644 %build -perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall" -make -make test +%{__perl} Makefile.PL INSTALLDIRS=vendor +%{__make} %{?_smp_mflags} + +%check +%{__make} test %install -rm -rf %{buildroot} -make DESTDIR=$RPM_BUILD_ROOT install_vendor +%perl_make_install %perl_process_packlist +%perl_gen_filelist -%clean -rm -rf %{buildroot} - -%files -%defattr(-, root, root) -%doc README Changes -%doc %{_mandir}/man?/* -%{perl_vendorlib}/HTTP -%{perl_vendorarch}/auto/HTTP +%files -f %{name}.files +%defattr(-,root,root,755) +%doc Changes examples README %changelog - -* Tue Jun 20 2006 - James Oakley - 0.7-1 -- Update - -* Fri Nov 11 2005 - James Oakley - 0.6-ft.1 -- Update -- Build for SL10 - -* Thu May 12 2005 - James Oakley - 0.5-ft.1 -- Update -- Build for SL93 - -* Fri Nov 19 2004 - James Oakley - 0.4-ft.1 -- Initial release