]> git.pld-linux.org Git - packages/perl-File-CounterFile.git/blobdiff - perl-File-CounterFile.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-File-CounterFile.git] / perl-File-CounterFile.spec
index 8bdbf0fca16fc3c85ed6770478e37203b1c12aa6..fbc3835cb9ef0f712b1b2c68571ed1ed5a1331f9 100644 (file)
@@ -1,50 +1,61 @@
-%include       /usr/lib/rpm/macros.perl
-Summary:       File-CounterFile perl module
-Summary(pl):   Modu³ perla File-CounterFile
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+
+%define                pdir    File
+%define                pnam    CounterFile
+Summary:       File::CounterFile - persistent counter class
+Summary(pl.UTF-8):     File::CounterFile - klasa trwałych liczników
 Name:          perl-File-CounterFile
-Version:       0.12
-Release:       6
-License:       GPL
+Version:       1.04
+Release:       2
+# same as perl
+License:       GPL v1+ or Artistic
 Group:         Development/Languages/Perl
-Group(cs):     Vývojové prostøedky/Programovací jazyky/Perl
-Group(de):     Entwicklung/Sprachen/Perl
-Group(es):     Desarrollo/Lenguajes/Perl
-Group(fr):     Development/Langues/Perl
-Group(ja):     ³«È¯/¸À¸ì/Perl
-Group(pl):     Programowanie/Jêzyki/Perl
-Group(pt):     Desenvolvimento/Linguagens/Perl
-Group(ru):     òÁÚÒÁÂÏÔËÁ/ñÚÙËÉ/Perl
-Source0:       ftp://ftp.perl.org/pub/CPAN/modules/by-module/File/File-CounterFile-%{version}.tar.gz
-BuildRequires: rpm-perlprov >= 3.0.3-16
-BuildRequires: perl >= 5.6
+Source0:       http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: df77e2dbc80aa3ec9647a570bb5e0cf8
+URL:           http://search.cpan.org/dist/File-CounterFile/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-File-CounterFile - Persistent counter class.
-
-%description -l pl
-Modu³ perla File-CounterFile.
+The File::CounterFile Perl module implements a persistent counter
+class. Each counter is represented by a separate file in the file
+system. File locking is applied, so multiple processes might try to
+access the same counters at the same time without risk of counter
+destruction.
+
+%description -l pl.UTF-8
+Moduł Perla File::CounterFile stanowi implementację klasy trwałych
+liczników. Każdy z liczników jest reprezentowany przez osobny plik w
+systemie plików. Można stosować są blokady plików, aby z tych samych
+liczników mogło korzystać jednocześnie wiele procesów, bez ryzyka
+uszkodzenia licznika.
 
 %prep
-%setup -q -n File-CounterFile-%{version}
+%setup -q -n %{pdir}-%{pnam}-%{version}
 
 %build
-perl Makefile.PL
+%{__perl} Makefile.PL \
+       INSTALLDIRS=vendor
+
 %{__make}
 
+%{?with_tests:%{__make} test}
+
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
-
-gzip -9nf Changes README
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc *.gz
-%{perl_sitelib}/File/CounterFile.pm
+%doc Changes README
+%{perl_vendorlib}/%{pdir}/%{pnam}.pm
 %{_mandir}/man3/*
This page took 0.079477 seconds and 4 git commands to generate.