rpms/perl-File-NFSLock/devel perl-File-NFSLock.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Patrice Dumas (pertusus) fedora-extras-commits at redhat.com
Tue Aug 29 09:28:22 UTC 2006


Author: pertusus

Update of /cvs/extras/rpms/perl-File-NFSLock/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv2165/devel

Modified Files:
	.cvsignore sources 
Added Files:
	perl-File-NFSLock.spec 
Log Message:
auto-import perl-File-NFSLock-1.20-2 on branch devel from perl-File-NFSLock-1.20-2.src.rpm


--- NEW FILE perl-File-NFSLock.spec ---
Name:           perl-File-NFSLock
Version:        1.20
Release:        2%{?dist}
Summary:        Perl module to do NFS (or not) locking

Group:          Development/Libraries
License:        Artistic or GPL
URL:            http://search.cpan.org/dist/File-NFSLock
Source0:        http://search.cpan.org/CPAN/authors/id/B/BB/BBB/File-NFSLock-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildArch:      noarch
BuildRequires:  perl
Requires:  perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

%description
Program based of concept of hard linking of files being atomic across NFS. 
This concept was mentioned in Mail::Box::Locker (which was originally 
presented in Mail::Folder::Maildir). Some routine flow is taken from 
there -- particularly the idea of creating a random local file, hard 
linking a common file to the local file, and then checking the nlink 
status. Some ideologies were not complete (uncache mechanism, shared 
locking) and some coding was even incorrect (wrong stat index). 
File::NFSLock was written to be light, generic, and fast.

%prep
%setup -q -n File-NFSLock-%{version}


%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}


%install
rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
chmod -R u+w $RPM_BUILD_ROOT/*

chmod a-x examples/lock_test

%check
make test


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc Changes README examples/
%{perl_vendorlib}/*
%{_mandir}/man3/*.3*


%changelog
* Tue Jul 18 2006 Patrice Dumas <pertusus at free.fr> 1.20-2
- add examples/ to %%doc

* Tue Jul 18 2006 Patrice Dumas <pertusus at free.fr> 1.20-1
- Initial packaging


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/perl-File-NFSLock/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	29 Aug 2006 09:27:49 -0000	1.1
+++ .cvsignore	29 Aug 2006 09:28:22 -0000	1.2
@@ -0,0 +1 @@
+File-NFSLock-1.20.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/perl-File-NFSLock/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	29 Aug 2006 09:27:49 -0000	1.1
+++ sources	29 Aug 2006 09:28:22 -0000	1.2
@@ -0,0 +1 @@
+68bddc5e2c32d9748ae689f398fc1147  File-NFSLock-1.20.tar.gz




More information about the scm-commits mailing list