2024-08-07 18:53:43 +00:00
committed by Git OBS Bridge
parent 2762768520
commit c7f13c532e

View File

@@ -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