Compare commits

3 Commits

3 changed files with 36 additions and 11 deletions

12
README.md Normal file
View File

@@ -0,0 +1,12 @@
## Build Results
Current state of perl in openSUSE:Factory is
![Factory build results](https://br.opensuse.org/status/openSUSE:Factory/perl-App-CLI/standard)
The current state of perl in the devel project build (devel:languages:perl)
![Devel project build results](https://br.opensuse.org/status/devel:languages:perl/perl-App-CLI)

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Jun 3 15:24:08 UTC 2025 - Tina Müller <tina.mueller@suse.com>
- Normalize CPAN version
See https://github.com/openSUSE/cpanspec/issues/47 for details
-------------------------------------------------------------------
Thu Dec 17 09:22:01 UTC 2020 - Tina Müller <tina.mueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-App-CLI
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,18 +16,19 @@
#
Name: perl-App-CLI
Version: 0.52
Release: 0
%define cpan_name App-CLI
Summary: Dispatcher module for command line interface programs
Name: perl-App-CLI
Version: 0.520.0
Release: 0
# 0.52 -> normalize -> 0.520.0
%define cpan_version 0.52
License: Artistic-1.0 OR GPL-1.0-or-later
Group: Development/Libraries/Perl
Summary: Dispatcher module for command line interface programs
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/P/PT/PTC/%{cpan_name}-%{version}.tar.gz
Source0: https://cpan.metacpan.org/authors/id/P/PT/PTC/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
Source100: README.md
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Capture::Tiny)
@@ -40,6 +41,13 @@ Requires: perl(Capture::Tiny)
Requires: perl(Class::Load)
Requires: perl(Locale::Maketext::Simple)
Requires: perl(Pod::Simple::Text)
Provides: perl(App::CLI) = %{version}
Provides: perl(App::CLI::Command)
Provides: perl(App::CLI::Command::Commands)
Provides: perl(App::CLI::Command::Help)
Provides: perl(App::CLI::Command::Version)
Provides: perl(App::CLI::Helper)
%undefine __perllib_provides
%{perl_requires}
%description
@@ -47,11 +55,11 @@ Requires: perl(Pod::Simple::Text)
command classes. It also supports subcommand and per-command options.
%prep
%setup -q -n %{cpan_name}-%{version}
%autosetup -n %{cpan_name}-%{cpan_version} -p1
%build
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%make_build
%check
make test
@@ -62,7 +70,6 @@ make test
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes README.md
%license LICENSE