From 359d4f89ecdb4018e48de310cf015c4f4e8f252c51227de48c663cd7fa30f011 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tina=20M=C3=BCller?= Date: Thu, 12 Jun 2025 17:24:25 +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-Array-Diff?expand=0&rev=14 --- perl-Array-Diff.changes | 6 ++++++ perl-Array-Diff.spec | 16 ++++++++++------ 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/perl-Array-Diff.changes b/perl-Array-Diff.changes index c9c842d..7b0a41c 100644 --- a/perl-Array-Diff.changes +++ b/perl-Array-Diff.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jun 12 17:24:17 UTC 2025 - Tina Müller + +- Normalize CPAN version + See https://github.com/openSUSE/cpanspec/issues/47 for details + ------------------------------------------------------------------- Tue Sep 14 19:42:19 UTC 2021 - Dirk Stoecker diff --git a/perl-Array-Diff.spec b/perl-Array-Diff.spec index 6515e41..a7bb35f 100644 --- a/perl-Array-Diff.spec +++ b/perl-Array-Diff.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Array-Diff # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,20 +18,24 @@ %define cpan_name Array-Diff Name: perl-Array-Diff -Version: 0.09 +Version: 0.90.0 Release: 0 +# 0.09 -> normalize -> 0.90.0 +%define cpan_version 0.09 License: Artistic-1.0 OR GPL-1.0-or-later Summary: Find the differences between two arrays URL: https://metacpan.org/release/%{cpan_name} -Source0: https://cpan.metacpan.org/authors/id/N/NE/NEILB/%{cpan_name}-%{version}.tar.gz +Source0: https://cpan.metacpan.org/authors/id/N/NE/NEILB/%{cpan_name}-%{cpan_version}.tar.gz Source1: cpanspec.yml BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros -BuildRequires: perl(Algorithm::Diff) >= 1.19 +BuildRequires: perl(Algorithm::Diff) >= 1.190 BuildRequires: perl(Class::Accessor::Fast) -Requires: perl(Algorithm::Diff) >= 1.19 +Requires: perl(Algorithm::Diff) >= 1.190 Requires: perl(Class::Accessor::Fast) +Provides: perl(Array::Diff) = %{version} +%undefine __perllib_provides %{perl_requires} %description @@ -44,7 +48,7 @@ Algorithm::Diff. And if you need more complex array tools, check Array::Compare. %prep -%autosetup -n %{cpan_name}-%{version} +%autosetup -n %{cpan_name}-%{cpan_version} -p1 %build perl Makefile.PL INSTALLDIRS=vendor