SPECS: perl-HTTP-Cache-Transparent.spec (NEW) - new

glen glen at pld-linux.org
Mon Sep 5 13:43:08 CEST 2005


Author: glen                         Date: Mon Sep  5 11:43:08 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- new

---- Files affected:
SPECS:
   perl-HTTP-Cache-Transparent.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/perl-HTTP-Cache-Transparent.spec
diff -u /dev/null SPECS/perl-HTTP-Cache-Transparent.spec:1.1
--- /dev/null	Mon Sep  5 13:43:08 2005
+++ SPECS/perl-HTTP-Cache-Transparent.spec	Mon Sep  5 13:43:02 2005
@@ -0,0 +1,77 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+#
+%include	/usr/lib/rpm/macros.perl
+%define	pdir	HTTP
+%define	pnam	Cache-Transparent
+Summary:	HTTP::Cache::Transparent - Cache the result of http get-requests persistently.
+Name:		perl-HTTP-Cache-Transparent
+Version:	0.6
+Release:	1
+# same as perl 5.8.4+
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar
+# Source0-md5:	4e4a9868dac92aa94d435e47c50f112e
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires:	perl(LWP)
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%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.
+
+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 %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+	INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+# perhaps HTTP/Cache dir into perl-base?
+%dir %{perl_vendorlib}/HTTP/Cache
+%{perl_vendorlib}/HTTP/Cache/*.pm
+%{_mandir}/man3/*
+%{_examplesdir}/%{name}-%{version}
+
+%define	date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2005/09/05 11:43:02  glen
+- new
+
================================================================



More information about the pld-cvs-commit mailing list