diff --git a/.cvsignore b/.cvsignore index e69de29..a455414 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +App-Cache-0.35.tar.gz diff --git a/import.log b/import.log new file mode 100644 index 0000000..b6d8db3 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +perl-App-Cache-0_35-1_fc10:HEAD:perl-App-Cache-0.35-1.fc10.src.rpm:1236458267 diff --git a/perl-App-Cache.spec b/perl-App-Cache.spec new file mode 100644 index 0000000..e74c7ce --- /dev/null +++ b/perl-App-Cache.spec @@ -0,0 +1,80 @@ +Name: perl-App-Cache +Version: 0.35 +Release: 1%{?dist} +# lib/App/Cache.pm -> GPL+ or Artistic +License: GPL+ or Artistic +Group: Development/Libraries +Summary: Easy application-level caching +Source: http://search.cpan.org/CPAN/authors/id/L/LB/LBROCARD/App-Cache-%{version}.tar.gz +Url: http://search.cpan.org/dist/App-Cache +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +BuildArch: noarch + +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Class::Accessor::Chained::Fast) +BuildRequires: perl(File::Find::Rule) +BuildRequires: perl(File::HomeDir) +BuildRequires: perl(File::stat) +BuildRequires: perl(HTTP::Cookies) +BuildRequires: perl(LWP::UserAgent) +BuildRequires: perl(Path::Class) +BuildRequires: perl(Storable) +# testing +BuildRequires: perl(Test::More) +BuildRequires: perl(Test::Pod) +BuildRequires: perl(Test::Pod::Coverage) + +# 'use base' strikes again... +Requires: perl(Class::Accessor::Chained::Fast) + +%description +The App::Cache module lets an application cache data locally. There are a +few times an application would need to cache data: when it is retrieving +information from the network or when it has to complete a large calculation. +For example, the Parse::BACKPAN::Packages module downloads a file off the +net and parses it, creating a data structure. Only then can it actually +provide any useful information for the programmer. Parse::BACKPAN::Packages +uses App::Cache to cache both the file download and data structures, +providing much faster use when the data is cached. This module stores data +in the home directory of the user, in a dot directory. For example, the +Parse::BACKPAN::Packages cache is actually stored underneath +"~/.parse_backpan_packages/cache/". This is so that permisssions are not a +problem -- it is a per-user, per-application cache. + +%prep +%setup -q -n App-Cache-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +rm -rf %{buildroot} + +make pure_install PERL_INSTALL_ROOT=%{buildroot} +find %{buildroot} -type f -name .packlist -exec rm -f {} ';' +find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';' + +%{_fixperms} %{buildroot}/* + +%check +make test + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%doc CHANGES README +%{perl_vendorlib}/* +%{_mandir}/man3/*.3* + +%changelog +* Thu Mar 05 2009 Chris Weyl 0.35-1 +- submission + +* Thu Mar 05 2009 Chris Weyl 0.35-0 +- initial RPM packaging +- generated with cpan2dist (CPANPLUS::Dist::RPM version 0.0.8) + diff --git a/sources b/sources index e69de29..4664fd9 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +3483ed94401531d16ceab63d57b8da6e App-Cache-0.35.tar.gz