%define pdir File %define pnam Lockf Summary: File::lockf - Perl module interface to the lockf system call Summary(pl.UTF-8): File::lockf - interfejs perlowy do wywołania systemowego lockf Name: perl-File-Lockf Version: 0.25 Release: 6 License: GPL v1+ Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/File/%{pdir}-%{pnam}-%{version}.tar.gz # Source0-md5: 3c6b8ca40caa1b3975f5b7567d91d6f1 URL: http://search.cpan.org/dist/File-Lockf/ BuildRequires: perl-devel >= 1:5.8.0 BuildRequires: rpm-perlprov >= 4.1-13 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description File-lockf is an interface to the lockf system call. Perl supports the flock system call natively, but that does not acquire network locks. Perl also supports the fcntl system call, but that is somewhat ugly to use. There are other locking modules available for Perl, but none of them provided a simple, clean interface to the lockf system call, without any bells or whistles getting in the way. %description -l pl.UTF-8 File::lockf stanowi interfejs do wywołania systemowego lockf. Perl posiada wbudowaną obsługę lockf, ale nie wspiera ona blokad sieciowych. Istnieją inne moduły Perla do zakładania blokad, ale żaden z nich nie posiada prostego, jasnego interfejsu do wywołania systemowego lockf bez żadnych dzwonków i gwizdków po drodze. %prep %setup -q -n %{pdir}-%{pnam}-%{version} %build %{__perl} Makefile.PL \ INSTALLDIRS=vendor %{__make} \ CC="%{__cc}" \ OPTIMIZE="%{rpmcflags}" %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc README %{perl_vendorarch}/File/lockf.pm %dir %{perl_vendorarch}/auto/File/lockf %attr(755,root,root) %{perl_vendorarch}/auto/File/lockf/lockf.so %{_mandir}/man3/*