3 %bcond_without tests # do not perform "make test"
7 Summary: Dir::Purge - purge directories to a given number of files
8 Summary(pl.UTF-8): Dir::Purge - czyszczenie katalogu do podanej liczby plików
12 License: GPL v2+ or Artistic
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-module/Dir/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5: d3dfb0af9e06b14f3e9017fa6257ecda
16 URL: http://search.cpan.org/dist/Dir-Purge/
17 BuildRequires: perl-devel >= 1:5.8.0
18 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRequires: perl(File::Path)
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 Dir::Purge implements functions to reduce the number of files in a
27 directory according to a strategy. It currently provides one strategy:
28 removal of files by age.
30 %description -l pl.UTF-8
31 Moduł Dir::Purge jest implementacją funkcji zmniejszającej liczbę
32 plików w katalogu zgodnie ze strategią. Aktualnie obsługuje jedną
33 strategię: usuwanie plików w zależności od ich wieku.
36 %setup -q -n %{pdir}-%{pnam}-%{version}
39 %{__perl} Makefile.PL \
43 %{?with_tests:%{__make} test}
46 rm -rf $RPM_BUILD_ROOT
49 DESTDIR=$RPM_BUILD_ROOT
52 rm -rf $RPM_BUILD_ROOT
55 %defattr(644,root,root,755)
57 %dir %{perl_vendorlib}/Dir
58 %{perl_vendorlib}/Dir/*.pm