Files
perl-Proc-Terminator/perl-Proc-Terminator.spec
2025-08-12 18:16:46 +02:00

77 lines
2.3 KiB
RPMSpec

#
# spec file for package perl-Proc-Terminator
#
# 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define cpan_name Proc-Terminator
Name: perl-Proc-Terminator
Version: 0.50.0
Release: 0
# 0.05 -> normalize -> 0.50.0
%define cpan_version 0.05
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Conveniently terminate processes
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/M/MN/MNUNBERG/%{cpan_name}-%{cpan_version}.tar.gz
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Moo) >= 0.009014
Requires: perl(Moo) >= 0.009014
Provides: perl(Proc::Terminator) = %{version}
Provides: perl(Proc::Terminator::Batch)
Provides: perl(Proc::Terminator::Ctx)
%undefine __perllib_provides
%{perl_requires}
%description
'Proc::Terminator' provides a convenient way to kill a process, often
useful in utility and startup functions which need to ensure the death of
an external process.
This module provides a simple, blocking, and procedural interface to kill a
process or multiple processes (not tested), and not return until they are
all dead.
'Proc::Terminator' can know if you do not have permissions to kill a
process, if the process is dead, and other interesting tidbits.
It also provides for flexible options in the type of death a process will
experience. Whether it be slow or immediate.
This module exports a single function, 'proc_terminate'
%prep
%autosetup -n %{cpan_name}-%{cpan_version}
%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%doc Changes README
%changelog