Normalize CPAN version
See https://github.com/openSUSE/cpanspec/issues/47 for details OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Test-Script-Run?expand=0&rev=4
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package perl-Test-Script-Run
|
# spec file for package perl-Test-Script-Run
|
||||||
#
|
#
|
||||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2024 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -16,24 +16,27 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
Name: perl-Test-Script-Run
|
|
||||||
Version: 0.08
|
|
||||||
Release: 0
|
|
||||||
%define cpan_name Test-Script-Run
|
%define cpan_name Test-Script-Run
|
||||||
Summary: Test scripts with run
|
Name: perl-Test-Script-Run
|
||||||
|
Version: 0.80.0
|
||||||
|
Release: 0
|
||||||
|
# 0.08 -> normalize -> 0.80.0
|
||||||
|
%define cpan_version 0.08
|
||||||
License: Artistic-1.0 OR GPL-1.0-or-later
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
||||||
Group: Development/Libraries/Perl
|
Summary: Test scripts with run
|
||||||
Url: https://metacpan.org/release/%{cpan_name}
|
URL: https://metacpan.org/release/%{cpan_name}
|
||||||
Source0: https://cpan.metacpan.org/authors/id/S/SU/SUNNAVY/%{cpan_name}-%{version}.tar.gz
|
Source0: https://cpan.metacpan.org/authors/id/S/SU/SUNNAVY/%{cpan_name}-%{cpan_version}.tar.gz
|
||||||
Source1: cpanspec.yml
|
Source1: cpanspec.yml
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
BuildRequires: perl-macros
|
BuildRequires: perl-macros
|
||||||
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.36
|
||||||
BuildRequires: perl(IPC::Run3)
|
BuildRequires: perl(IPC::Run3)
|
||||||
BuildRequires: perl(Test::Exception)
|
BuildRequires: perl(Test::Exception)
|
||||||
Requires: perl(IPC::Run3)
|
Requires: perl(IPC::Run3)
|
||||||
Requires: perl(Test::Exception)
|
Requires: perl(Test::Exception)
|
||||||
|
Provides: perl(Test::Script::Run) = %{version}
|
||||||
|
%undefine __perllib_provides
|
||||||
Recommends: perl(String::ShellQuote)
|
Recommends: perl(String::ShellQuote)
|
||||||
%{perl_requires}
|
%{perl_requires}
|
||||||
|
|
||||||
@@ -47,11 +50,11 @@ like those should live below 'Test::' namespace, that's why we packed them
|
|||||||
and created this module.
|
and created this module.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{cpan_name}-%{version}
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
PERL_USE_UNSAFE_INC=1 perl Makefile.PL INSTALLDIRS=vendor
|
PERL_USE_UNSAFE_INC=1 perl Makefile.PL INSTALLDIRS=vendor
|
||||||
make %{?_smp_mflags}
|
%make_build
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make test
|
make test
|
||||||
@@ -62,7 +65,6 @@ make test
|
|||||||
%perl_gen_filelist
|
%perl_gen_filelist
|
||||||
|
|
||||||
%files -f %{name}.files
|
%files -f %{name}.files
|
||||||
%defattr(-,root,root,755)
|
|
||||||
%doc Changes README
|
%doc Changes README
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user