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