diff --git a/.cvsignore b/.cvsignore index e69de29..71254cf 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +File-FcntlLock-0.12.tar.gz diff --git a/import.log b/import.log new file mode 100644 index 0000000..70c9f0b --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +perl-File-FcntlLock-0_12-1_fc13:HEAD:perl-File-FcntlLock-0.12-1.fc13.src.rpm:1279035939 diff --git a/perl-File-FcntlLock.spec b/perl-File-FcntlLock.spec new file mode 100644 index 0000000..f8277a1 --- /dev/null +++ b/perl-File-FcntlLock.spec @@ -0,0 +1,45 @@ +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 - 0.12-1 +- initial package diff --git a/sources b/sources index e69de29..6778195 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +ee75374c6f1a9db2bca92d3a396f748e File-FcntlLock-0.12.tar.gz