From 7eabb87ba6964ecb3492164ad666eba661ddeb3b9df48a98f8838bebdcb04fed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tina=20M=C3=BCller?= Date: Sat, 10 Aug 2024 21:11:11 +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-Hash-Objectify?expand=0&rev=3 --- perl-Hash-Objectify.spec | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/perl-Hash-Objectify.spec b/perl-Hash-Objectify.spec index 190f351..ad105dd 100644 --- a/perl-Hash-Objectify.spec +++ b/perl-Hash-Objectify.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Hash-Objectify # -# 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,27 @@ # -Name: perl-Hash-Objectify -Version: 0.008 -Release: 0 %define cpan_name Hash-Objectify -Summary: Create objects from hashes on the fly +Name: perl-Hash-Objectify +Version: 0.8.0 +Release: 0 +# 0.008 -> normalize -> 0.8.0 +%define cpan_version 0.008 License: Apache-2.0 -Group: Development/Libraries/Perl +Summary: Create objects from hashes on the fly URL: https://metacpan.org/release/%{cpan_name} -Source0: https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/%{cpan_name}-%{version}.tar.gz +Source0: https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/%{cpan_name}-%{cpan_version}.tar.gz BuildArch: noarch -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Class::XSAccessor) BuildRequires: perl(Test::Fatal) BuildRequires: perl(Test::More) >= 0.96 Requires: perl(Class::XSAccessor) +Provides: perl(Hash::Objectified) = %{version} +Provides: perl(Hash::Objectified::Lax) = %{version} +Provides: perl(Hash::Objectify) = %{version} +%undefine __perllib_provides %{perl_requires} %description @@ -48,11 +52,11 @@ directly, but does provide "typo protection" since a misspelled method is an error. %prep -%setup -q -n %{cpan_name}-%{version} +%autosetup -n %{cpan_name}-%{cpan_version} %build perl Makefile.PL INSTALLDIRS=vendor -make %{?_smp_mflags} +%make_build %check make test @@ -63,7 +67,6 @@ make test %perl_gen_filelist %files -f %{name}.files -%defattr(-,root,root,755) %doc Changes CONTRIBUTING.mkdn README %license LICENSE