Accepting request 177562 from home:coolo:update-perl

- updated to 0.09
      Switch from Test::Exception to Test::Fatal.
      Fix two typos on the POD. Patches from Ansgar Burchardt and david.skyba.

OBS-URL: https://build.opensuse.org/request/show/177562
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Sub-Override?expand=0&rev=10
This commit is contained in:
Stephan Kulow 2013-06-04 18:06:13 +00:00 committed by Git OBS Bridge
parent 2241e9fc7b
commit 6bb24d4183
4 changed files with 23 additions and 40 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:72d2ef2d340f80b273a6b2798750026fbf64616dbc2eb2372858808f4dfc458f
size 5524

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

Binary file not shown.

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Jun 4 17:18:39 UTC 2013 - coolo@suse.com
- updated to 0.09
Switch from Test::Exception to Test::Fatal.
Fix two typos on the POD. Patches from Ansgar Burchardt and david.skyba.
-------------------------------------------------------------------
Tue Nov 30 19:20:45 UTC 2010 - coolo@novell.com

View File

@ -1,7 +1,7 @@
#
# spec file for package perl-Sub-Override (Version 0.08)
# spec file for package perl-Sub-Override
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -15,43 +15,26 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
%bcond_with pod
Name: perl-Sub-Override
Version: 0.09
Release: 0
%define cpan_name Sub-Override
Summary: Perl extension for easily overriding subroutines
Version: 0.08
Release: 2
License: GPL+ or Artistic
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/modules/by-module/Sub/Sub-Override-%{version}.tar.gz
Source: http://www.cpan.org/authors/id/O/OV/OVID/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: perl
BuildRequires: perl-macros
%if %{with pod}
BuildRequires: perl(Test::Pod) >= 1.14
BuildRequires: perl(Test::Pod::Coverage) >= 1.04
%endif
BuildRequires: perl(Sub::Uplevel)
BuildRequires: perl(Test::Exception) >= 0.21
#
Requires: perl(Sub::Uplevel)
Requires: perl(Test::Exception) >= 0.21
BuildRequires: perl(Test::Fatal) >= 0.010
Requires: perl(Test::Fatal) >= 0.010
%{perl_requires}
%description
Sometimes subroutines need to be overridden. In fact, your author does
this constantly for tests. Particularly when testing, using a
Mock Object can be overkill when all you want to do is override
one tiny, little function.
Authors:
--------
Curtis "Ovid" Poe, <eop_divo_sitruc@yahoo.com>
Perl extension for easily overriding subroutines
%prep
%setup -q -n %{cpan_name}-%{version}
@ -65,18 +48,11 @@ Authors:
%install
%perl_make_install
# do not perl_process_packlist (noarch)
# remove .packlist file
%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch
# remove perllocal.pod file
%{__rm} -rf $RPM_BUILD_ROOT%perl_archlib
%perl_process_packlist
%perl_gen_filelist
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%files -f %{name}.files
%defattr(-,root,root,-)
%doc Changes README
%defattr(-,root,root,755)
%doc Changes README README.md
%changelog