- initial package 1.10
* created by cpanspec 1.78.03 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Cache-CacheFactory?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
3
Cache-CacheFactory-1.10.tar.bz2
Normal file
3
Cache-CacheFactory-1.10.tar.bz2
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:982ce7497200cbf847efdcff332e3ef2e1f1b3db1d12426ee7b7488763718b55
|
||||
size 30585
|
6
perl-Cache-CacheFactory.changes
Normal file
6
perl-Cache-CacheFactory.changes
Normal file
@@ -0,0 +1,6 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 21 13:59:50 UTC 2011 - coolo@novell.com
|
||||
|
||||
- initial package 1.10
|
||||
* created by cpanspec 1.78.03
|
||||
|
101
perl-Cache-CacheFactory.spec
Normal file
101
perl-Cache-CacheFactory.spec
Normal file
@@ -0,0 +1,101 @@
|
||||
#
|
||||
# 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
|
Reference in New Issue
Block a user