95 lines
2.7 KiB
RPMSpec
95 lines
2.7 KiB
RPMSpec
#
|
|
# spec file for package perl-IPC-Signal
|
|
#
|
|
# 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 IPC-Signal
|
|
Name: perl-IPC-Signal
|
|
Version: 1.0.0
|
|
Release: 0
|
|
# 1.00 -> normalize -> 1.0.0
|
|
%define cpan_version 1.00
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
|
Summary: Utility functions dealing with signals
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
Source0: https://cpan.metacpan.org/authors/id/R/RO/ROSCH/%{cpan_name}-%{cpan_version}.tar.gz
|
|
Source1: cpanspec.yml
|
|
Source100: README.md
|
|
BuildArch: noarch
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
Provides: perl(IPC::Signal) = %{version}
|
|
%undefine __perllib_provides
|
|
%{perl_requires}
|
|
|
|
%description
|
|
This module contains utility functions for dealing with signals.
|
|
|
|
Nothing is exported by default.
|
|
|
|
* *sig_num* _chopped-signal-name_
|
|
|
|
Returns the signal number of the signal whose name (sans 'SIG') is
|
|
_chopped-signal-name_, or undef if there is no such signal.
|
|
|
|
This function is prototyped to take a single scalar argument.
|
|
|
|
* *sig_name* _signal-number_
|
|
|
|
Returns the chopped signal name (like 'HUP') of signal number
|
|
_signal-number_, or undef if there is no such signal.
|
|
|
|
This function is prototyped to take a single scalar argument.
|
|
|
|
* *sig_translate_setup*
|
|
|
|
If you want to use the @Sig_name and %Sig_num variables directly you must
|
|
call *sig_translate_setup* to initialize them. This isn't necessary if you
|
|
only use the function interfaces sig_name() and sig_num().
|
|
|
|
This function is prototyped to take no arguments.
|
|
|
|
* *%Sig_num*
|
|
|
|
A hash with chopped signal name keys (like 'HUP') and integer signal number
|
|
values.
|
|
|
|
* *@Sig_name*
|
|
|
|
An array mapping signal numbers to chopped signal names (like 'HUP').
|
|
|
|
%prep
|
|
%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 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
|