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
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -18,18 +18,24 @@
|
|||||||
|
|
||||||
%define cpan_name Function-Parameters
|
%define cpan_name Function-Parameters
|
||||||
Name: perl-Function-Parameters
|
Name: perl-Function-Parameters
|
||||||
Version: 2.002004
|
Version: 2.2.4
|
||||||
Release: 0
|
Release: 0
|
||||||
|
# 2.002004 -> normalize -> 2.2.4
|
||||||
|
%define cpan_version 2.002004
|
||||||
License: Artistic-1.0 OR GPL-1.0-or-later
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
||||||
Summary: Define functions and methods with parameter lists ("subroutine signatures")
|
Summary: Define functions and methods with parameter lists ("subroutine signatures")
|
||||||
URL: https://metacpan.org/release/%{cpan_name}
|
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
|
Source1: cpanspec.yml
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
BuildRequires: perl-macros
|
BuildRequires: perl-macros
|
||||||
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.0
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.0
|
||||||
BuildRequires: perl(Hash::Util) >= 0.07
|
BuildRequires: perl(Hash::Util) >= 0.07
|
||||||
BuildRequires: perl(Test::Fatal)
|
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}
|
%{perl_requires}
|
||||||
|
|
||||||
%description
|
%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.
|
work reliably without requiring a source filter.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{cpan_name}-%{version}
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
||||||
|
Reference in New Issue
Block a user