forked from pool/perl-LockFile-Simple
Compare commits
10 Commits
0c9f2fd5de
...
c4440b737c
Author | SHA256 | Date | |
---|---|---|---|
|
c4440b737c | ||
|
5d615eb5c6 | ||
|
beda0bae90 | ||
|
f01343151c | ||
|
8e08a25db9 | ||
|
d2f4cb2acd | ||
|
6329e9b584 | ||
|
d6dec8fa0d | ||
|
1488246386 | ||
|
3f0d95ee49 |
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:1f85678bd3c85dc5ed76c4fe3f9eb0091ad27606265fe6f519e4fd09fe04c07c
|
||||
size 12039
|
3
LockFile-Simple-0.208.tar.gz
Normal file
3
LockFile-Simple-0.208.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:45c77896b2a5a0a45f6202a6f813f437ff8b283f84a1c60d0c4f3730802af3a2
|
||||
size 13219
|
@@ -1,3 +1,29 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Jul 26 18:33:49 UTC 2013 - coolo@suse.com
|
||||
|
||||
- updated to 0.208
|
||||
Fix deprecated defined(@array) for Perl 5.16
|
||||
|
||||
-------------------------------------------------------------------
|
||||
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
|
||||
|
||||
- switch to perl_requires macro
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 29 18:30:24 UTC 2010 - coolo@novell.com
|
||||
|
||||
- remove /var/adm/perl-modules
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Nov 28 11:37:52 UTC 2010 - coolo@novell.com
|
||||
|
||||
- remove .packlist file
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 19 08:38:44 UTC 2010 - coolo@novell.com
|
||||
|
||||
|
@@ -1,67 +1,68 @@
|
||||
#
|
||||
# spec file for package perl-LockFile-Simple
|
||||
#
|
||||
# Copyright (c) 2013 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.
|
||||
|
||||
# norootforbuild
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
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
|
||||
Requires: perl = %{perl_version}
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
# MANUAL license
|
||||
Name: perl-LockFile-Simple
|
||||
Version: 0.208
|
||||
Release: 0
|
||||
%define cpan_name LockFile-Simple
|
||||
Summary: Simple file locking scheme
|
||||
License: GPL-2.0+ or Artistic-1.0
|
||||
Group: Development/Libraries/Perl
|
||||
Url: http://search.cpan.org/dist/LockFile-Simple/
|
||||
Source: http://www.cpan.org/authors/id/S/SC/SCHWIGON/lockfile-simple/%{cpan_name}-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
#BuildRequires: perl(LockFile::Lock)
|
||||
#BuildRequires: perl(LockFile::Lock::Simple)
|
||||
#BuildRequires: perl(LockFile::Manager)
|
||||
#BuildRequires: perl(LockFile::Simple)
|
||||
%{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}
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%doc ChangeLog README
|
||||
|
||||
%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_vendorarch}/auto/LockFile/Simple/.packlist
|
||||
%{perl_vendorlib}/LockFile/*.pm
|
||||
%{perl_vendorlib}/LockFile/Lock/*.pm
|
||||
/var/adm/perl-modules/%{name}
|
||||
|
||||
%changelog
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user