2015-04-19 18:08:05 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-Function-Parameters
|
|
|
|
#
|
2025-08-22 21:33:43 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC and contributors
|
2015-04-19 18:08:05 +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.
|
|
|
|
|
2023-02-15 17:15:39 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2015-04-19 18:08:05 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2023-02-15 17:15:39 +00:00
|
|
|
%define cpan_name Function-Parameters
|
2015-04-19 18:08:05 +00:00
|
|
|
Name: perl-Function-Parameters
|
2025-08-22 21:33:43 +00:00
|
|
|
Version: 2.2.6
|
2015-04-19 18:08:05 +00:00
|
|
|
Release: 0
|
2025-08-22 21:33:43 +00:00
|
|
|
# 2.002006 -> normalize -> 2.2.6
|
|
|
|
%define cpan_version 2.002006
|
2023-02-15 17:15:39 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
|
|
|
Summary: Define functions and methods with parameter lists ("subroutine signatures")
|
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2024-08-25 17:36:31 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/M/MA/MAUKE/%{cpan_name}-%{cpan_version}.tar.gz
|
2015-04-24 15:53:13 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:14:17 +02:00
|
|
|
Source100: README.md
|
2015-04-19 18:08:05 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2023-04-03 13:22:43 +00:00
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.0
|
2017-03-29 08:51:39 +00:00
|
|
|
BuildRequires: perl(Hash::Util) >= 0.07
|
2015-04-19 18:08:05 +00:00
|
|
|
BuildRequires: perl(Test::Fatal)
|
2024-08-25 17:36:31 +00:00
|
|
|
Provides: perl(Function::Parameters) = %{version}
|
|
|
|
Provides: perl(Function::Parameters::Info) = %{version}
|
2025-08-22 21:33:43 +00:00
|
|
|
Provides: perl(Function::Parameters::Param)
|
2024-08-25 17:36:31 +00:00
|
|
|
%undefine __perllib_provides
|
2015-04-19 18:08:05 +00:00
|
|
|
%{perl_requires}
|
|
|
|
|
|
|
|
%description
|
2017-03-29 08:51:39 +00:00
|
|
|
This module provides two new keywords, 'fun' and 'method', for defining
|
|
|
|
functions and methods with parameter lists. At minimum this saves you from
|
|
|
|
having to unpack '@_' manually, but this module can do much more for you.
|
|
|
|
|
|
|
|
The parameter lists provided by this module are similar to the 'signatures'
|
|
|
|
feature available in perl v5.20+. However, this module supports all perl
|
2023-04-03 13:22:43 +00:00
|
|
|
versions starting from v5.14 and it offers far more features than core
|
|
|
|
signatures. The downside is that you need a C compiler if you want to
|
|
|
|
install it from source, as it uses Perl's keyword plugin API in order to
|
|
|
|
work reliably without requiring a source filter.
|
2015-04-19 18:08:05 +00:00
|
|
|
|
|
|
|
%prep
|
2025-08-22 21:33:43 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version} -p1
|
2015-04-19 18:08:05 +00:00
|
|
|
|
|
|
|
%build
|
2023-02-15 17:15:39 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
|
|
|
%make_build
|
2015-04-19 18:08:05 +00:00
|
|
|
|
|
|
|
%check
|
2023-02-15 17:15:39 +00:00
|
|
|
make test
|
2015-04-19 18:08:05 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2017-04-18 08:05:15 +00:00
|
|
|
%doc Changes Makefile_PL_settings.plx README
|
2015-04-19 18:08:05 +00:00
|
|
|
|
|
|
|
%changelog
|