diff --git a/Test-MockModule-0.05.tar.gz b/Test-MockModule-0.05.tar.gz deleted file mode 100644 index e5f362f..0000000 --- a/Test-MockModule-0.05.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:67c515258c76780009e58305ec56f195e1b110d0cabb52792d57dd1761396e07 -size 5608 diff --git a/Test-MockModule-0.09.tar.gz b/Test-MockModule-0.09.tar.gz new file mode 100644 index 0000000..b516b3d --- /dev/null +++ b/Test-MockModule-0.09.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8e9d5b6883b342726dfff17d3dd542bcc5f19151d8cf61d37e980068403ee946 +size 23108 diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..1d29333 --- /dev/null +++ b/cpanspec.yml @@ -0,0 +1,20 @@ +--- +#description_paragraphs: 3 +#no_testing: broken upstream +#sources: +# - source1 +# - source2 +#patches: +# foo.patch: -p1 +# bar.patch: +#preamble: |- +# BuildRequires: gcc-c++ +#post_prep: |- +# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'` +# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL +#post_install: |- +# sed on %{name}.files +license: GPL-3.0+ +#skip_noarch: 1 +#custom_build: - +#./Build build flags=%{?_smp_mflags} --myflag diff --git a/perl-Test-MockModule.changes b/perl-Test-MockModule.changes index 37cfb77..0533800 100644 --- a/perl-Test-MockModule.changes +++ b/perl-Test-MockModule.changes @@ -1,3 +1,28 @@ +------------------------------------------------------------------- +Thu Apr 16 18:22:37 UTC 2015 - coolo@suse.com + +- set license to GPL-3.0+ + +------------------------------------------------------------------- +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 diff --git a/perl-Test-MockModule.spec b/perl-Test-MockModule.spec index e1c2ba8..ce21e97 100644 --- a/perl-Test-MockModule.spec +++ b/perl-Test-MockModule.spec @@ -17,18 +17,23 @@ Name: perl-Test-MockModule -Version: 0.05 +Version: 0.09 Release: 0 +#Upstream: GPL-1.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-3.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 +Source0: http://www.cpan.org/authors/id/G/GF/GFRANKS/%{cpan_name}-%{version}.tar.gz +Source1: cpanspec.yml BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros +BuildRequires: perl(Module::Build) >= 0.380000 +BuildRequires: perl(SUPER) +Requires: perl(SUPER) %{perl_requires} %description @@ -45,19 +50,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