3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
7 %define pnam CounterFile
8 Summary: File::CounterFile - persistent counter class
9 Summary(pl.UTF-8): File::CounterFile - klasa trwałych liczników
10 Name: perl-File-CounterFile
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: df77e2dbc80aa3ec9647a570bb5e0cf8
18 BuildRequires: rpm-perlprov >= 4.1-13
19 BuildRequires: perl-devel >= 1:5.8.0
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