74 lines
2.5 KiB
RPMSpec
74 lines
2.5 KiB
RPMSpec
![]() |
#
|
||
|
# spec file for package perl-File-Cache (Version 0.16)
|
||
|
#
|
||
|
# 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-File-Cache
|
||
|
Version: 0.16
|
||
|
Release: 1
|
||
|
License: CHECK(GPL+ or Artistic)
|
||
|
%define cpan_name File-Cache
|
||
|
Summary: Share data between processes via filesystem
|
||
|
Url: http://search.cpan.org/dist/File-Cache/
|
||
|
Group: Development/Libraries/Perl
|
||
|
Source: http://www.cpan.org/authors/id/D/DC/DCLINTON/%{cpan_name}-%{version}.tar.gz
|
||
|
BuildArch: noarch
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||
|
BuildRequires: perl
|
||
|
BuildRequires: perl-macros
|
||
|
%{perl_requires}
|
||
|
|
||
|
%description
|
||
|
*File::Cache* is a perl module that implements an object storage space
|
||
|
where data is persisted across process boundaries via the filesystem.
|
||
|
|
||
|
File::Cache builds a cache in the file system using a multi-level directory
|
||
|
structure that looks like this:
|
||
|
|
||
|
<CACHE_KEY>/<USERNAME>/<NAMESPACE>/[D1]/[D2]/.../<OBJECTS>
|
||
|
|
||
|
CACHE_KEY is the location of the root level of the cache. The cache key
|
||
|
defaults to <TMPDIR>/File::Cache, where <TMPDIR> is the temporary directory
|
||
|
on your system. USERNAME is the user identifier. This value defaults to the
|
||
|
userid, if it can be determined from the system, or "nobody" if it can not.
|
||
|
<NAMESPACE> defaults to "_default". D1, D2, etc. are subdirectories that
|
||
|
are created to hold the cache objects. The number subdirectories depends on
|
||
|
the _cache_depth_ value, which defaults to 0. Objects are stored in the
|
||
|
cache using a method which depends on the _persistence_mechanism_ value.
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n %{cpan_name}-%{version}
|
||
|
|
||
|
%build
|
||
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||
|
%{__make} %{?_smp_mflags}
|
||
|
|
||
|
%check
|
||
|
%{__make} test
|
||
|
|
||
|
%install
|
||
|
%perl_make_install
|
||
|
%perl_process_packlist
|
||
|
%perl_gen_filelist
|
||
|
|
||
|
%clean
|
||
|
%{__rm} -rf %{buildroot}
|
||
|
|
||
|
%files -f %{name}.files
|
||
|
%defattr(-,root,root,755)
|
||
|
%doc CHANGES COPYING CREDITS DISCLAIMER README TODO
|
||
|
|
||
|
%changelog
|