8
0
Stephan Kulow
2011-07-14 07:19:30 +00:00
committed by Git OBS Bridge
parent 6329e9b584
commit d2f4cb2acd
4 changed files with 51 additions and 46 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1f85678bd3c85dc5ed76c4fe3f9eb0091ad27606265fe6f519e4fd09fe04c07c
size 12039

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:eac63d0bb3144527044478556ba7a47dedd010f95b29491af07652697c8a3b9c
size 12753

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jul 14 07:13:31 UTC 2011 - coolo@novell.com
- regenerate with cpanspec
-------------------------------------------------------------------
Wed Dec 1 13:33:19 UTC 2010 - coolo@novell.com

View File

@@ -1,66 +1,66 @@
#
# spec file for package perl-LockFile-Simple
# spec file for package perl-LockFile-Simple (Version 0.207)
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: perl-LockFile-Simple
%define real_name LockFile-Simple
Summary: Simple file locking scheme
Url: http://search.cpan.org/perldoc?LockFile::Simple
Group: Development/Libraries/Perl
License: Artistic License
Version: 0.207
Release: 1
Vendor: openSUSE-Education
Source: %{real_name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
Name: perl-LockFile-Simple
Version: 0.207
Release: 1
# MANUAL
License: GPL2+ or Artistic
%define cpan_name LockFile-Simple
Summary: simple file locking scheme
Url: http://search.cpan.org/dist/LockFile-Simple/
Group: Development/Libraries/Perl
Source: http://www.cpan.org/authors/id/J/JV/JV/%{cpan_name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
%{perl_requires}
%description
This simple locking scheme is not based on any file locking system calls such
as flock() or lockf() but rather relies on basic file system primitives and
properties, such as the atomicity of the write() system call. It is not meant
to be exempt from all race conditions, especially over NFS. The algorithm used
is described below in the ALGORITHM section.
This simple locking scheme is not based on any file locking system calls
such as 'flock()' or 'lockf()' but rather relies on basic file system
primitives and properties, such as the atomicity of the 'write()' system
call. It is not meant to be exempt from all race conditions, especially
over NFS. The algorithm used is described below in the *ALGORITHM* section.
It is possible to customize the locking operations to attempt locking once
every 5 seconds for 30 times, or delete stale locks (files that are deemed too
ancient) before attempting the locking.
Author:
-------
Raphael Manfredi <Raphael_Manfredi@pobox.com>
every 5 seconds for 30 times, or delete stale locks (files that are deemed
too ancient) before attempting the locking.
%prep
%setup -n %{real_name}-%{version}
%setup -q -n %{cpan_name}-%{version}
%build
perl Makefile.PL
make %{?jobs:-j%jobs}
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%{__make} %{?_smp_mflags}
%check
make test
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%clean
rm -rf %{buildroot}
%{__rm} -rf %{buildroot}
%files
%defattr(-, root, root)
%doc ChangeLog README MANIFEST
%doc %{_mandir}/man?/*
%dir %{perl_vendorarch}/auto/LockFile
%dir %{perl_vendorarch}/auto/LockFile/Simple
%dir %{perl_vendorlib}/LockFile
%dir %{perl_vendorlib}/LockFile/Lock
%{perl_vendorlib}/LockFile/*.pm
%{perl_vendorlib}/LockFile/Lock/*.pm
%files -f %{name}.files
%defattr(-,root,root,755)
%doc ChangeLog README
%changelog