]> git.pld-linux.org Git - packages/perl-LockFile-Simple.git/blame - perl-LockFile-Simple.spec
- drop obsolete and outdated manual inclusion of rpm macros
[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"
d3ff3a29 4
4debc392 5%define pdir LockFile
6%define pnam Simple
9a34c4a4 7Summary: LockFile::Simple Perl module - simple file locking scheme
1e9ad3c9 8Summary(pl.UTF-8): Moduł Perla LockFile::Simple - prosty schemat blokowania plików
9a34c4a4 9Name: perl-LockFile-Simple
9d9bccdd 10Version: 0.207
11Release: 1
9a34c4a4 12License: Artistic
13Group: Development/Languages/Perl
14Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
9d9bccdd 15# Source0-md5: 194573bdf3f1823723959b25f0a322d0
d3ff3a29 16URL: http://search.cpan.org/dist/LockFile-Simple/
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
d3ff3a29
ER
23LockFile::Simple Perl module - provides simple locking scheme which is
24not based on any file locking system calls such as "flock()" or
9a34c4a4 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.065755 seconds and 4 git commands to generate.