forked from pool/perl-Sub-Override
Accepting request 45973 from home:computersalat:devel:perl
Copy from home:computersalat:devel:perl/perl-Sub-Override via accept of submit request 45973 revision 2. Request was accepted with message: self accept OBS-URL: https://build.opensuse.org/request/show/45973 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Sub-Override?expand=0&rev=4
This commit is contained in:
parent
abca9b82be
commit
18c6786b82
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ec82b781b9ba68465690b02ae1703fe43b4354a2b3fd2dc7721df59ded6eeffb
|
||||
size 5335
|
3
Sub-Override-0.08.tar.gz
Normal file
3
Sub-Override-0.08.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:72d2ef2d340f80b273a6b2798750026fbf64616dbc2eb2372858808f4dfc458f
|
||||
size 5524
|
29
perl-Sub-Override.changes
Normal file
29
perl-Sub-Override.changes
Normal file
@ -0,0 +1,29 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 23 07:43:44 UTC 2010 - chris@computersalat.de
|
||||
|
||||
- recreated by cpanspec 1.78
|
||||
- noarch pkg
|
||||
- changelog to changes file
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 21 20:38:00 UTC 2006 - jfunk@funktronics.ca
|
||||
|
||||
- Build under buildservice
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 11 08:34:11 UTC 2005 - jfunk@funktronics.ca
|
||||
|
||||
- Update
|
||||
- Build for SL10
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu May 12 06:23:45 UTC 2005 - jfunk@funktronics.ca
|
||||
|
||||
- Update
|
||||
- Build for SL93
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 19 01:22:09 UTC 2004 - jfunk@funktronics.ca
|
||||
|
||||
- Initial release
|
||||
|
@ -1,58 +1,84 @@
|
||||
%define modname Sub-Override
|
||||
Name: perl-%{modname}
|
||||
Version: 0.08
|
||||
Release: 2
|
||||
#
|
||||
# spec file for package perl-Sub-Override (Version 0.08)
|
||||
#
|
||||
# Copyright (c) 2010 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
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# 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/
|
||||
#
|
||||
|
||||
# norootforbuild
|
||||
|
||||
%bcond_with pod
|
||||
|
||||
Name: perl-Sub-Override
|
||||
%define cpan_name Sub-Override
|
||||
Summary: Perl extension for easily overriding subroutines
|
||||
Requires: perl = %{perl_version} perl-Sub-Uplevel
|
||||
BuildRequires: perl perl-Test-Exception perl-Sub-Uplevel
|
||||
License: GPL/Artistic
|
||||
Version: 0.08
|
||||
Release: 1
|
||||
License: GPL+ or Artistic
|
||||
Group: Development/Libraries/Perl
|
||||
Source: %{modname}-%{version}.tar.bz2
|
||||
BuildRoot: %{_tmppath}/%{name}-root
|
||||
Url: http://search.cpan.org/dist/Sub-Override/
|
||||
Source: http://www.cpan.org/modules/by-module/Sub/Sub-Override-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
%if 0%{?suse_version} < 1120
|
||||
BuildRequires: perl-macros
|
||||
%endif
|
||||
%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 = %{perl_version}
|
||||
Requires: perl(Sub::Uplevel)
|
||||
Requires: perl(Test::Exception) >= 0.21
|
||||
|
||||
%description
|
||||
Perl extension for easily overriding subroutines.
|
||||
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>
|
||||
|
||||
%prep
|
||||
%setup -q -n %{modname}-%{version}
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
|
||||
%build
|
||||
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
||||
make
|
||||
make test
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
%{__make} %{?_smp_mflags}
|
||||
|
||||
%check
|
||||
%{__make} test
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
make DESTDIR=$RPM_BUILD_ROOT install_vendor
|
||||
%perl_process_packlist
|
||||
%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_gen_filelist
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
%{__rm} -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-, root, root)
|
||||
%doc README Changes
|
||||
%doc %{_mandir}/man?/*
|
||||
%{perl_vendorlib}/Sub/Override.pm
|
||||
%{perl_vendorarch}/auto/Sub/Override
|
||||
/var/adm/perl-modules/%{name}
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,-)
|
||||
%doc Changes README
|
||||
|
||||
%changelog
|
||||
|
||||
* Wed Jun 21 2006 - James Oakley <jfunk@funktronics.ca> - 0.08-2
|
||||
- Build under buildservice
|
||||
|
||||
* Fri Nov 11 2005 - James Oakley <jfunk@funktronics.ca> - 0.08-ft.1
|
||||
- Update
|
||||
- Build for SL10
|
||||
|
||||
* Thu May 12 2005 - James Oakley <jfunk@funktronics.ca> - 0.06-ft.1
|
||||
- Update
|
||||
- Build for SL93
|
||||
|
||||
* Fri Nov 19 2004 - James Oakley <jfunk@funktronics.ca> - 0.05-ft.1
|
||||
- Initial release
|
||||
|
Loading…
x
Reference in New Issue
Block a user