Sync from SUSE:SLFO:Main perl-Sub-Override revision e32cd2b4434a63cafb6aba8fc592a64f

This commit is contained in:
Adrian Schröter 2024-10-01 08:50:12 +02:00
parent 4b67f6a3da
commit 4fca1a0e4d
4 changed files with 47 additions and 18 deletions

BIN
Sub-Override-0.09.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
Sub-Override-0.12.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,3 +1,31 @@
-------------------------------------------------------------------
Sun Jun 23 16:48:07 UTC 2024 - Tina Müller <tina.mueller@suse.com>
- updated to 0.120.0 (0.12)
see /usr/share/doc/packages/perl-Sub-Override/Changes
0.12 Mon Jun 17 2024
- Add 'inject' method which can inject a new subroutine into a namespace.
- Add 'inherit' method which can inherit a subroutine from a parent object.
- Bug fix for wrap not restoring during destruction.
- Internal cleanup.
0.11 Tue May 14 2024
- Update the 'wrap' routine so it handles prototypes transparently.
- Update the 'wrap' routine to prevent creation of an extra stack frame.
- Minor doc updates.
-------------------------------------------------------------------
Fri Mar 8 23:04:42 UTC 2024 - Tina Müller <tina.mueller@suse.com>
- Fix disabling of __perllib_provides
-------------------------------------------------------------------
Wed Dec 6 03:07:31 UTC 2023 - Tina Müller <timueller+perl@suse.de>
- updated to 0.10
see /usr/share/doc/packages/perl-Sub-Override/Changes
-------------------------------------------------------------------
Tue Jun 4 17:18:39 UTC 2013 - coolo@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package perl-Sub-Override
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# 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
@ -12,39 +12,41 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: perl-Sub-Override
Version: 0.09
Release: 0
%define cpan_name Sub-Override
Name: perl-Sub-Override
Version: 0.120.0
Release: 0
# 0.12 -> normalize -> 0.120.0
%define cpan_version 0.12
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Perl extension for easily overriding subroutines
License: GPL-1.0+ or Artistic-1.0
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Sub-Override/
Source: http://www.cpan.org/authors/id/O/OV/OVID/%{cpan_name}-%{version}.tar.gz
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/M/MV/MVSJES/%{cpan_name}-%{cpan_version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Test::Fatal) >= 0.010
Requires: perl(Test::Fatal) >= 0.010
Provides: perl(Sub::Override) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description
Perl extension for easily overriding subroutines
%prep
%setup -q -n %{cpan_name}-%{version}
%autosetup -n %{cpan_name}-%{cpan_version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
perl Makefile.PL INSTALLDIRS=vendor
%make_build
%check
%{__make} test
make test
%install
%perl_make_install
@ -52,7 +54,6 @@ Perl extension for easily overriding subroutines
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes README README.md
%changelog