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-Audio-CD?expand=0&rev=3
This commit is contained in:
@@ -18,16 +18,20 @@
|
||||
|
||||
%define cpan_name Audio-CD
|
||||
Name: perl-Audio-CD
|
||||
Version: 0.04
|
||||
Version: 0.40.0
|
||||
Release: 0
|
||||
# 0.04 -> normalize -> 0.40.0
|
||||
%define cpan_version 0.04
|
||||
License: Artistic-1.0 OR GPL-1.0-or-later
|
||||
Summary: Perl interface to libcdaudio (cd + cddb)
|
||||
URL: https://metacpan.org/release/%{cpan_name}
|
||||
Source0: https://cpan.metacpan.org/authors/id/D/DO/DOUGM/%{cpan_name}-%{version}.tar.gz
|
||||
Source0: https://cpan.metacpan.org/authors/id/D/DO/DOUGM/%{cpan_name}-%{cpan_version}.tar.gz
|
||||
Source1: cpanspec.yml
|
||||
Patch0: Audio-CD-0.04.implicit_definitions_of_special_functions.patch
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
Provides: perl(Audio::CD) = %{version}
|
||||
%undefine __perllib_provides
|
||||
%{perl_requires}
|
||||
# MANUAL BEGIN
|
||||
BuildRequires: libcdaudio-devel
|
||||
@@ -41,7 +45,7 @@ Several classes provide glue for the libcdaudio functions and data
|
||||
structures.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{cpan_name}-%{version} -p1
|
||||
%autosetup -n %{cpan_name}-%{cpan_version} -p1
|
||||
|
||||
%build
|
||||
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
||||
|
||||
Reference in New Issue
Block a user