From ab4daf4561c235669f30629fa8d98e75f5b1a615968e44f8b44db187372ec830 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tina=20M=C3=BCller?= Date: Mon, 15 Jul 2024 20:15:36 +0000 Subject: [PATCH] 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 --- perl-Algorithm-Permute.spec | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/perl-Algorithm-Permute.spec b/perl-Algorithm-Permute.spec index edb766c..3ed140d 100644 --- a/perl-Algorithm-Permute.spec +++ b/perl-Algorithm-Permute.spec @@ -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}"