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-Function-Parameters?expand=0&rev=20
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package perl-Function-Parameters
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# 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
|
||||
@@ -18,18 +18,24 @@
|
||||
|
||||
%define cpan_name Function-Parameters
|
||||
Name: perl-Function-Parameters
|
||||
Version: 2.002004
|
||||
Version: 2.2.4
|
||||
Release: 0
|
||||
# 2.002004 -> normalize -> 2.2.4
|
||||
%define cpan_version 2.002004
|
||||
License: Artistic-1.0 OR GPL-1.0-or-later
|
||||
Summary: Define functions and methods with parameter lists ("subroutine signatures")
|
||||
URL: https://metacpan.org/release/%{cpan_name}
|
||||
Source0: https://cpan.metacpan.org/authors/id/M/MA/MAUKE/%{cpan_name}-%{version}.tar.gz
|
||||
Source0: https://cpan.metacpan.org/authors/id/M/MA/MAUKE/%{cpan_name}-%{cpan_version}.tar.gz
|
||||
Source1: cpanspec.yml
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.0
|
||||
BuildRequires: perl(Hash::Util) >= 0.07
|
||||
BuildRequires: perl(Test::Fatal)
|
||||
Provides: perl(Function::Parameters) = %{version}
|
||||
Provides: perl(Function::Parameters::Info) = %{version}
|
||||
Provides: perl(Function::Parameters::Param)
|
||||
%undefine __perllib_provides
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
@@ -45,7 +51,7 @@ install it from source, as it uses Perl's keyword plugin API in order to
|
||||
work reliably without requiring a source filter.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{cpan_name}-%{version}
|
||||
%autosetup -n %{cpan_name}-%{cpan_version}
|
||||
|
||||
%build
|
||||
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
||||
|
Reference in New Issue
Block a user