3 %bcond_without tests # do not perform "make test"
7 Summary: Tie::Cache - LRU Cache in Memory
8 Summary(pl.UTF-8): Tie::Cache - cache typu LRU w pamięci
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 93f1bb8006815ade24fde309925cebe0
17 Patch0: %{name}-paths.patch
18 URL: http://search.cpan.org/dist/Tie-Cache/
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 This module implements a least recently used (LRU) cache in memory
26 through a tie interface. Any time data is stored in the tied hash,
27 that key/value pair has an entry time associated with it, and as the
28 cache fills up, those members of the cache that are the oldest are
29 removed to make room for new entries.
31 %description -l pl.UTF-8
32 Ten moduł jest implementacją cache typu LRU (ostatnio używane) w
33 pamięci poprzez powiązany interfejs. Wszystkie dane dotyczące czasu są
34 zapisywane w powiązanym haszu, którego para klucz/wartość ma
35 przydzielony wpis dotyczący czasu. Kiedy cache się zapełnia, te
36 najstarsze elementy są usuwane, aby zrobić miejsce nowym.
39 Summary: Berchmark comparing Tie::Cache and Tie::Cache::LRU Perl modules
40 Summary(pl.UTF-8): Porównanie wydajności modułów Perla Tie::Cache i Tie::Cache::LRU
41 Group: Development/Languages/Perl
44 Berchmark comparing Tie::Cache and Tie::Cache::LRU Perl modules.
46 %description bench -l pl.UTF-8
47 Porównanie wydajności modułów Perla Tie::Cache i Tie::Cache::LRU.
50 %setup -q -n %{pdir}-%{pnam}-%{version}
54 %{__perl} Makefile.PL \
58 %{?with_tests:%{__make} test}
61 rm -rf $RPM_BUILD_ROOT
64 DESTDIR=$RPM_BUILD_ROOT
67 rm -rf $RPM_BUILD_ROOT
70 %defattr(644,root,root,755)
72 %{perl_vendorlib}/Tie/Cache.pm
76 %defattr(644,root,root,755)
77 %attr(755,root,root) %{perl_vendorlib}/Tie/bench.pl