From c7f13c532e5f4ab5fe506e46664ede6ee266f3089a9057dfbe45c6e4d4e83dde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tina=20M=C3=BCller?= Date: Wed, 7 Aug 2024 18:53:43 +0000 Subject: [PATCH] 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-CDDB?expand=0&rev=2 --- perl-CDDB.spec | 32 +++++++++++++++++++------------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/perl-CDDB.spec b/perl-CDDB.spec index a424bff..1c399b7 100644 --- a/perl-CDDB.spec +++ b/perl-CDDB.spec @@ -1,7 +1,7 @@ # # spec file for package perl-CDDB # -# Copyright (c) 2018 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 @@ -12,19 +12,21 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define cpan_name CDDB Name: perl-CDDB -Version: 1.222 +Version: 1.222.0 Release: 0 -Summary: High-Level Interface to Cddb Protocol Servers (Freedb and Cddb) -License: Artistic-1.0 OR GPL-1.0+ -Group: Development/Libraries/Perl -URL: http://search.cpan.org/dist/CDDB/ -Source0: http://www.cpan.org/authors/id/R/RC/RCAPUTO/%{cpan_name}-%{version}.tar.gz +# 1.222 -> normalize -> 1.222.0 +%define cpan_version 1.222 +License: Artistic-1.0 OR GPL-1.0-or-later +Summary: High-level interface to cddb protocol servers (freedb and CDDB) +URL: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/R/RC/RCAPUTO/%{cpan_name}-%{cpan_version}.tar.gz +BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Carp) >= 1.26 @@ -45,7 +47,8 @@ Requires: perl(LWP) >= 6.05 Requires: perl(MIME::QuotedPrint) >= 3.13 Requires: perl(Mail::Header) >= 2.04 Requires: perl(Mail::Internet) >= 2.04 -BuildArch: noarch +Provides: perl(CDDB) = 1.220.0 +%undefine __perllib_provides %{perl_requires} %description @@ -68,11 +71,14 @@ may still work, and patches are welcome to maintain that functionality, but it's no longer officially supported. %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 %install %perl_make_install @@ -80,7 +86,7 @@ make %{?_smp_mflags} %perl_gen_filelist %files -f %{name}.files -%defattr(-,root,root,755) -%doc CHANGES HISTORY LICENSE README README.mkdn +%doc CHANGES HISTORY README README.mkdn +%license LICENSE %changelog