From 58ebccd8f937a443cea91c36c666b9a477021b2120a7b5bc87eb87765eb3af47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tina=20M=C3=BCller?= Date: Tue, 20 May 2025 13:20:17 +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-Copy-Recursive?expand=0&rev=9 --- perl-File-Copy-Recursive.changes | 6 ++++++ perl-File-Copy-Recursive.spec | 25 +++++++++++++------------ 2 files changed, 19 insertions(+), 12 deletions(-) diff --git a/perl-File-Copy-Recursive.changes b/perl-File-Copy-Recursive.changes index 9e2a737..35aafcb 100644 --- a/perl-File-Copy-Recursive.changes +++ b/perl-File-Copy-Recursive.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue May 20 13:20:07 UTC 2025 - Tina Müller + +- Normalize CPAN version + See https://github.com/openSUSE/cpanspec/issues/47 for details + ------------------------------------------------------------------- Wed Jul 24 05:08:39 UTC 2019 - Stephan Kulow diff --git a/perl-File-Copy-Recursive.spec b/perl-File-Copy-Recursive.spec index 4ae1ff5..674db04 100644 --- a/perl-File-Copy-Recursive.spec +++ b/perl-File-Copy-Recursive.spec @@ -1,7 +1,7 @@ # # spec file for package perl-File-Copy-Recursive # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# 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 @@ -16,18 +16,18 @@ # -Name: perl-File-Copy-Recursive -Version: 0.45 -Release: 0 %define cpan_name File-Copy-Recursive -Summary: Perl extension for recursively copying files and directories +Name: perl-File-Copy-Recursive +Version: 0.450.0 +Release: 0 +# 0.45 -> normalize -> 0.450.0 +%define cpan_version 0.45 License: Artistic-1.0 OR GPL-1.0-or-later -Group: Development/Libraries/Perl -Url: https://metacpan.org/release/%{cpan_name} -Source0: https://cpan.metacpan.org/authors/id/D/DM/DMUEY/%{cpan_name}-%{version}.tar.gz +Summary: Perl extension for recursively copying files and directories +URL: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/D/DM/DMUEY/%{cpan_name}-%{cpan_version}.tar.gz Source1: cpanspec.yml BuildArch: noarch -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Path::Tiny) @@ -36,6 +36,8 @@ BuildRequires: perl(Test::Fatal) BuildRequires: perl(Test::File) BuildRequires: perl(Test::More) >= 0.88 BuildRequires: perl(Test::Warnings) +Provides: perl(File::Copy::Recursive) = %{version} +%undefine __perllib_provides %{perl_requires} %description @@ -44,11 +46,11 @@ well... singley) to an optional depth and attempts to preserve each file or directory's mode. %prep -%setup -q -n %{cpan_name}-%{version} +%autosetup -n %{cpan_name}-%{cpan_version} -p1 %build perl Makefile.PL INSTALLDIRS=vendor -make %{?_smp_mflags} +%make_build %check make test @@ -59,7 +61,6 @@ make test %perl_gen_filelist %files -f %{name}.files -%defattr(-,root,root,755) %doc Changes README README.md %changelog