]> git.pld-linux.org Git - packages/perl-File-CounterFile.git/blob - perl-File-CounterFile.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-File-CounterFile.git] / perl-File-CounterFile.spec
1 #
2 # Conditional build:
3 %bcond_without  tests # do not perform "make test"
4
5 %define         pdir    File
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
10 Version:        1.04
11 Release:        2
12 # same as perl
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
20 BuildArch:      noarch
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
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
28 destruction.
29
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
35 uszkodzenia licznika.
36
37 %prep
38 %setup -q -n %{pdir}-%{pnam}-%{version}
39
40 %build
41 %{__perl} Makefile.PL \
42         INSTALLDIRS=vendor
43
44 %{__make}
45
46 %{?with_tests:%{__make} test}
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50
51 %{__make} install \
52         DESTDIR=$RPM_BUILD_ROOT
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56
57 %files
58 %defattr(644,root,root,755)
59 %doc Changes README
60 %{perl_vendorlib}/%{pdir}/%{pnam}.pm
61 %{_mandir}/man3/*
This page took 0.059085 seconds and 4 git commands to generate.