2024-07-26 20:56:47 +00:00
committed by Git OBS Bridge
parent 3494561f93
commit 99c34e1ac3

View File

@@ -1,7 +1,7 @@
# #
# spec file for package perl-Object-Tiny # spec file for package perl-Object-Tiny
# #
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # 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,20 +16,22 @@
# #
Name: perl-Object-Tiny
Version: 1.09
Release: 0
%define cpan_name Object-Tiny %define cpan_name Object-Tiny
Summary: Class building as simple as it gets Name: perl-Object-Tiny
Version: 1.90.0
Release: 0
# 1.09 -> normalize -> 1.90.0
%define cpan_version 1.09
License: Artistic-1.0 OR GPL-1.0-or-later License: Artistic-1.0 OR GPL-1.0-or-later
Group: Development/Libraries/Perl Summary: Class building as simple as it gets
Url: https://metacpan.org/release/%{cpan_name} URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/E/ET/ETHER/%{cpan_name}-%{version}.tar.gz Source0: https://cpan.metacpan.org/authors/id/E/ET/ETHER/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml Source1: cpanspec.yml
BuildArch: noarch BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl BuildRequires: perl
BuildRequires: perl-macros BuildRequires: perl-macros
Provides: perl(Object::Tiny) = %{version}
%undefine __perllib_provides
%{perl_requires} %{perl_requires}
%description %description
@@ -90,10 +92,10 @@ In fact, if doing the following in your class gets annoying...
sub new { sub new {
my $class = shift; my $class = shift;
my $self = $class->SUPER::new( @_ ); my $self = $class->SUPER::new( @_ );
# Extra checking and such # Extra checking and such
... ...
return $self; return $self;
} }
@@ -105,11 +107,11 @@ And that's really all there is to it. Let a million simple data classes
bloom. Features? We don't need no stinking features. bloom. Features? We don't need no stinking features.
%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
@@ -120,7 +122,6 @@ make test
%perl_gen_filelist %perl_gen_filelist
%files -f %{name}.files %files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes CONTRIBUTING examples README %doc Changes CONTRIBUTING examples README
%license LICENSE %license LICENSE