Compare commits
10 Commits
207e183861
...
a4621fe683
Author | SHA256 | Date | |
---|---|---|---|
a4621fe683 | |||
744a2b7e58 | |||
664677dabc | |||
7c711911de | |||
ca8a327684 | |||
|
713432eb42 | ||
|
4d95934e28 | ||
|
54df233fc4 | ||
|
b6d7fd4e36 | ||
|
3a390c1a14 |
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:c3a1262e4c6d7dc32f2f7633bef7e15d1bbe671bcdd14552c3804b584fdadcf7
|
|
||||||
size 18521
|
|
3
File-NFSLock-1.29.tar.gz
Normal file
3
File-NFSLock-1.29.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:61d41599b481164edf9b8becabbef2d23f622a9727f6c18365e92b5782d4fa37
|
||||||
|
size 21743
|
20
cpanspec.yml
Normal file
20
cpanspec.yml
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
---
|
||||||
|
#description_paragraphs: 3
|
||||||
|
#no_testing: broken upstream
|
||||||
|
#sources:
|
||||||
|
# - source1
|
||||||
|
# - source2
|
||||||
|
#patches:
|
||||||
|
# foo.patch: -p1
|
||||||
|
# bar.patch:
|
||||||
|
#preamble: |-
|
||||||
|
# BuildRequires: gcc-c++
|
||||||
|
#post_prep: |-
|
||||||
|
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
|
||||||
|
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
|
||||||
|
#post_install: |-
|
||||||
|
# sed on %{name}.files
|
||||||
|
license: Perl License
|
||||||
|
#skip_noarch: 1
|
||||||
|
#custom_build: -
|
||||||
|
#./Build build flags=%{?_smp_mflags} --myflag
|
114
perl-File-NFSLock.changes
Normal file
114
perl-File-NFSLock.changes
Normal file
@@ -0,0 +1,114 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Nov 8 06:21:33 UTC 2018 - Stephan Kulow <coolo@suse.com>
|
||||||
|
|
||||||
|
- updated to 1.29
|
||||||
|
see /usr/share/doc/packages/perl-File-NFSLock/Changes
|
||||||
|
|
||||||
|
1.29 Nov 01 14:00 2018
|
||||||
|
- Avoid deprecated PERL_USE_UNSAFE_INC
|
||||||
|
|
||||||
|
1.28 Nov 01 10:00 2018
|
||||||
|
- Patch RT#130467 and RT#120088:
|
||||||
|
- Handle "." not in @INC
|
||||||
|
Drop File-NFSLock.patch (upstream)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Oct 7 19:40:29 UTC 2018 - Dirk Stoecker <opensuse@dstoecker.de>
|
||||||
|
|
||||||
|
- Fix build: File-NFSLock.patch
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Apr 17 16:37:43 UTC 2015 - coolo@suse.com
|
||||||
|
|
||||||
|
- updated to 1.27
|
||||||
|
see /usr/share/doc/packages/perl-File-NFSLock/Changes
|
||||||
|
|
||||||
|
1.27 Nov 12 13:00 2014
|
||||||
|
- RT#99431:
|
||||||
|
- More Win32 compatibility fixes in test suite.
|
||||||
|
- RT#48102:
|
||||||
|
- Add tests for new ->fork() method.
|
||||||
|
|
||||||
|
1.26 Nov 07 16:00 2014
|
||||||
|
- Add File::NFSLock->fork() convenience method.
|
||||||
|
- RT#48102 Report by Todd Foggoa:
|
||||||
|
- More gracefully handle fork() to behave like
|
||||||
|
Linux by sharing the lock between both parent
|
||||||
|
and child processes when ->newpid() is called.
|
||||||
|
|
||||||
|
1.25 Jul 30 14:00 2014
|
||||||
|
- RT#99431 Report by Nathan Glenn:
|
||||||
|
- Fixed tempfile syntax by Christian Walde.
|
||||||
|
- Fixed Win32 Shared Lock by Christian Walde.
|
||||||
|
- RT#42122 Report by converter at cpan.org:
|
||||||
|
- Add tests to help debug Taint issues
|
||||||
|
|
||||||
|
1.24 Jul 30 14:00 2014
|
||||||
|
- Fixed a race condition in crash recovery.
|
||||||
|
- RT#88520 Thanks David Steinbrunner: Fix typos
|
||||||
|
|
||||||
|
1.23 Jul 28 11:00 2014
|
||||||
|
- More gracefully handle arbitrary hostnames.
|
||||||
|
- Patch RT#84658 by Yann Rouillard:
|
||||||
|
- Avoid gleefully double removing valid lockfile
|
||||||
|
when ->unlock is explicitly called.
|
||||||
|
- Patch RT#61258 by cpan at danonline.net:
|
||||||
|
- Fixed $graceful_sig to exit with non-zero to
|
||||||
|
more closely match stock signal handlers.
|
||||||
|
|
||||||
|
1.22 Jul 26 09:00 2014
|
||||||
|
- Reported by Kent Fredric and Karen Etheridge:
|
||||||
|
- Patch RT#86125 and RT#91546
|
||||||
|
- Use File::Temp for concurrency compatibility
|
||||||
|
in test suite, such as HARNESS_OPTIONS=j20
|
||||||
|
|
||||||
|
1.21 Jul 13 17:00 2011
|
||||||
|
- Various patches by Chorny at cpan dot org
|
||||||
|
and fREW frioux at gmail dot com:
|
||||||
|
- Windows NTFS compatibility fixes.
|
||||||
|
- Allow PID to be negative.
|
||||||
|
- Lexically scope temp file handles to
|
||||||
|
reduce changes of memory leak and
|
||||||
|
avoid unintentional glob clobberation.
|
||||||
|
- Security fix: 3 arg open().
|
||||||
|
- Repair test suites logics.
|
||||||
|
- Fixed infinite freezing on Strawberry Perl v5.10.0.
|
||||||
|
- Fixed infinite freezing on ActiveState Perl v5.12.1.
|
||||||
|
- Sorry for the past 8 years of suffering.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Apr 17 16:37:41 UTC 2015 - coolo@suse.com
|
||||||
|
|
||||||
|
- updated to 1.21
|
||||||
|
see /usr/share/doc/packages/perl-File-NFSLock/Changes
|
||||||
|
|
||||||
|
1.21 Jul 13 17:00 2011
|
||||||
|
- Various patches by Chorny at cpan dot org
|
||||||
|
and fREW frioux at gmail dot com:
|
||||||
|
- Windows NTFS compatibility fixes.
|
||||||
|
- Allow PID to be negative.
|
||||||
|
- Lexically scope temp file handles to
|
||||||
|
reduce changes of memory leak and
|
||||||
|
avoid unintentional glob clobberation.
|
||||||
|
- Security fix: 3 arg open().
|
||||||
|
- Repair test suites logics.
|
||||||
|
- Fixed infinite freezing on Strawberry Perl v5.10.0.
|
||||||
|
- Fixed infinite freezing on ActiveState Perl v5.12.1.
|
||||||
|
- Sorry for the past 8 years of suffering.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Nov 29 18:29:58 UTC 2010 - coolo@novell.com
|
||||||
|
|
||||||
|
- remove /var/adm/perl-modules
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Nov 29 18:00:20 UTC 2010 - coolo@novell.com
|
||||||
|
|
||||||
|
- called spec2changelog
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jul 22 00:00:00 UTC 2008 - guru@unixtech.be
|
||||||
|
|
||||||
|
- new package
|
||||||
|
|
||||||
|
|
@@ -1,63 +1,68 @@
|
|||||||
# norootforbuild
|
#
|
||||||
|
# spec file for package perl-File-NFSLock
|
||||||
|
#
|
||||||
|
# Copyright (c) 2024 SUSE LLC
|
||||||
|
#
|
||||||
|
# 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.
|
||||||
|
|
||||||
Name: perl-File-NFSLock
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
Version: 1.20
|
#
|
||||||
Release: 0
|
|
||||||
Summary: Perl Module to do NFS (or not) Locking
|
|
||||||
Source: http://search.cpan.org/CPAN/authors/id/B/BB/BBB/File-NFSLock-%{version}.tar.gz
|
%define cpan_name File-NFSLock
|
||||||
URL: http://search.cpan.org/~bbb/File-NFSLock-%{version}/lib/File/NFSLock.pm
|
Name: perl-File-NFSLock
|
||||||
Group: Development/Libraries/Perl
|
Version: 1.290.0
|
||||||
License: Perl License
|
Release: 0
|
||||||
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
# 1.29 -> normalize -> 1.290.0
|
||||||
Requires: perl
|
%define cpan_version 1.29
|
||||||
BuildRequires: make perl
|
#Upstream: Paul T Seamons paul@seamons.com http://seamons.com/ Rob B Brown bbb@cpan.org This package may be distributed under the terms of either the GNU General Public License or the Perl Artistic License All rights reserved.
|
||||||
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
||||||
|
Summary: Perl module to do NFS (or not) locking
|
||||||
|
URL: https://metacpan.org/release/%{cpan_name}
|
||||||
|
Source0: https://cpan.metacpan.org/authors/id/B/BB/BBB/%{cpan_name}-%{cpan_version}.tar.gz
|
||||||
|
Source1: cpanspec.yml
|
||||||
|
BuildArch: noarch
|
||||||
|
BuildRequires: perl
|
||||||
|
BuildRequires: perl-macros
|
||||||
|
Provides: perl(File::NFSLock) = %{version}
|
||||||
|
%undefine __perllib_provides
|
||||||
|
%{perl_requires}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Program based of concept of hard linking of files being atomic across
|
Program based of concept of hard linking of files being atomic across NFS.
|
||||||
NFS. This concept was mentioned in Mail::Box::Locker (which was originally
|
This concept was mentioned in Mail::Box::Locker (which was originally
|
||||||
presented in Mail::Folder::Maildir). Some routine flow is taken from there --
|
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
|
-- particularly the idea of creating a random local file, hard linking a
|
||||||
file to the local file, and then checking the nlink status. Some ideologies
|
common file to the local file, and then checking the nlink status. Some
|
||||||
were not complete (uncache mechanism, shared locking) and some coding was even
|
ideologies were not complete (uncache mechanism, shared locking) and some
|
||||||
incorrect (wrong stat index). File::NFSLock was written to be light, generic,
|
coding was even incorrect (wrong stat index). File::NFSLock was written to
|
||||||
and fast.
|
be light, generic, and fast.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Authors:
|
|
||||||
--------
|
|
||||||
Paul Seamons <paul@seamons.com>
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n "File-NFSLock-%{version}"
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
||||||
|
|
||||||
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%__perl Makefile.PL PREFIX="%{_prefix}"
|
perl Makefile.PL INSTALLDIRS=vendor
|
||||||
%__make
|
%make_build
|
||||||
|
|
||||||
|
%check
|
||||||
|
make test
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%perl_make_install
|
%perl_make_install
|
||||||
%perl_process_packlist
|
%perl_process_packlist
|
||||||
|
%perl_gen_filelist
|
||||||
|
|
||||||
%clean
|
%files -f %{name}.files
|
||||||
%__rm -rf "%{buildroot}"
|
%doc Changes examples README
|
||||||
|
|
||||||
%files
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%doc Changes README
|
|
||||||
%dir %{perl_vendorlib}/File
|
|
||||||
%{perl_vendorlib}/File/NFSLock.pm
|
|
||||||
%dir %{perl_vendorarch}/auto/File
|
|
||||||
%{perl_vendorarch}/auto/File/NFSLock
|
|
||||||
%doc %{perl_man3dir}/File::NFSLock.%{perl_man3ext}*
|
|
||||||
/var/adm/perl-modules/%{name}
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Tue Jul 22 2008 Pascal Bleser <guru@unixtech.be> 1.20
|
|
||||||
- new package
|
|
||||||
|
|
||||||
# Local Variables:
|
|
||||||
# mode: rpm-spec
|
|
||||||
# tab-width: 3
|
|
||||||
# End:
|
|
||||||
|
Reference in New Issue
Block a user