]>
Commit | Line | Data |
---|---|---|
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 | 7 | Summary: Cache::Cache - a generic interface for creating persistent data stores |
56efdd91 | 8 | Summary(pl.UTF-8): Cache::Cache - ogólny interfejs do trwałego przechowywania danych |
5ee564eb | 9 | Name: perl-Cache-Cache |
87ddb9d8 | 10 | Version: 1.08 |
3cb93e47 | 11 | Release: 1 |
adbe64cf | 12 | License: GPL or Artistic |
5ee564eb | 13 | Group: Development/Languages/Perl |
1639a0df | 14 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
87ddb9d8 | 15 | # Source0-md5: c18bfc823055d1df5255ae834e161749 |
a42ee4f4 | 16 | URL: http://perl-cache.sourceforge.net/ |
c8b9afe5 | 17 | BuildRequires: perl-devel >= 1:5.8.0 |
0d182d44 | 18 | %if %{with tests} |
7e62662a JB |
19 | BuildRequires: perl-Digest-SHA1 >= 2.01 |
20 | BuildRequires: perl-Error >= 0.15 | |
a42ee4f4 | 21 | BuildRequires: perl(File::Spec) >= 0.82 |
4758d67b | 22 | # optional, broken in 5.10.0 |
23 | #BuildRequires: perl-IPC-ShareLite >= 0.08 | |
a42ee4f4 | 24 | %endif |
4512e11c | 25 | BuildRequires: rpm-perlprov >= 4.1-13 |
7e62662a | 26 | BuildArch: noarch |
5ee564eb | 27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
28 | ||
4758d67b | 29 | %define _noautoreq 'perl(IPC::ShareLite)' |
30 | ||
5ee564eb | 31 | %description |
32 | The Cache modules are designed to assist a developer in persisting | |
2c2bf8c6 | 33 | data for a specified period of time. Often these modules are used |
5ee564eb | 34 | in web applications to store data locally to save repeated and |
2c2bf8c6 | 35 | redundant expensive calls to remote machines or databases. People |
5ee564eb | 36 | have also been known to use Cache::Cache for its straightforward |
37 | interface in sharing data between runs of an application or | |
38 | invocations of a CGI-style script or simply as an easy to use | |
39 | abstraction of the filesystem or shared memory. | |
40 | ||
ee0f6ff0 JR |
41 | %description -l pl.UTF-8 |
42 | Moduły Cache mają na celu pomóc programiście w utrzymywaniu danych | |
43 | przez określony czas. Te moduły są przeważnie używane w aplikacjach | |
44 | WWW do zapisywania danych lokalnie w celu uniknięcia powtarzających | |
45 | się i niepotrzebnych odwołań do zewnętrznych maszyn lub baz danych. | |
46 | Cache::Cache bywa używany ze względu na swój prosty interfejs do | |
47 | dzielenia danych pomiędzy uruchomieniami aplikacji lub wywołaniami | |
48 | skryptu CGI, albo po prostu jako łatwa w użyciu abstrakcja systemu | |
49 | plikó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 | |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
13812628 | 64 | %{__make} install \ |
65 | DESTDIR=$RPM_BUILD_ROOT | |
5ee564eb | 66 | |
5ee564eb | 67 | %clean |
68 | rm -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/* |