2024-03-12 17:17:51 +00:00
committed by Git OBS Bridge
parent 62172f58db
commit d7ebfa256a
2 changed files with 18 additions and 12 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Mar 12 17:02:38 UTC 2024 - Tina Müller <tina.mueller@suse.com>
- Normalize CPAN version
See https://github.com/openSUSE/cpanspec/issues/47 for details
-------------------------------------------------------------------
Wed Jan 30 06:29:56 UTC 2019 - Stephan Kulow <coolo@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-Ouch
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# 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
@@ -16,24 +16,25 @@
#
Name: perl-Ouch
Version: 0.0501
Release: 0
%define cpan_name Ouch
Summary: Exceptions that don't hurt
Name: perl-Ouch
Version: 0.50.100
Release: 0
%define cpan_version 0.0501
License: Artistic-1.0 OR GPL-1.0-or-later
Group: Development/Libraries/Perl
Url: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/R/RI/RIZEN/%{cpan_name}-%{version}.tar.gz
Summary: Exceptions that don't hurt
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/R/RI/RIZEN/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Test::Trap)
BuildRequires: perl(parent)
Requires: perl(Test::Trap)
Requires: perl(parent)
Provides: perl(Ouch) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description
@@ -44,11 +45,11 @@ requires less typing, and has no prereqs, but still gives you much of that
same functionality, then Ouch is for you.
%prep
%setup -q -n %{cpan_name}-%{version}
%autosetup -n %{cpan_name}-%{cpan_version}
%build
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%make_build
%check
make test
@@ -59,7 +60,6 @@ make test
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes README README.md
%license LICENSE