3 %bcond_without tests # do not perform "make test"
6 %define pnam CounterFile
7 Summary: File::CounterFile - persistent counter class
8 Summary(pl.UTF-8): File::CounterFile - klasa trwałych liczników
9 Name: perl-File-CounterFile
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 # Source0-md5: df77e2dbc80aa3ec9647a570bb5e0cf8
17 URL: http://search.cpan.org/dist/File-CounterFile/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 The File::CounterFile Perl module implements a persistent counter
25 class. Each counter is represented by a separate file in the file
26 system. File locking is applied, so multiple processes might try to
27 access the same counters at the same time without risk of counter
30 %description -l pl.UTF-8
31 Moduł Perla File::CounterFile stanowi implementację klasy trwałych
32 liczników. Każdy z liczników jest reprezentowany przez osobny plik w
33 systemie plików. Można stosować są blokady plików, aby z tych samych
34 liczników mogło korzystać jednocześnie wiele procesów, bez ryzyka
38 %setup -q -n %{pdir}-%{pnam}-%{version}
41 %{__perl} Makefile.PL \
46 %{?with_tests:%{__make} test}
49 rm -rf $RPM_BUILD_ROOT
52 DESTDIR=$RPM_BUILD_ROOT
55 rm -rf $RPM_BUILD_ROOT
58 %defattr(644,root,root,755)
60 %{perl_vendorlib}/%{pdir}/%{pnam}.pm