]> git.pld-linux.org Git - packages/perl-Cache-Cache.git/blame - perl-Cache-Cache.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Cache-Cache.git] / perl-Cache-Cache.spec
CommitLineData
aaff9331 1#
2# Conditional build:
0d182d44 3%bcond_without tests # do not perform "make test"
aaff9331 4#
d6b7abff 5%define pdir Cache
6%define pnam Cache
adbe64cf 7Summary: Cache::Cache - a generic interface for creating persistent data stores
56efdd91 8Summary(pl.UTF-8): Cache::Cache - ogólny interfejs do trwałego przechowywania danych
5ee564eb 9Name: perl-Cache-Cache
87ddb9d8 10Version: 1.08
3cb93e47 11Release: 1
adbe64cf 12License: GPL or Artistic
5ee564eb 13Group: Development/Languages/Perl
1639a0df 14Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
87ddb9d8 15# Source0-md5: c18bfc823055d1df5255ae834e161749
a42ee4f4 16URL: http://perl-cache.sourceforge.net/
c8b9afe5 17BuildRequires: perl-devel >= 1:5.8.0
0d182d44 18%if %{with tests}
7e62662a
JB
19BuildRequires: perl-Digest-SHA1 >= 2.01
20BuildRequires: perl-Error >= 0.15
a42ee4f4 21BuildRequires: perl(File::Spec) >= 0.82
4758d67b 22# optional, broken in 5.10.0
23#BuildRequires: perl-IPC-ShareLite >= 0.08
a42ee4f4 24%endif
4512e11c 25BuildRequires: rpm-perlprov >= 4.1-13
7e62662a 26BuildArch: noarch
5ee564eb 27BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
4758d67b 29%define _noautoreq 'perl(IPC::ShareLite)'
30
5ee564eb 31%description
32The Cache modules are designed to assist a developer in persisting
2c2bf8c6 33data for a specified period of time. Often these modules are used
5ee564eb 34in web applications to store data locally to save repeated and
2c2bf8c6 35redundant expensive calls to remote machines or databases. People
5ee564eb 36have also been known to use Cache::Cache for its straightforward
37interface in sharing data between runs of an application or
38invocations of a CGI-style script or simply as an easy to use
39abstraction of the filesystem or shared memory.
40
ee0f6ff0
JR
41%description -l pl.UTF-8
42Moduły Cache mają na celu pomóc programiście w utrzymywaniu danych
43przez określony czas. Te moduły są przeważnie używane w aplikacjach
44WWW do zapisywania danych lokalnie w celu uniknięcia powtarzających
45się i niepotrzebnych odwołań do zewnętrznych maszyn lub baz danych.
46Cache::Cache bywa używany ze względu na swój prosty interfejs do
47dzielenia danych pomiędzy uruchomieniami aplikacji lub wywołaniami
48skryptu CGI, albo po prostu jako łatwa w użyciu abstrakcja systemu
49plików lub pamięci dzielonej.
2c2bf8c6 50
5ee564eb 51%prep
52%setup -q -n %{pdir}-%{pnam}-%{version}
53
54%build
4758d67b 55%{__perl} Makefile.PL \
4512e11c 56 INSTALLDIRS=vendor
5ee564eb 57%{__make}
a42ee4f4 58
0d182d44 59%{?with_tests:%{__make} test}
5ee564eb 60
61%install
62rm -rf $RPM_BUILD_ROOT
63
13812628 64%{__make} install \
65 DESTDIR=$RPM_BUILD_ROOT
5ee564eb 66
5ee564eb 67%clean
68rm -rf $RPM_BUILD_ROOT
69
70%files
71%defattr(644,root,root,755)
a42ee4f4 72%doc CHANGES COPYING CREDITS DISCLAIMER README STYLE
4512e11c 73%{perl_vendorlib}/Cache/*.pm
5ee564eb 74%{_mandir}/man3/*
This page took 0.611783 seconds and 4 git commands to generate.