8
0
Stephan Kulow
2014-03-18 12:44:05 +00:00
committed by Git OBS Bridge
parent 0c26fef853
commit 8a017e4347
5 changed files with 39 additions and 42 deletions

View File

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

View File

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

View File

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

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Mar 18 12:42:44 UTC 2014 - coolo@suse.com
- regenerate spec file for 1.20120301
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Mar 11 18:38:11 UTC 2014 - rschweikert@suse.com Tue Mar 11 18:38:11 UTC 2014 - rschweikert@suse.com

View File

@@ -1,4 +1,3 @@
# vim: set sw=4 ts=4 et nu:
# #
# spec file for package perl-Test-MockObject # spec file for package perl-Test-MockObject
# #
@@ -18,64 +17,60 @@
Name: perl-Test-MockObject Name: perl-Test-MockObject
Version: 1.09 Version: 1.20120301
Release: 0 Release: 0
%define cpan_name Test-MockObject
Summary: Perl extension for emulating troublesome interfaces Summary: Perl extension for emulating troublesome interfaces
License: Artistic-1.0 or GPL-1.0+ License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl Group: Development/Libraries/Perl
Source: Test-MockObject-%{version}.tar.gz
Url: http://search.cpan.org/dist/Test-MockObject/ Url: http://search.cpan.org/dist/Test-MockObject/
Source: http://www.cpan.org/authors/id/C/CH/CHROMATIC/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: make
BuildRequires: perl BuildRequires: perl
BuildRequires: perl-macros BuildRequires: perl-macros
BuildRequires: perl(Test::Exception) BuildRequires: perl(Test::Exception) >= 0.31
BuildRequires: perl(UNIVERSAL::can) BuildRequires: perl(Test::More) >= 0.98
BuildRequires: perl(UNIVERSAL::isa) BuildRequires: perl(Test::Warn) >= 0.23
Requires: perl(UNIVERSAL::can) BuildRequires: perl(UNIVERSAL::can) >= 1.20110617
Requires: perl(UNIVERSAL::isa) BuildRequires: perl(UNIVERSAL::isa) >= 1.20110614
Requires: perl(Test::Exception) >= 0.31
Requires: perl(Test::More) >= 0.98
Requires: perl(Test::Warn) >= 0.23
Requires: perl(UNIVERSAL::can) >= 1.20110617
Requires: perl(UNIVERSAL::isa) >= 1.20110614
%{perl_requires}
%description %description
It's a simple program that doesn't use any other modules, and those are easy to It's a simple program that doesn't use any other modules, and those are
test. More often, testing a program completely means faking up input to another easy to test. More often, testing a program completely means faking up
module, trying to coax the right output from something you're not supposed to input to another module, trying to coax the right output from something
be testing anyway. you're not supposed to be testing anyway.
Testing is a lot easier when you can control the entire environment. With Testing is a lot easier when you can control the entire environment. With
Test::MockObject, you can get a lot closer. Test::MockObject, you can get a lot closer.
Test::MockObject allows you to create objects that conform to particular Test::MockObject allows you to create objects that conform to particular
interfaces with very little code. You don't have to reimplement the behavior, interfaces with very little code. You don't have to reimplement the
just the input and the output. behavior, just the input and the output.
%prep %prep
%setup -q -n "Test-MockObject-%{version}" %setup -q -n %{cpan_name}-%{version}
%__sed -i '/^auto_install/d' Makefile.PL
%build %build
%__perl Makefile.PL PREFIX="%{_prefix}" %{__perl} Makefile.PL INSTALLDIRS=vendor
%__make %{?jobs:-j%{jobs}} %{__make} %{?_smp_mflags}
%check
%{__make} test
%install %install
%perl_make_install %perl_make_install
%perl_process_packlist %perl_process_packlist
%perl_gen_filelist
%check %files -f %{name}.files
%__make test %defattr(-,root,root,755)
%doc Changes LICENSE README
%clean
%__rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%doc Changes README
%dir %{perl_vendorlib}/Test
%{perl_vendorlib}/Test/MockObject.pm
%{perl_vendorlib}/Test/MockObject
%dir %{perl_vendorarch}/auto/Test
%{perl_vendorarch}/auto/Test/MockObject
%doc %{perl_man3dir}/Test::MockObject.%{perl_man3ext}%{ext_man}
%doc %{perl_man3dir}/Test::MockObject::*.%{perl_man3ext}%{ext_man}
%changelog %changelog