]> git.pld-linux.org Git - packages/perl-LockFile-Simple.git/blame - perl-LockFile-Simple.spec
- release 4
[packages/perl-LockFile-Simple.git] / perl-LockFile-Simple.spec
CommitLineData
9a34c4a4 1#
2# Conditional build:
690f35d8 3%bcond_without tests # do not perform "make test"
9a34c4a4 4#
5%include /usr/lib/rpm/macros.perl
4debc392 6%define pdir LockFile
7%define pnam Simple
9a34c4a4 8Summary: LockFile::Simple Perl module - simple file locking scheme
1e9ad3c9 9Summary(pl.UTF-8): Moduł Perla LockFile::Simple - prosty schemat blokowania plików
9a34c4a4 10Name: perl-LockFile-Simple
11Version: 0.2.5
f9a56399 12Release: 4
9a34c4a4 13License: Artistic
14Group: Development/Languages/Perl
15Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
d97c8524 16# Source0-md5: acf9fd6f965789a42fa5314a4be0189d
21b08708 17BuildRequires: perl-devel >= 1:5.8.0
62f396a0 18BuildRequires: rpm-perlprov >= 4.1-13
9a34c4a4 19BuildArch: noarch
20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22%description
23LockFile::Simple Perl module - provides simple locking scheme which
24is not based on any file locking system calls such as "flock()" or
25"lockf()" but rather relies on basic file system primitives and
26properties, such as the atomicity of the "write()" system call. It is
27not meant to be exempt from all race conditions, especially over NFS.
28
3c84c331
JR
29%description -l pl.UTF-8
30Moduł Perla LockFile::Simple - udostępnia prosty system blokowania
31plików nie oparty na żadnych funkcjach systemowych, takich jak
32"flock()" i "lockf()" służących do blokowania plików. Korzysta on z
33podstawowych własności systemów plików, takich jak atomowość funkcji
34systemowej "write()". Nie oznacza to, że jest on wolny od sytuacji
35"wyścigu" (race conditions), zwłaszcza w przypadku korzystania z NFS.
9a34c4a4 36
37%prep
38%setup -q -n %{pdir}-%{pnam}-%{version}
39
40%build
62f396a0 41%{__perl} Makefile.PL \
eb9b17d8 42 INSTALLDIRS=vendor
9a34c4a4 43%{__make}
44
690f35d8 45%{?with_tests:%{__make} test}
9a34c4a4 46
47%install
48rm -rf $RPM_BUILD_ROOT
49
89f3374a 50%{__make} install \
51 DESTDIR=$RPM_BUILD_ROOT
9a34c4a4 52
53%clean
54rm -rf $RPM_BUILD_ROOT
55
56%files
57%defattr(644,root,root,755)
58%doc ChangeLog README
62f396a0 59%{perl_vendorlib}/LockFile/*.pm
60%{perl_vendorlib}/LockFile/Lock
9a34c4a4 61%{_mandir}/man3/*
This page took 0.630864 seconds and 4 git commands to generate.