From ab1fc51a80599b61850accd1ffec75ab6f3f64ff8f324c9802bae8e69b2fb1d8 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Fri, 21 Jan 2011 14:03:38 +0000 Subject: [PATCH] - 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 --- .gitattributes | 23 ++++++++ .gitignore | 1 + Cache-CacheFactory-1.10.tar.bz2 | 3 + perl-Cache-CacheFactory.changes | 6 ++ perl-Cache-CacheFactory.spec | 101 ++++++++++++++++++++++++++++++++ 5 files changed, 134 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 Cache-CacheFactory-1.10.tar.bz2 create mode 100644 perl-Cache-CacheFactory.changes create mode 100644 perl-Cache-CacheFactory.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/Cache-CacheFactory-1.10.tar.bz2 b/Cache-CacheFactory-1.10.tar.bz2 new file mode 100644 index 0000000..12a1fc1 --- /dev/null +++ b/Cache-CacheFactory-1.10.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:982ce7497200cbf847efdcff332e3ef2e1f1b3db1d12426ee7b7488763718b55 +size 30585 diff --git a/perl-Cache-CacheFactory.changes b/perl-Cache-CacheFactory.changes new file mode 100644 index 0000000..727c59d --- /dev/null +++ b/perl-Cache-CacheFactory.changes @@ -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 + diff --git a/perl-Cache-CacheFactory.spec b/perl-Cache-CacheFactory.spec new file mode 100644 index 0000000..4a309a3 --- /dev/null +++ b/perl-Cache-CacheFactory.spec @@ -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