From a6e63e739a9dbf2659c912b63c24eb47c91f89ae85a907e4f758f43f98e7dc5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tina=20M=C3=BCller?= Date: Sun, 25 Aug 2024 17:36: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-Util?expand=0&rev=6 --- perl-File-Util.spec | 37 ++++++++++++++++++++++--------------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/perl-File-Util.spec b/perl-File-Util.spec index 5025e49..93e67b5 100644 --- a/perl-File-Util.spec +++ b/perl-File-Util.spec @@ -1,7 +1,7 @@ # # spec file for package perl-File-Util # -# Copyright (c) 2020 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 @@ -16,23 +16,31 @@ # -Name: perl-File-Util -Version: 4.201720 -Release: 0 %define cpan_name File-Util -Summary: Easy, versatile, portable file handling +Name: perl-File-Util +Version: 4.201.720 +Release: 0 +# 4.201720 -> normalize -> 4.201.720 +%define cpan_version 4.201720 License: Artistic-1.0 OR GPL-1.0-or-later -Group: Development/Libraries/Perl +Summary: Easy, versatile, portable file handling URL: https://metacpan.org/release/%{cpan_name} -Source0: https://cpan.metacpan.org/authors/id/T/TO/TOMMY/%{cpan_name}-%{version}.tar.gz +Source0: https://cpan.metacpan.org/authors/id/T/TO/TOMMY/%{cpan_name}-%{cpan_version}.tar.gz Source1: cpanspec.yml BuildArch: noarch -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros -BuildRequires: perl(Module::Build) >= 0.280000 +BuildRequires: perl(Module::Build) >= 0.28 BuildRequires: perl(Test::NoWarnings) -Recommends: perl(Unicode::UTF8) >= 0.58 +Provides: perl(File::Util) = %{version} +Provides: perl(File::Util::Definitions) = %{version} +Provides: perl(File::Util::Exception) = %{version} +Provides: perl(File::Util::Exception::Diagnostic) = %{version} +Provides: perl(File::Util::Exception::Standard) = %{version} +Provides: perl(File::Util::Interface::Classic) = %{version} +Provides: perl(File::Util::Interface::Modern) = %{version} +%undefine __perllib_provides +Recommends: perl(Unicode::UTF8) >= 0.580 %{perl_requires} %description @@ -57,21 +65,20 @@ After browsing this document, please have a look at the other documentation. _(See DOCUMENTATION section below.)_ %prep -%setup -q -n %{cpan_name}-%{version} +%autosetup -n %{cpan_name}-%{cpan_version} %build -perl Build.PL installdirs=vendor -./Build build flags=%{?_smp_mflags} +perl Build.PL --installdirs=vendor +./Build build --flags=%{?_smp_mflags} %check ./Build test %install -./Build install destdir=%{buildroot} create_packlist=0 +./Build install --destdir=%{buildroot} --create_packlist=0 %perl_gen_filelist %files -f %{name}.files -%defattr(-,root,root,755) %doc AUTHORS Changes examples NEWS README TODO %license COPYING LICENSE