]> git.pld-linux.org Git - packages/perl-IO-LockedFile.git/blame - perl-IO-LockedFile.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-IO-LockedFile.git] / perl-IO-LockedFile.spec
CommitLineData
ac5dc537
ER
1#
2# Conditional build:
3%bcond_with tests # perform "make test"
4#
ac5dc537
ER
5%define pdir IO
6%define pnam LockedFile
3f536c06 7Summary: IO::LockedFile - supply object methods for locking files
987b97a4 8Summary(pl.UTF-8): IO::LockedFile - metody obiektów do blokowania blików
ac5dc537
ER
9Name: perl-IO-LockedFile
10Version: 0.23
98b2acb4 11Release: 1
ac5dc537
ER
12# same as perl
13License: GPL v1+ or Artistic
14Group: Development/Languages/Perl
6eb30577 15Source0: http://www.cpan.org/modules/by-module/IO/%{pdir}-%{pnam}-%{version}.tar.gz
ac5dc537 16# Source0-md5: f447f67ac7c9f42d86d07ca7477cdec6
6eb30577 17URL: http://search.cpan.org/dist/IO-LockedFile/
ac5dc537
ER
18BuildRequires: perl-devel >= 1:5.8.0
19BuildRequires: rpm-perlprov >= 4.1-13
20BuildArch: noarch
21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23%description
3f536c06
JB
24In its simplistic use, the IO::LockedFile class gives us the same
25interface of the IO::File class with the unique difference that the
26files we deal with are locked using the Flock mechanism (using the
ac5dc537
ER
27flock function).
28
e914bcfe
JR
29%description -l pl.UTF-8
30W najprostszym zastosowaniu klasa IO::LockedFile udostępnia ten sam
31interfejs, co klasa IO::File z jedyną różnicą polegającą na tym, że
32pliki są blokowane przy użyciu mechanizmu Flock (przy użyciu funkcji
3f536c06
JB
33flock).
34
ac5dc537
ER
35%prep
36%setup -q -n %{pdir}-%{pnam}-%{version}
37
38%build
39%{__perl} Makefile.PL \
40 INSTALLDIRS=vendor
41%{__make}
42
43%{?with_tests:%{__make} test}
44
45%install
46rm -rf $RPM_BUILD_ROOT
47
48%{__make} pure_install \
49 DESTDIR=$RPM_BUILD_ROOT
50
51%clean
52rm -rf $RPM_BUILD_ROOT
53
54%files
55%defattr(644,root,root,755)
56%doc Changes README
57%{perl_vendorlib}/IO/*.pm
58%{perl_vendorlib}/IO/LockedFile
59%{_mandir}/man3/*
This page took 0.065409 seconds and 4 git commands to generate.