]>
Commit | Line | Data |
---|---|---|
33e003c0 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
8e0e468d | 4 | |
f788c8c2 | 5 | %define pdir File |
6 | %define pnam Cache | |
8e0e468d | 7 | %include /usr/lib/rpm/macros.perl |
9d3d339f | 8 | Summary: File::Cache - share data between processes via filesystem |
fa5f673a | 9 | Summary(pl.UTF-8): File::Cache - uwspólnianie danych pomiędzy procesami poprzez system plików |
325fe8ff JR |
10 | Name: perl-File-Cache |
11 | Version: 0.16 | |
6598b6e9 | 12 | Release: 9 |
9d3d339f | 13 | License: GPL v1+ |
325fe8ff | 14 | Group: Development/Languages/Perl |
9323ac02 | 15 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
7b4ad892 | 16 | # Source0-md5: 712371ae4ee88de11072d1616ae0af72 |
8e0e468d | 17 | URL: http://search.cpan.org/dist/File-Cache/ |
b798e971 | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
8e0e468d | 19 | BuildRequires: rpm-perlprov >= 4.1-13 |
c10c29e7 | 20 | BuildArch: noarch |
325fe8ff JR |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22 | ||
23 | %description | |
1d2ec82e | 24 | File::Cache implements an object store where data is persisted across |
25 | processes in the filesystem. It was written to compliment IPC::Cache. | |
325fe8ff JR |
26 | |
27 | Where IPC::Cache is faster for small numbers of simple objects, | |
28 | File::Cache tends toward being more performant when caching large | |
29 | numbers of complex objects. | |
30 | ||
952c7cd5 JR |
31 | %description -l pl.UTF-8 |
32 | File::Cache implementuje obiekt przechowujący dane, które są | |
33 | zachowywane na czas działań w systemie plików. Został napisany jako | |
61d2adf4 JB |
34 | odpowiednik IPC::Cache. |
35 | ||
952c7cd5 JR |
36 | O ile IPC::Cache jest szybszy dla małych ilości prostych obiektów, |
37 | File::Cache próbuje być bardziej wydajny przy cachowaniu większych | |
38 | ilości złożonych obiektów. | |
61d2adf4 | 39 | |
325fe8ff | 40 | %prep |
c5505d25 | 41 | %setup -q -n %{pdir}-%{pnam}-%{version} |
325fe8ff JR |
42 | |
43 | %build | |
fe3c0624 | 44 | %{__perl} Makefile.PL \ |
d2502ca0 | 45 | INSTALLDIRS=vendor |
325fe8ff JR |
46 | %{__make} |
47 | ||
33e003c0 | 48 | %{?with_tests:%{__make} test} |
49 | ||
325fe8ff JR |
50 | %install |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
33e003c0 | 53 | %{__make} install \ |
54 | DESTDIR=$RPM_BUILD_ROOT | |
325fe8ff | 55 | |
325fe8ff JR |
56 | %clean |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %files | |
60 | %defattr(644,root,root,755) | |
d7e4f203 | 61 | %doc README TODO CHANGES |
fe3c0624 | 62 | %{perl_vendorlib}/File/Cache.pm |