3 %bcond_with tests # perform "make test"
6 %define pnam LockedFile
7 Summary: IO::LockedFile - supply object methods for locking files
8 Summary(pl.UTF-8): IO::LockedFile - metody obiektów do blokowania blików
9 Name: perl-IO-LockedFile
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/IO/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: f447f67ac7c9f42d86d07ca7477cdec6
17 URL: http://search.cpan.org/dist/IO-LockedFile/
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 In its simplistic use, the IO::LockedFile class gives us the same
25 interface of the IO::File class with the unique difference that the
26 files we deal with are locked using the Flock mechanism (using the
29 %description -l pl.UTF-8
30 W najprostszym zastosowaniu klasa IO::LockedFile udostępnia ten sam
31 interfejs, co klasa IO::File z jedyną różnicą polegającą na tym, że
32 pliki są blokowane przy użyciu mechanizmu Flock (przy użyciu funkcji
36 %setup -q -n %{pdir}-%{pnam}-%{version}
39 %{__perl} Makefile.PL \
43 %{?with_tests:%{__make} test}
46 rm -rf $RPM_BUILD_ROOT
48 %{__make} pure_install \
49 DESTDIR=$RPM_BUILD_ROOT
52 rm -rf $RPM_BUILD_ROOT
55 %defattr(644,root,root,755)
57 %{perl_vendorlib}/IO/*.pm
58 %{perl_vendorlib}/IO/LockedFile