Sophie

Sophie

distrib > Mandriva > 10.2 > x86_64 > by-pkgid > 406f618aceaa7fd04fdcbe3e89d2784e > files > 2

perl-HTTP-Cache-Transparent-0.5-1mdk.src.rpm

%define module	HTTP-Cache-Transparent
%define name	perl-%{module}
%define version 0.5
%define release 1mdk

Name:		%{name}
Version:	%{version}
Release:	%{release}
Summary:	A transparant caching implementation of http get
License:	GPL or Artistic
Group:		Development/Perl
Source:		http://search.cpan.org/CPAN/authors/id/M/MA/MATTIASH/%{module}-%{version}.tar.bz2
Url:		http://www.cpan.org
BuildRoot:	%{_tmppath}/%{name}-buildroot/
#%if %{mdkversion} < 1010
#Buildrequires:	perl-devel
#%endif
#BuildRequires:	perl-CGI
#BuildRequires:	perl-HTML-Parser
#BuildRequires:	perl-IO-Socket-SSL
#BuildRequires:	perl-Test-Exception
#Buildrequires:	perl-Test-Memory-Cycle
#Buildrequires:	perl-Test-Pod
#Buildrequires:	perl-Test-Warn
#Buildrequires:	perl-URI
#BuildRequires:	perl-libwww-perl
Buildarch:	noarch

%description
HTTP::Cache::Transparent is 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.

The http-headers If-Modified-Since and ETag are used to let the server
decide if the version in the cache is up-to-date or not.

HTTP::Cache::Transparent was initially called HTTP::TransparentCache. It
was renamed on request from modules@perl.org.

%prep
%setup -q -n %{module}-%{version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor <<EOF
EOF
%make
%make test

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall_std

%clean 
rm -rf $RPM_BUILD_ROOT

%files 
%defattr(-,root,root)
%doc Changes
#%{perl_vendorlib}/*
%{perl_vendorlib}/HTTP/Cache/Transparent.pm
%{_mandir}/*/*

%changelog
* Mon Jan 24 2005 Stefan van der Eijk <stefan@mandrake.org> 0.5-1mdk
- first mdk release