Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37835712
en ru br
ALT Linux repos
S:0.37-alt2_27

Group :: Development/Perl
RPM: perl-App-Cache

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Group: Development/Perl
# BEGIN SourceDeps(oneline):
BuildRequires(pre): rpm-build-perl
BuildRequires: perl-podlators
# END SourceDeps(oneline)
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name:           perl-App-Cache
Summary:        Easy application-level caching
Version:        0.37
Release:        alt2_27
License:        GPL+ or Artistic

Source0:        https://cpan.metacpan.org/authors/id/L/LB/LBROCARD/App-Cache-%{version}.tar.gz
URL:            https://metacpan.org/release/App-Cache

BuildArch:      noarch

BuildRequires:  rpm-build-perl
BuildRequires:  perl(Class/Accessor/Chained/Fast.pm)
BuildRequires:  perl(ExtUtils/MakeMaker.pm)
BuildRequires:  perl(File/Find/Rule.pm)
BuildRequires:  perl(File/HomeDir.pm)
BuildRequires:  perl(File/stat.pm)
BuildRequires:  perl(HTTP/Cookies.pm)
BuildRequires:  perl(LWP/UserAgent.pm)
BuildRequires:  perl(Path/Class.pm)
BuildRequires:  perl(Storable.pm)
BuildRequires:  perl(Test/More.pm)
BuildRequires:  perl(Test/Pod.pm)

Requires:       perl(Class/Accessor/Chained/Fast.pm)
Requires:       perl(File/Find/Rule.pm)
Requires:       perl(File/HomeDir.pm)
Requires:       perl(File/stat.pm)
Requires:       perl(HTTP/Cookies.pm)
Requires:       perl(LWP/UserAgent.pm)
Requires:       perl(Path/Class.pm)
Requires:       perl(Storable.pm)



%{?perl_default_subpackage_tests}
Source44: import.info

%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 permissions are not a
problem -- it is a per-user, per-application cache.

%prep
%setup -q -n App-Cache-%{version}

%build
/usr/bin/perl Makefile.PL INSTALLDIRS=vendor
%make_build

%install
make pure_install DESTDIR=%{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

%files
%doc CHANGES README
%{perl_vendor_privlib}/*

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin