2011-04-11 09:40:16 +00:00
|
|
|
#
|
2011-04-11 09:40:28 +00:00
|
|
|
# spec file for package perl-Getopt-Long-Descriptive
|
2011-04-11 09:40:16 +00:00
|
|
|
#
|
2024-01-04 15:12:09 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2011-04-11 09:40:16 +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.
|
|
|
|
|
2019-05-05 09:23:57 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-04-11 09:40:16 +00:00
|
|
|
#
|
|
|
|
|
2011-04-11 09:40:28 +00:00
|
|
|
|
2021-03-16 15:01:59 +00:00
|
|
|
%define cpan_name Getopt-Long-Descriptive
|
2011-04-11 09:40:16 +00:00
|
|
|
Name: perl-Getopt-Long-Descriptive
|
2025-01-07 09:35:39 +00:00
|
|
|
Version: 0.116.0
|
2012-02-23 10:00:44 +00:00
|
|
|
Release: 0
|
2025-01-07 09:35:39 +00:00
|
|
|
# 0.116 -> normalize -> 0.116.0
|
|
|
|
%define cpan_version 0.116
|
2018-02-24 07:04:15 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2023-01-04 15:41:08 +00:00
|
|
|
Summary: Getopt::Long, but simpler and more powerful
|
2021-03-16 15:01:59 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2023-12-09 13:21:13 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/R/RJ/RJBS/%{cpan_name}-%{cpan_version}.tar.gz
|
2016-07-17 08:10:06 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:14:21 +02:00
|
|
|
Source100: README.md
|
2011-04-11 09:40:16 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2016-07-17 08:10:06 +00:00
|
|
|
BuildRequires: perl(CPAN::Meta::Check) >= 0.011
|
|
|
|
BuildRequires: perl(CPAN::Meta::Requirements)
|
2021-11-03 07:12:12 +00:00
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.78
|
2025-01-07 09:35:39 +00:00
|
|
|
BuildRequires: perl(Getopt::Long) >= 2.55
|
2011-11-14 14:55:02 +00:00
|
|
|
BuildRequires: perl(Params::Validate) >= 0.97
|
2011-04-11 09:40:16 +00:00
|
|
|
BuildRequires: perl(Sub::Exporter) >= 0.972
|
2011-11-14 14:55:02 +00:00
|
|
|
BuildRequires: perl(Sub::Exporter::Util)
|
2013-10-04 14:57:01 +00:00
|
|
|
BuildRequires: perl(Test::Fatal)
|
2011-11-14 14:55:02 +00:00
|
|
|
BuildRequires: perl(Test::More) >= 0.96
|
2013-10-08 06:19:53 +00:00
|
|
|
BuildRequires: perl(Test::Warnings) >= 0.005
|
2025-01-07 09:35:39 +00:00
|
|
|
Requires: perl(Getopt::Long) >= 2.55
|
2011-11-14 14:55:02 +00:00
|
|
|
Requires: perl(Params::Validate) >= 0.97
|
2011-04-11 09:40:16 +00:00
|
|
|
Requires: perl(Sub::Exporter) >= 0.972
|
2011-11-14 14:55:02 +00:00
|
|
|
Requires: perl(Sub::Exporter::Util)
|
2023-12-09 13:21:13 +00:00
|
|
|
Provides: perl(Getopt::Long::Descriptive) = %{version}
|
|
|
|
Provides: perl(Getopt::Long::Descriptive::Opts) = %{version}
|
|
|
|
Provides: perl(Getopt::Long::Descriptive::Usage) = %{version}
|
2024-04-06 12:44:13 +00:00
|
|
|
%undefine __perllib_provides
|
2011-04-11 09:40:16 +00:00
|
|
|
%{perl_requires}
|
|
|
|
|
|
|
|
%description
|
|
|
|
Getopt::Long::Descriptive is yet another Getopt library. It's built atop
|
|
|
|
Getopt::Long, and gets a lot of its features, but tries to avoid making you
|
|
|
|
think about its huge array of options.
|
|
|
|
|
|
|
|
It also provides usage (help) messages, data validation, and a few other
|
|
|
|
useful features.
|
|
|
|
|
|
|
|
%prep
|
2023-12-09 13:21:13 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
2011-04-11 09:40:16 +00:00
|
|
|
|
2024-01-04 15:12:09 +00:00
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
|
|
|
|
2011-04-11 09:40:16 +00:00
|
|
|
%build
|
2019-05-05 09:23:57 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
2021-03-16 15:01:59 +00:00
|
|
|
%make_build
|
2011-04-11 09:40:16 +00:00
|
|
|
|
|
|
|
%check
|
2019-05-05 09:23:57 +00:00
|
|
|
make test
|
2011-04-11 09:40:16 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2018-02-08 06:05:16 +00:00
|
|
|
%doc Changes README
|
|
|
|
%license LICENSE
|
2011-04-11 09:40:16 +00:00
|
|
|
|
|
|
|
%changelog
|