2011-09-02 11:32:17 +00:00
#
2016-11-22 12:24:45 +00:00
# spec file for package perl-Proc-PID-File
2011-09-02 11:32:17 +00:00
#
2024-07-27 22:11:47 +00:00
# Copyright (c) 2024 SUSE LLC
2011-09-02 11:32:17 +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.
2024-07-27 22:11:47 +00:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
2011-09-02 11:32:17 +00:00
#
2016-11-22 12:24:45 +00:00
2024-07-27 22:11:47 +00:00
%define cpan_name Proc-PID-File
2011-09-02 11:32:17 +00:00
Name : perl-Proc-PID-File
2024-07-27 22:11:47 +00:00
Version : 1.290.0
2016-11-22 12:24:45 +00:00
Release : 0
2024-07-27 22:11:47 +00:00
# 1.29 -> normalize -> 1.290.0
%define cpan_version 1.29
#Upstream: This utility is free and distributed under GPL, the Gnu Public License. A copy of this license was included in a file called LICENSE. If for some reason, this file was not included, please see _http://www.gnu.org/licenses/_ to obtain a copy of this license. $Id: File.pm,v 1.16 2004-04-08 02:27:25 ekkis Exp $
2018-08-24 10:06:13 +00:00
License : GPL-2.0-only
2024-07-27 22:11:47 +00:00
Summary : Module to manage PID files
URL : https://metacpan.org/release/%{cpan_name}
Source0 : https://cpan.metacpan.org/authors/id/D/DM/DMITRI/%{cpan_name} -%{cpan_version} .tar.gz
2016-11-22 12:24:45 +00:00
Source1 : cpanspec.yml
2025-08-12 18:16:45 +02:00
Source100 : README.md
2011-09-02 11:32:17 +00:00
BuildArch : noarch
BuildRequires : perl
BuildRequires : perl-macros
2024-07-27 22:11:47 +00:00
Provides : perl(Proc::PID::File) = %{version}
%undefine __perllib_provides
2011-09-02 11:32:17 +00:00
%{perl_requires}
%description
This Perl module is useful for writers of daemons and other processes that
need to tell whether they are already running, in order to prevent multiple
process instances. The module accomplishes this via *nix-style _pidfiles_,
which are files that store a process identifier.
The module provides two interfaces: 1) a simple call, and 2) an
object-oriented interface
%prep
2024-07-27 22:11:47 +00:00
%autosetup -n %{cpan_name} -%{cpan_version}
2011-09-02 11:32:17 +00:00
%build
2024-07-27 22:11:47 +00:00
perl Makefile.PL INSTALLDIRS=vendor
%make_build
2011-09-02 11:32:17 +00:00
%check
2024-07-27 22:11:47 +00:00
make test
2011-09-02 11:32:17 +00:00
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
2018-08-24 10:06:13 +00:00
%doc Changes README
%license LICENSE
2011-09-02 11:32:17 +00:00
%changelog