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-Algorithm-Permute?expand=0&rev=8
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package perl-Algorithm-Permute
|
||||
#
|
||||
# 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,17 +18,21 @@
|
||||
|
||||
%define cpan_name Algorithm-Permute
|
||||
Name: perl-Algorithm-Permute
|
||||
Version: 0.17
|
||||
Version: 0.170.0
|
||||
Release: 0
|
||||
# 0.17 -> normalize -> 0.170.0
|
||||
%define cpan_version 0.17
|
||||
License: Artistic-1.0 OR GPL-1.0-or-later
|
||||
Summary: Handy and fast permutation with object oriented interface
|
||||
URL: https://metacpan.org/release/%{cpan_name}
|
||||
Source0: https://cpan.metacpan.org/authors/id/S/SL/SLOYD/%{cpan_name}-%{version}.tar.gz
|
||||
Source0: https://cpan.metacpan.org/authors/id/S/SL/SLOYD/%{cpan_name}-%{cpan_version}.tar.gz
|
||||
Source1: cpanspec.yml
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(Test::LeakTrace)
|
||||
BuildRequires: perl(Test::More) >= 0.88
|
||||
Provides: perl(Algorithm::Permute) = %{version}
|
||||
%undefine __perllib_provides
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
@@ -37,7 +41,7 @@ although perhaps its algorithm is not the fastest on the earth. It supports
|
||||
permutation r of n objects where 0 < r <= n.
|
||||
|
||||
%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