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: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 BuildRequires: perl >= 5.6
17 BuildRequires: rpm-perlprov >= 4.1-13
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}
38 %{__perl} Makefile.PL \
42 %{!?_without_tests:%{__make} test}
45 rm -rf $RPM_BUILD_ROOT
47 %{__make} install DESTDIR=$RPM_BUILD_ROOT
50 rm -rf $RPM_BUILD_ROOT
53 %defattr(644,root,root,755)
55 %dir %{perl_vendorlib}/Dir
56 %{perl_vendorlib}/Dir/*.pm