102 lines
3.5 KiB
RPMSpec
102 lines
3.5 KiB
RPMSpec
![]() |
#
|
||
|
# spec file for package perl-Cache-CacheFactory (Version 1.10)
|
||
|
#
|
||
|
# Copyright (c) 2010 SUSE LINUX Products 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-Cache-CacheFactory
|
||
|
Version: 1.10
|
||
|
Release: 1
|
||
|
License: GPL+ or Artistic
|
||
|
%define cpan_name Cache-CacheFactory
|
||
|
Summary: Factory class for Cache::Cache and other modules.
|
||
|
Url: http://search.cpan.org/dist/Cache-CacheFactory/
|
||
|
Group: Development/Libraries/Perl
|
||
|
#Source: http://www.cpan.org/authors/id/S/SG/SGRAHAM/Cache-CacheFactory-%{version}.tar.gz
|
||
|
Source: %{cpan_name}-%{version}.tar.bz2
|
||
|
BuildRequires: perl(Cache::BaseCache)
|
||
|
BuildRequires: perl(Cache::Cache) >= 1
|
||
|
BuildRequires: perl(Cache::FastMemoryCache) >= 0.01
|
||
|
BuildRequires: perl(Cache::FileCache)
|
||
|
BuildRequires: perl(Cache::MemoryCache)
|
||
|
BuildRequires: perl(Cache::Object)
|
||
|
BuildRequires: perl(Cache::SharedMemoryCache)
|
||
|
BuildRequires: perl(Carp)
|
||
|
BuildRequires: perl(Class::Factory)
|
||
|
BuildRequires: perl(Devel::Size) >= 0.69
|
||
|
BuildRequires: perl(File::Basename)
|
||
|
BuildRequires: perl(File::Path)
|
||
|
BuildRequires: perl(File::Temp)
|
||
|
BuildRequires: perl(Scalar::Util)
|
||
|
BuildRequires: perl
|
||
|
BuildRequires: perl-macros
|
||
|
BuildRequires: perl(Module::Build)
|
||
|
Requires: perl(Cache::BaseCache)
|
||
|
Requires: perl(Cache::Cache) >= 1
|
||
|
Requires: perl(Cache::FastMemoryCache) >= 0.01
|
||
|
Requires: perl(Cache::FileCache)
|
||
|
Requires: perl(Cache::MemoryCache)
|
||
|
Requires: perl(Cache::Object)
|
||
|
Requires: perl(Cache::SharedMemoryCache)
|
||
|
Requires: perl(Carp)
|
||
|
Requires: perl(Class::Factory)
|
||
|
Requires: perl(Devel::Size) >= 0.69
|
||
|
Requires: perl(File::Basename)
|
||
|
Requires: perl(File::Path)
|
||
|
Requires: perl(File::Temp)
|
||
|
Requires: perl(Scalar::Util)
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||
|
BuildArch: noarch
|
||
|
%{perl_requires}
|
||
|
|
||
|
%description
|
||
|
Cache::CacheFactory is a drop-in replacement for the the Cache::Cache
|
||
|
manpage subclasses allowing you to access a variety of caching policies
|
||
|
from a single place, mixing and matching as you choose rather than having
|
||
|
to search for the cache module that provides the exact combination you
|
||
|
want.
|
||
|
|
||
|
In a nutshell you specify a policy for storage, for pruning and for
|
||
|
validity checks and CacheFactory hooks you up with the right modules to
|
||
|
provide that behaviour while providing you with the same API you're used to
|
||
|
from Cache::Cache - the only thing you need to change is your call to the
|
||
|
constructor.
|
||
|
|
||
|
More advanced use allows you to set multiple policies for pruning and
|
||
|
validity checks, and even for storage although that's currently of limited
|
||
|
use.
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n %{cpan_name}-%{version}
|
||
|
|
||
|
%build
|
||
|
%{__perl} Build.PL installdirs=vendor
|
||
|
./Build build flags=%{?_smp_mflags}
|
||
|
|
||
|
%check
|
||
|
./Build test
|
||
|
|
||
|
%install
|
||
|
./Build install destdir=%{buildroot} create_packlist=0
|
||
|
%perl_gen_filelist
|
||
|
|
||
|
%clean
|
||
|
%{__rm} -rf %{buildroot}
|
||
|
|
||
|
%files -f %{name}.files
|
||
|
%defattr(644,root,root,755)
|
||
|
%doc Changes COPYING README TODO
|
||
|
|
||
|
%changelog
|