]>
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 |
ea23f5c2 | 11 | Version: 1.05 |
9717e8d4 | 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 |
ea23f5c2 | 16 | # Source0-md5: 09e4d37979c8f8ce2518e1d1ccd10d99 |
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 |
7e62662a | 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 | ||
29 | %description | |
30 | The Cache modules are designed to assist a developer in persisting | |
2c2bf8c6 | 31 | data for a specified period of time. Often these modules are used |
5ee564eb | 32 | in web applications to store data locally to save repeated and |
2c2bf8c6 | 33 | redundant expensive calls to remote machines or databases. People |
5ee564eb | 34 | have also been known to use Cache::Cache for its straightforward |
35 | interface in sharing data between runs of an application or | |
36 | invocations of a CGI-style script or simply as an easy to use | |
37 | abstraction of the filesystem or shared memory. | |
38 | ||
ee0f6ff0 JR |
39 | %description -l pl.UTF-8 |
40 | Moduły Cache mają na celu pomóc programiście w utrzymywaniu danych | |
41 | przez określony czas. Te moduły są przeważnie używane w aplikacjach | |
42 | WWW do zapisywania danych lokalnie w celu uniknięcia powtarzających | |
43 | się i niepotrzebnych odwołań do zewnętrznych maszyn lub baz danych. | |
44 | Cache::Cache bywa używany ze względu na swój prosty interfejs do | |
45 | dzielenia danych pomiędzy uruchomieniami aplikacji lub wywołaniami | |
46 | skryptu CGI, albo po prostu jako łatwa w użyciu abstrakcja systemu | |
47 | plików lub pamięci dzielonej. | |
2c2bf8c6 | 48 | |
5ee564eb | 49 | %prep |
50 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
51 | ||
52 | %build | |
4512e11c | 53 | %{__perl} -MExtUtils::MakeMaker -wle 'WriteMakefile(NAME=>"Cache::Cache")' \ |
54 | INSTALLDIRS=vendor | |
5ee564eb | 55 | %{__make} |
a42ee4f4 | 56 | |
0d182d44 | 57 | %{?with_tests:%{__make} test} |
5ee564eb | 58 | |
59 | %install | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
13812628 | 62 | %{__make} install \ |
63 | DESTDIR=$RPM_BUILD_ROOT | |
5ee564eb | 64 | |
5ee564eb | 65 | %clean |
66 | rm -rf $RPM_BUILD_ROOT | |
67 | ||
68 | %files | |
69 | %defattr(644,root,root,755) | |
a42ee4f4 | 70 | %doc CHANGES COPYING CREDITS DISCLAIMER README STYLE |
4512e11c | 71 | %{perl_vendorlib}/Cache/*.pm |
5ee564eb | 72 | %{_mandir}/man3/* |