c307cc1
Name:           perl-File-NFSLock
c307cc1
Version:        1.20
e2a3d9a
Release:        4%{?dist}
c307cc1
Summary:        Perl module to do NFS (or not) locking
c307cc1
c307cc1
Group:          Development/Libraries
a24dd1c
License:        GPL+ or Artistic
c307cc1
URL:            http://search.cpan.org/dist/File-NFSLock
c307cc1
Source0:        http://search.cpan.org/CPAN/authors/id/B/BB/BBB/File-NFSLock-%{version}.tar.gz
c307cc1
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
c307cc1
c307cc1
BuildArch:      noarch
a24dd1c
BuildRequires:  perl(ExtUtils::MakeMaker)
c307cc1
Requires:  perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
c307cc1
c307cc1
%description
c307cc1
Program based of concept of hard linking of files being atomic across NFS. 
c307cc1
This concept was mentioned in Mail::Box::Locker (which was originally 
c307cc1
presented in Mail::Folder::Maildir). Some routine flow is taken from 
c307cc1
there -- particularly the idea of creating a random local file, hard 
c307cc1
linking a common file to the local file, and then checking the nlink 
c307cc1
status. Some ideologies were not complete (uncache mechanism, shared 
c307cc1
locking) and some coding was even incorrect (wrong stat index). 
c307cc1
File::NFSLock was written to be light, generic, and fast.
c307cc1
c307cc1
%prep
c307cc1
%setup -q -n File-NFSLock-%{version}
c307cc1
c307cc1
c307cc1
%build
c307cc1
%{__perl} Makefile.PL INSTALLDIRS=vendor
c307cc1
make %{?_smp_mflags}
c307cc1
c307cc1
c307cc1
%install
c307cc1
rm -rf $RPM_BUILD_ROOT
c307cc1
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
c307cc1
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
c307cc1
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
c307cc1
chmod -R u+w $RPM_BUILD_ROOT/*
c307cc1
c307cc1
chmod a-x examples/lock_test
c307cc1
c307cc1
%check
c307cc1
make test
c307cc1
c307cc1
c307cc1
%clean
c307cc1
rm -rf $RPM_BUILD_ROOT
c307cc1
c307cc1
c307cc1
%files
c307cc1
%defattr(-,root,root,-)
c307cc1
%doc Changes README examples/
c307cc1
%{perl_vendorlib}/*
c307cc1
%{_mandir}/man3/*.3*
c307cc1
c307cc1
c307cc1
%changelog
e2a3d9a
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.20-4
e2a3d9a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
e2a3d9a
8e4e9fd
* Fri Feb  8 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.20-3
8e4e9fd
- rebuild for new perl
8e4e9fd
a24dd1c
* Mon Oct 15 2007 Tom "spot" Callaway <tcallawa@redhat.com> 1.20-2.1
a24dd1c
- correct license tag
a24dd1c
- add BR: perl(ExtUtils::MakeMaker)
a24dd1c
c307cc1
* Tue Jul 18 2006 Patrice Dumas <pertusus@free.fr> 1.20-2
c307cc1
- add examples/ to %%doc
c307cc1
c307cc1
* Tue Jul 18 2006 Patrice Dumas <pertusus@free.fr> 1.20-1
c307cc1
- Initial packaging