Name: perl-File-FcntlLock
Version: 0.12
Release: 1%{?dist}
Summary: Perl module for file locking with fcntl
Group: Development/Libraries
License: GPL+ or Artistic
URL: http://search.cpan.org/dist/File-FcntlLock/
Source0: http://search.cpan.org/CPAN/authors/id/J/JT/JTT/File-FcntlLock-%{version}.tar.gz
BuildRequires: perl(POSIX), perl(Errno), perl(Carp), perl(Exporter), perl(DynaLoader)
BuildRequires: perl(ExtUtils::MakeMaker), perl(Config)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
FcntlLock is a module to do file locking in an object oriented
fashion using the fcntl(2) system call. This allows locks on parts
of a file as well as on the whole file and overcomes some known
problems with flock(2), on which Perl's flock() function is based.
%prep
%setup -q -n File-FcntlLock-%{version}
%build
CFLAGS="$RPM_OPT_FLAGS" %{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
make pure_install PERL_INSTALL_ROOT=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
chmod -R u+w %{buildroot}/*
%check
make test
%files
%defattr(-,root,root,-)
%doc Changes README
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/File/
%{_mandir}/man3/*.3pm*
%changelog
* Tue Jul 13 2010 Tom "spot" Callaway <tcallawa@redhat.com> - 0.12-1
- initial package