]> git.pld-linux.org Git - packages/perl-File-CounterFile.git/blame - perl-File-CounterFile.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-File-CounterFile.git] / perl-File-CounterFile.spec
CommitLineData
be04532e 1#
2# Conditional build:
c0c5fab7 3%bcond_without tests # do not perform "make test"
315a883b 4
e04d53e0 5%define pdir File
6%define pnam CounterFile
6262e9f7 7Summary: File::CounterFile - persistent counter class
d86ce226 8Summary(pl.UTF-8): File::CounterFile - klasa trwałych liczników
c62251d1 9Name: perl-File-CounterFile
b92e727d 10Version: 1.04
95337393 11Release: 2
6262e9f7 12# same as perl
13License: GPL v1+ or Artistic
c62251d1 14Group: Development/Languages/Perl
de3246a4 15Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
b92e727d 16# Source0-md5: df77e2dbc80aa3ec9647a570bb5e0cf8
315a883b 17URL: http://search.cpan.org/dist/File-CounterFile/
6463e859 18BuildRequires: perl-devel >= 1:5.8.0
315a883b 19BuildRequires: rpm-perlprov >= 4.1-13
6b9826e0 20BuildArch: noarch
a6f20f0e 21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
c62251d1 22
23%description
6262e9f7 24The File::CounterFile Perl module implements a persistent counter
25class. Each counter is represented by a separate file in the file
26system. File locking is applied, so multiple processes might try to
27access the same counters at the same time without risk of counter
28destruction.
c62251d1 29
89f6a2d2
JR
30%description -l pl.UTF-8
31Moduł Perla File::CounterFile stanowi implementację klasy trwałych
32liczników. Każdy z liczników jest reprezentowany przez osobny plik w
33systemie plików. Można stosować są blokady plików, aby z tych samych
34liczników mogło korzystać jednocześnie wiele procesów, bez ryzyka
6262e9f7 35uszkodzenia licznika.
c62251d1 36
37%prep
6a87a02b 38%setup -q -n %{pdir}-%{pnam}-%{version}
c62251d1 39
40%build
66b49bef 41%{__perl} Makefile.PL \
027ad6b9 42 INSTALLDIRS=vendor
c0c5fab7 43
be07d24d 44%{__make}
c0c5fab7
AG
45
46%{?with_tests:%{__make} test}
c62251d1 47
48%install
49rm -rf $RPM_BUILD_ROOT
c62251d1 50
c0c5fab7
AG
51%{__make} install \
52 DESTDIR=$RPM_BUILD_ROOT
c62251d1 53
c62251d1 54%clean
55rm -rf $RPM_BUILD_ROOT
56
57%files
58%defattr(644,root,root,755)
be04532e 59%doc Changes README
b92e727d 60%{perl_vendorlib}/%{pdir}/%{pnam}.pm
c62251d1 61%{_mandir}/man3/*
This page took 0.093124 seconds and 4 git commands to generate.