forked from pool/perl-Test-MockModule
Accepting request 295981 from devel:languages:perl:autoupdate
automatic update OBS-URL: https://build.opensuse.org/request/show/295981 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Test-MockModule?expand=0&rev=4
This commit is contained in:
committed by
Git OBS Bridge
parent
84e5f5b3dd
commit
26639cbb23
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:67c515258c76780009e58305ec56f195e1b110d0cabb52792d57dd1761396e07
|
||||
size 5608
|
3
Test-MockModule-0.09.tar.gz
Normal file
3
Test-MockModule-0.09.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:8e9d5b6883b342726dfff17d3dd542bcc5f19151d8cf61d37e980068403ee946
|
||||
size 23108
|
@@ -1,3 +1,23 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 13 18:37:51 UTC 2015 - coolo@suse.com
|
||||
|
||||
- updated to 0.09
|
||||
see /usr/share/doc/packages/perl-Test-MockModule/Changes
|
||||
|
||||
v0.08 2015-03-15
|
||||
- Ensure LICENSE autogenerates for distribution, fixed license issues in Build.PL
|
||||
|
||||
v0.08 2015-03-14
|
||||
- Updated README with correct instructions now that we use Build.PL
|
||||
|
||||
v0.07 2015-03-14
|
||||
- Updated docs for more clarity when handling objects of mocked classes.
|
||||
|
||||
v0.06 2015-03-07
|
||||
- unmock() on inherited subroutines will dispatch to the parent module,
|
||||
rather than replace the local subroutine with the parent's subroutine
|
||||
from the time of mocking (RT77439)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 12 08:36:23 UTC 2015 - coolo@suse.com
|
||||
|
||||
|
@@ -17,18 +17,21 @@
|
||||
|
||||
|
||||
Name: perl-Test-MockModule
|
||||
Version: 0.05
|
||||
Version: 0.09
|
||||
Release: 0
|
||||
%define cpan_name Test-MockModule
|
||||
Summary: Override subroutines in a module for unit testing
|
||||
License: Artistic-1.0 or GPL-1.0+
|
||||
License: GPL-1.0+
|
||||
Group: Development/Libraries/Perl
|
||||
Url: http://search.cpan.org/dist/Test-MockModule/
|
||||
Source: http://www.cpan.org/authors/id/S/SI/SIMONFLK/%{cpan_name}-%{version}.tar.gz
|
||||
Source: http://www.cpan.org/authors/id/G/GF/GFRANKS/%{cpan_name}-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(Module::Build) >= 0.38
|
||||
BuildRequires: perl(SUPER)
|
||||
Requires: perl(SUPER)
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
@@ -45,19 +48,18 @@ given module go out of scope, or when you 'unmock()' the subroutine.
|
||||
find . -type f -print0 | xargs -0 chmod 644
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
%{__make} %{?_smp_mflags}
|
||||
%{__perl} Build.PL installdirs=vendor
|
||||
./Build build flags=%{?_smp_mflags}
|
||||
|
||||
%check
|
||||
%{__make} test
|
||||
./Build test
|
||||
|
||||
%install
|
||||
%perl_make_install
|
||||
%perl_process_packlist
|
||||
./Build install destdir=%{buildroot} create_packlist=0
|
||||
%perl_gen_filelist
|
||||
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%doc Changes README
|
||||
%doc Changes LICENSE README
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user