]> git.pld-linux.org Git - packages/perl-Tie-Cache.git/blame - perl-Tie-Cache.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Tie-Cache.git] / perl-Tie-Cache.spec
CommitLineData
601b8a5f 1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
d1ecae40 4
5d8606d1 5%define pdir Tie
6%define pnam Cache
52de3cc1 7Summary: Tie::Cache - LRU Cache in Memory
8aa70036 8Summary(pl.UTF-8): Tie::Cache - cache typu LRU w pamięci
ad93f553 9Name: perl-Tie-Cache
1dc89093 10Version: 0.17
ae34fcca 11Release: 7
601b8a5f 12# same as perl
13License: GPL v1+ or Artistic
ad93f553 14Group: Development/Languages/Perl
80347a58 15Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
2f672204 16# Source0-md5: 93f1bb8006815ade24fde309925cebe0
8c401476 17Patch0: %{name}-paths.patch
d1ecae40 18URL: http://search.cpan.org/dist/Tie-Cache/
b002f064 19BuildRequires: perl-devel >= 1:5.8.0
f8867a17 20BuildRequires: rpm-perlprov >= 4.1-13
529884cf 21BuildArch: noarch
802bed69 22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
ad93f553 23
24%description
87aa912a
JB
25This module implements a least recently used (LRU) cache in memory
26through a tie interface. Any time data is stored in the tied hash,
27that key/value pair has an entry time associated with it, and as the
28cache fills up, those members of the cache that are the oldest are
29removed to make room for new entries.
30
fa3a2b57
JR
31%description -l pl.UTF-8
32Ten moduł jest implementacją cache typu LRU (ostatnio używane) w
33pamięci poprzez powiązany interfejs. Wszystkie dane dotyczące czasu są
34zapisywane w powiązanym haszu, którego para klucz/wartość ma
35przydzielony wpis dotyczący czasu. Kiedy cache się zapełnia, te
36najstarsze elementy są usuwane, aby zrobić miejsce nowym.
69caf0ac 37
92ac91c0 38%package bench
39Summary: Berchmark comparing Tie::Cache and Tie::Cache::LRU Perl modules
8aa70036 40Summary(pl.UTF-8): Porównanie wydajności modułów Perla Tie::Cache i Tie::Cache::LRU
92ac91c0 41Group: Development/Languages/Perl
42
43%description bench
44Berchmark comparing Tie::Cache and Tie::Cache::LRU Perl modules.
45
fa3a2b57
JR
46%description bench -l pl.UTF-8
47Porównanie wydajności modułów Perla Tie::Cache i Tie::Cache::LRU.
92ac91c0 48
ad93f553 49%prep
a7e633fd 50%setup -q -n %{pdir}-%{pnam}-%{version}
36b74b52 51%patch0 -p1
ad93f553 52
53%build
f8867a17 54%{__perl} Makefile.PL \
545863d3 55 INSTALLDIRS=vendor
5915dd5b 56%{__make}
ad93f553 57
601b8a5f 58%{?with_tests:%{__make} test}
59
ad93f553 60%install
61rm -rf $RPM_BUILD_ROOT
ad93f553 62
601b8a5f 63%{__make} install \
64 DESTDIR=$RPM_BUILD_ROOT
ad93f553 65
ad93f553 66%clean
67rm -rf $RPM_BUILD_ROOT
68
69%files
70%defattr(644,root,root,755)
1dc89093 71%doc CHANGES README
f8867a17 72%{perl_vendorlib}/Tie/Cache.pm
ad93f553 73%{_mandir}/man3/*
69caf0ac 74
75%files bench
76%defattr(644,root,root,755)
f8867a17 77%attr(755,root,root) %{perl_vendorlib}/Tie/bench.pl
This page took 0.094932 seconds and 5 git commands to generate.