Compare commits

...

10 Commits

Author SHA256 Message Date
a4621fe683 Normalize CPAN version
See https://github.com/openSUSE/cpanspec/issues/47 for details

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-File-NFSLock?expand=0&rev=12
2024-07-19 23:58:47 +00:00
744a2b7e58 Accepting request 647371 from devel:languages:perl:autoupdate
- 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)

OBS-URL: https://build.opensuse.org/request/show/647371
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-File-NFSLock?expand=0&rev=11
2018-11-08 15:41:41 +00:00
664677dabc OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-File-NFSLock?expand=0&rev=10 2018-10-07 19:40:37 +00:00
7c711911de OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-File-NFSLock?expand=0&rev=9 2018-10-07 19:40:18 +00:00
ca8a327684 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-File-NFSLock?expand=0&rev=7 2018-10-07 19:38:59 +00:00
Stephan Kulow
713432eb42 Accepting request 297807 from devel:languages:perl:autoupdate
- 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

OBS-URL: https://build.opensuse.org/request/show/297807
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-File-NFSLock?expand=0&rev=6
2015-04-17 17:36:33 +00:00
Stephan Kulow
4d95934e28 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-File-NFSLock?expand=0&rev=5 2011-11-11 11:17:54 +00:00
Stephan Kulow
54df233fc4 new macros
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-File-NFSLock?expand=0&rev=4
2010-12-05 12:56:01 +00:00
Stephan Kulow
b6d7fd4e36 - remove /var/adm/perl-modules
- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-File-NFSLock?expand=0&rev=3
2010-11-29 18:55:05 +00:00
Stephan Kulow
3a390c1a14 add changes files
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-File-NFSLock?expand=0&rev=2
2010-11-29 18:04:53 +00:00
5 changed files with 191 additions and 52 deletions

View File

@@ -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
View File

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

20
cpanspec.yml Normal file
View 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
View 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

View File

@@ -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
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
URL: http://search.cpan.org/~bbb/File-NFSLock-%{version}/lib/File/NFSLock.pm
Group: Development/Libraries/Perl
License: Perl License
BuildRoot: %{_tmppath}/build-%{name}-%{version}
Requires: perl
BuildRequires: make perl
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define cpan_name File-NFSLock
Name: perl-File-NFSLock
Version: 1.290.0
Release: 0
# 1.29 -> normalize -> 1.290.0
%define cpan_version 1.29
#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
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.
Authors:
--------
Paul Seamons <paul@seamons.com>
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}"
%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
%__perl Makefile.PL PREFIX="%{_prefix}"
%__make
perl Makefile.PL INSTALLDIRS=vendor
%make_build
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%clean
%__rm -rf "%{buildroot}"
%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}
%files -f %{name}.files
%doc Changes examples README
%changelog
* Tue Jul 22 2008 Pascal Bleser <guru@unixtech.be> 1.20
- new package
# Local Variables:
# mode: rpm-spec
# tab-width: 3
# End: