X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=perl-Tie-Cache.spec;h=5a6d1ec43f811d734d7bea01b9fcadea83e467b8;hb=HEAD;hp=829b9397d96354689517bf8f62b425edabc23d28;hpb=77cf35fb7be37b5aa5a9058435f43623800a1dba;p=packages%2Fperl-Tie-Cache.git diff --git a/perl-Tie-Cache.spec b/perl-Tie-Cache.spec index 829b939..5a6d1ec 100644 --- a/perl-Tie-Cache.spec +++ b/perl-Tie-Cache.spec @@ -1,55 +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.08 -Release: 1 -License: GPL +Version: 0.17 +Release: 7 +# same as perl +License: GPL v1+ or Artistic Group: Development/Languages/Perl -Group(pl): Programowanie/Jêzyki/Perl -Source0: ftp://ftp.perl.org/pub/CPAN/modules/by-module/Tie/Tie-Cache-%{version}.tar.gz -Patch0: perl-Tie-Cache-paths.patch -BuildRequires: rpm-perlprov >= 3.0.3-16 -BuildRequires: perl >= 5.005_03-14 -%requires_eq perl -Requires: %{perl_sitearch} +Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz +# Source0-md5: 93f1bb8006815ade24fde309925cebe0 +Patch0: %{name}-paths.patch +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 -make +%{__perl} Makefile.PL \ + INSTALLDIRS=vendor +%{__make} + +%{?with_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT -%{__make} install DESTDIR=$RPM_BUILD_ROOT -( - cd $RPM_BUILD_ROOT%{perl_sitearch}/auto/Tie/Cache - sed -e "s#$RPM_BUILD_ROOT##" .packlist >.packlist.new - mv .packlist.new .packlist -) - -gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man3/* \ - CHANGES README +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) -%doc {CHANGES,README}.gz - -%{perl_sitelib}/Tie/Cache.pm -%{perl_sitearch}/auto/Tie/Cache - +%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