3 # _without_tests - do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: Dir::Purge - Purge directories to a given number of files
9 Summary(pl): Dir::Purge - czyszczenie katalogu do podanej liczby plików
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 BuildRequires: perl >= 5.6
17 BuildRequires: rpm-perlprov >= 3.0.3-26
18 %if %{?_without_tests:0}%{!?_without_tests:1}
19 BuildRequires: perl(File::Path)
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 Dir::Purge implements functions to reduce the number of files in a
26 directory according to a strategy. It currently provides one strategy:
27 removal of files by age.
30 Modu³ Dir::Purge jest implementacj± funkcji zmniejszaj±cej liczbê
31 plików w katalogu zgodnie ze strategi±. Aktualnie obs³uguje jedn±
32 strategiê: usuwanie plików w zale¿no¶ci od ich wieku.
35 %setup -q -n %{pdir}-%{pnam}-%{version}
41 %{!?_without_tests:%{__make} test}
44 rm -rf $RPM_BUILD_ROOT
46 %{__make} install DESTDIR=$RPM_BUILD_ROOT
49 rm -rf $RPM_BUILD_ROOT
52 %defattr(644,root,root,755)
54 %dir %{perl_sitelib}/Dir
55 %{perl_sitelib}/Dir/*.pm