]> git.pld-linux.org Git - packages/perl-Tie-Cache.git/blobdiff - perl-Tie-Cache.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Tie-Cache.git] / perl-Tie-Cache.spec
index b3c52421d3d0ebe90d0456b3b7f170a74119249a..5a6d1ec43f811d734d7bea01b9fcadea83e467b8 100644 (file)
@@ -1,47 +1,77 @@
-%include       /usr/lib/rpm/macros.perl
-Summary:       Tie-Cache perl module
-Summary(pl):   Modu³ perla Tie-Cache
+#
+# Conditional build:
+%bcond_without tests   # do not perform "make test"
+
+%define                pdir    Tie
+%define                pnam    Cache
+Summary:       Tie::Cache - LRU Cache in Memory
+Summary(pl.UTF-8):     Tie::Cache - cache typu LRU w pamięci
 Name:          perl-Tie-Cache
-Version:       0.10
-Release:       1
-License:       GPL
+Version:       0.17
+Release:       7
+# same as perl
+License:       GPL v1+ or Artistic
 Group:         Development/Languages/Perl
-Group(de):     Entwicklung/Sprachen/Perl
-Group(pl):     Programowanie/Jêzyki/Perl
-Source0:       ftp://ftp.perl.org/pub/CPAN/modules/by-module/Tie/Tie-Cache-%{version}.tar.gz
+Source0:       http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 93f1bb8006815ade24fde309925cebe0
 Patch0:                %{name}-paths.patch
-BuildRequires: rpm-perlprov >= 3.0.3-16
-BuildRequires: perl >= 5.6
-%requires_eq   perl
-Requires:      %{perl_sitearch}
+URL:           http://search.cpan.org/dist/Tie-Cache/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-Tie-Cache perl module.
+This module implements a least recently used (LRU) cache in memory
+through a tie interface. Any time data is stored in the tied hash,
+that key/value pair has an entry time associated with it, and as the
+cache fills up, those members of the cache that are the oldest are
+removed to make room for new entries.
+
+%description -l pl.UTF-8
+Ten moduł jest implementacją cache typu LRU (ostatnio używane) w
+pamięci poprzez powiązany interfejs. Wszystkie dane dotyczące czasu są
+zapisywane w powiązanym haszu, którego para klucz/wartość ma
+przydzielony wpis dotyczący czasu. Kiedy cache się zapełnia, te
+najstarsze elementy są usuwane, aby zrobić miejsce nowym.
+
+%package bench
+Summary:       Berchmark comparing Tie::Cache and Tie::Cache::LRU Perl modules
+Summary(pl.UTF-8):     Porównanie wydajności modułów Perla Tie::Cache i Tie::Cache::LRU
+Group:         Development/Languages/Perl
+
+%description bench
+Berchmark comparing Tie::Cache and Tie::Cache::LRU Perl modules.
 
-%description -l pl
-Modu³ perla Tie-Cache.
+%description bench -l pl.UTF-8
+Porównanie wydajności modułów Perla Tie::Cache i Tie::Cache::LRU.
 
 %prep
-%setup -q -n Tie-Cache-%{version}
-%patch -p1
+%setup -q -n %{pdir}-%{pnam}-%{version}
+%patch0 -p1
 
 %build
-perl Makefile.PL
+%{__perl} Makefile.PL \
+       INSTALLDIRS=vendor
 %{__make}
 
+%{?with_tests:%{__make} test}
+
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
-
-gzip -9nf CHANGES README
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc *.gz
-%{perl_sitelib}/Tie/Cache.pm
+%doc CHANGES README
+%{perl_vendorlib}/Tie/Cache.pm
 %{_mandir}/man3/*
+
+%files bench
+%defattr(644,root,root,755)
+%attr(755,root,root) %{perl_vendorlib}/Tie/bench.pl
This page took 0.04668 seconds and 4 git commands to generate.