2015-04-17 17:36:33 +00:00
#
# spec file for package perl-File-NFSLock
#
2024-07-19 23:58:47 +00:00
# Copyright (c) 2024 SUSE LLC
2015-04-17 17:36:33 +00:00
#
# 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.
2008-07-22 17:21:41 +00:00
2018-11-08 15:41:41 +00:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
2015-04-17 17:36:33 +00:00
#
2008-07-22 17:21:41 +00:00
2024-07-19 23:58:47 +00:00
%define cpan_name File-NFSLock
2015-04-17 17:36:33 +00:00
Name : perl-File-NFSLock
2024-07-19 23:58:47 +00:00
Version : 1.290.0
2015-04-17 17:36:33 +00:00
Release : 0
2024-07-19 23:58:47 +00:00
# 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.
2018-11-08 15:41:41 +00:00
License : Artistic-1.0 OR GPL-1.0-or-later
2024-07-19 23:58:47 +00:00
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
2015-04-17 17:36:33 +00:00
Source1 : cpanspec.yml
2025-08-12 18:14:07 +02:00
Source100 : README.md
2015-04-17 17:36:33 +00:00
BuildArch : noarch
BuildRequires : perl
BuildRequires : perl-macros
2024-07-19 23:58:47 +00:00
Provides : perl(File::NFSLock) = %{version}
%undefine __perllib_provides
2015-04-17 17:36:33 +00:00
%{perl_requires}
2008-07-22 17:21:41 +00:00
2015-04-17 17:36:33 +00:00
%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.
2008-07-22 17:21:41 +00:00
%prep
2024-07-19 23:58:47 +00:00
%autosetup -n %{cpan_name} -%{cpan_version}
find . -type f ! -path " * / t / * " ! -name " * . p l " ! -path " * / b i n / * " ! -path " * / s c r i p t / * " ! -path " * / s c r i p t s / * " ! -name " c o n f i g u r e " -print0 | xargs -0 chmod 644
2008-07-22 17:21:41 +00:00
%build
2018-11-08 15:41:41 +00:00
perl Makefile.PL INSTALLDIRS=vendor
2024-07-19 23:58:47 +00:00
%make_build
2015-04-17 17:36:33 +00:00
%check
2024-07-19 23:58:47 +00:00
make test
2008-07-22 17:21:41 +00:00
%install
%perl_make_install
%perl_process_packlist
2015-04-17 17:36:33 +00:00
%perl_gen_filelist
2008-07-22 17:21:41 +00:00
2015-04-17 17:36:33 +00:00
%files -f %{name}.files
%doc Changes examples README
2008-07-22 17:21:41 +00:00
%changelog