From 1f47a8bc7be9ac37fee282aa25a9f512a22b5246c7800dfff28f7b88536195c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tina=20M=C3=BCller?= Date: Sat, 10 Aug 2024 20:48:19 +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-File-Flock-Retry?expand=0&rev=7 --- perl-File-Flock-Retry.spec | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/perl-File-Flock-Retry.spec b/perl-File-Flock-Retry.spec index 5c1ae3e..86524e2 100644 --- a/perl-File-Flock-Retry.spec +++ b/perl-File-Flock-Retry.spec @@ -1,7 +1,7 @@ # # spec file for package perl-File-Flock-Retry # -# Copyright (c) 2021 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 File-Flock-Retry Name: perl-File-Flock-Retry -Version: 0.632 +Version: 0.632.0 Release: 0 -Summary: Yet another flock module +# 0.632 -> normalize -> 0.632.0 +%define cpan_version 0.632 License: Artistic-1.0 OR GPL-1.0-or-later +Summary: Yet another flock module URL: https://metacpan.org/release/%{cpan_name} -Source0: https://cpan.metacpan.org/authors/id/P/PE/PERLANCAR/%{cpan_name}-%{version}.tar.gz +Source0: https://cpan.metacpan.org/authors/id/P/PE/PERLANCAR/%{cpan_name}-%{cpan_version}.tar.gz Source1: cpanspec.yml BuildArch: noarch BuildRequires: perl @@ -32,6 +34,8 @@ BuildRequires: perl(File::Slurper) BuildRequires: perl(File::Temp) >= 0.2307 BuildRequires: perl(File::chdir) BuildRequires: perl(Test::More) >= 0.98 +Provides: perl(File::Flock::Retry) = %{version} +%undefine __perllib_provides %{perl_requires} %description @@ -46,7 +50,7 @@ I prefer this approach to blocking/waiting indefinitely or failing immediately. %prep -%autosetup -n %{cpan_name}-%{version} +%autosetup -n %{cpan_name}-%{cpan_version} %build perl Makefile.PL INSTALLDIRS=vendor