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