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