2024-08-10 21:11:11 +00:00
committed by Git OBS Bridge
parent 3faa2d59d6
commit 7eabb87ba6

View File

@@ -1,7 +1,7 @@
# #
# spec file for package perl-Hash-Objectify # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # 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 %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 License: Apache-2.0
Group: Development/Libraries/Perl Summary: Create objects from hashes on the fly
URL: https://metacpan.org/release/%{cpan_name} 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 BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl BuildRequires: perl
BuildRequires: perl-macros BuildRequires: perl-macros
BuildRequires: perl(Class::XSAccessor) BuildRequires: perl(Class::XSAccessor)
BuildRequires: perl(Test::Fatal) BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More) >= 0.96 BuildRequires: perl(Test::More) >= 0.96
Requires: perl(Class::XSAccessor) 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} %{perl_requires}
%description %description
@@ -48,11 +52,11 @@ directly, but does provide "typo protection" since a misspelled method is
an error. an error.
%prep %prep
%setup -q -n %{cpan_name}-%{version} %autosetup -n %{cpan_name}-%{cpan_version}
%build %build
perl Makefile.PL INSTALLDIRS=vendor perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags} %make_build
%check %check
make test make test
@@ -63,7 +67,6 @@ make test
%perl_gen_filelist %perl_gen_filelist
%files -f %{name}.files %files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes CONTRIBUTING.mkdn README %doc Changes CONTRIBUTING.mkdn README
%license LICENSE %license LICENSE