From b69989af410fa08f8b14e802f8ae3c1a0f1e73ee11ebb301a6f47cc198f0a139 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tina=20M=C3=BCller?= Date: Thu, 8 Aug 2024 19:39:45 +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-Data-GUID?expand=0&rev=9 --- perl-Data-GUID.spec | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/perl-Data-GUID.spec b/perl-Data-GUID.spec index 4773cb6..8c87d15 100644 --- a/perl-Data-GUID.spec +++ b/perl-Data-GUID.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Data-GUID # -# 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,12 +18,14 @@ %define cpan_name Data-GUID Name: perl-Data-GUID -Version: 0.051 +Version: 0.51.0 Release: 0 +# 0.051 -> normalize -> 0.51.0 +%define cpan_version 0.051 License: Artistic-1.0 OR GPL-1.0-or-later Summary: Globally unique identifiers URL: https://metacpan.org/release/%{cpan_name} -Source0: https://cpan.metacpan.org/authors/id/R/RJ/RJBS/%{cpan_name}-%{version}.tar.gz +Source0: https://cpan.metacpan.org/authors/id/R/RJ/RJBS/%{cpan_name}-%{cpan_version}.tar.gz Source1: cpanspec.yml BuildArch: noarch BuildRequires: perl @@ -36,6 +38,8 @@ BuildRequires: perl(Test::More) >= 0.96 Requires: perl(Data::UUID) >= 1.148 Requires: perl(Sub::Exporter) >= 0.90 Requires: perl(Sub::Install) >= 0.03 +Provides: perl(Data::GUID) = %{version} +%undefine __perllib_provides %{perl_requires} %description @@ -43,7 +47,7 @@ Data::GUID provides a simple interface for generating and using globally unique identifiers. %prep -%autosetup -n %{cpan_name}-%{version} +%autosetup -n %{cpan_name}-%{cpan_version} %build perl Makefile.PL INSTALLDIRS=vendor