initial package
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Proc-Terminator?expand=0&rev=1
This commit is contained in:
72
perl-Proc-Terminator.spec
Normal file
72
perl-Proc-Terminator.spec
Normal file
@@ -0,0 +1,72 @@
|
||||
#
|
||||
# spec file for package perl-Proc-Terminator
|
||||
#
|
||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# 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 http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
Name: perl-Proc-Terminator
|
||||
Version: 0.05
|
||||
Release: 0
|
||||
%define cpan_name Proc-Terminator
|
||||
Summary: Conveniently terminate processes
|
||||
License: Artistic-1.0 or GPL-1.0+
|
||||
Group: Development/Libraries/Perl
|
||||
Url: http://search.cpan.org/dist/Proc-Terminator/
|
||||
Source0: http://www.cpan.org/authors/id/M/MN/MNUNBERG/%{cpan_name}-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(Moo) >= 0.009014
|
||||
Requires: perl(Moo) >= 0.009014
|
||||
%{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
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
%{__make} %{?_smp_mflags}
|
||||
|
||||
%check
|
||||
%{__make} test
|
||||
|
||||
%install
|
||||
%perl_make_install
|
||||
%perl_process_packlist
|
||||
%perl_gen_filelist
|
||||
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%doc Changes README
|
||||
|
||||
%changelog
|
Reference in New Issue
Block a user