From 08601cf27ca1e24b10f94b32635d92e462a1b29d5fb94d61d5c0fa7577c65522 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tina=20M=C3=BCller?= Date: Fri, 16 Aug 2024 21:09:47 +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-Parallel-Iterator?expand=0&rev=7 --- perl-Parallel-Iterator.spec | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/perl-Parallel-Iterator.spec b/perl-Parallel-Iterator.spec index b462626..283e8a0 100644 --- a/perl-Parallel-Iterator.spec +++ b/perl-Parallel-Iterator.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Parallel-Iterator # -# Copyright (c) 2022 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,16 +18,20 @@ %define cpan_name Parallel-Iterator Name: perl-Parallel-Iterator -Version: 1.002 +Version: 1.2.0 Release: 0 +# 1.002 -> normalize -> 1.2.0 +%define cpan_version 1.002 License: Artistic-1.0 OR GPL-1.0-or-later Summary: Simple parallel execution URL: https://metacpan.org/release/%{cpan_name} -Source0: https://cpan.metacpan.org/authors/id/A/AR/ARISTOTLE/%{cpan_name}-%{version}.tar.gz +Source0: https://cpan.metacpan.org/authors/id/A/AR/ARISTOTLE/%{cpan_name}-%{cpan_version}.tar.gz Source1: cpanspec.yml BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros +Provides: perl(Parallel::Iterator) = %{version} +%undefine __perllib_provides %{perl_requires} %description @@ -44,7 +48,7 @@ example in the synopsis (doubling a list of numbers) is _not_ a sensible use of this module. %prep -%autosetup -n %{cpan_name}-%{version} +%autosetup -n %{cpan_name}-%{cpan_version} %build perl Makefile.PL INSTALLDIRS=vendor