From 26639cbb239bbc8f284fc5833dafb239133d6b0b5ee4d98a633184c2e7b56d8b Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Tue, 14 Apr 2015 05:06:00 +0000 Subject: [PATCH 1/2] 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 --- Test-MockModule-0.05.tar.gz | 3 --- Test-MockModule-0.09.tar.gz | 3 +++ perl-Test-MockModule.changes | 20 ++++++++++++++++++++ perl-Test-MockModule.spec | 20 +++++++++++--------- 4 files changed, 34 insertions(+), 12 deletions(-) delete mode 100644 Test-MockModule-0.05.tar.gz create mode 100644 Test-MockModule-0.09.tar.gz 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/perl-Test-MockModule.changes b/perl-Test-MockModule.changes index 37cfb77..d72e447 100644 --- a/perl-Test-MockModule.changes +++ b/perl-Test-MockModule.changes @@ -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 diff --git a/perl-Test-MockModule.spec b/perl-Test-MockModule.spec index e1c2ba8..d7ba760 100644 --- a/perl-Test-MockModule.spec +++ b/perl-Test-MockModule.spec @@ -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 From cec71af4fa430329e28f7b54abcdd2916d51adfde18de12e5daa86b1be290afb Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Thu, 16 Apr 2015 18:24:00 +0000 Subject: [PATCH 2/2] update OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Test-MockModule?expand=0&rev=5 --- cpanspec.yml | 20 ++++++++++++++++++++ perl-Test-MockModule.changes | 5 +++++ perl-Test-MockModule.spec | 8 +++++--- 3 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 cpanspec.yml 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 d72e447..0533800 100644 --- a/perl-Test-MockModule.changes +++ b/perl-Test-MockModule.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +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 diff --git a/perl-Test-MockModule.spec b/perl-Test-MockModule.spec index d7ba760..ce21e97 100644 --- a/perl-Test-MockModule.spec +++ b/perl-Test-MockModule.spec @@ -19,17 +19,19 @@ Name: perl-Test-MockModule Version: 0.09 Release: 0 +#Upstream: GPL-1.0+ %define cpan_name Test-MockModule Summary: Override subroutines in a module for unit testing -License: 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/G/GF/GFRANKS/%{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.38 +BuildRequires: perl(Module::Build) >= 0.380000 BuildRequires: perl(SUPER) Requires: perl(SUPER) %{perl_requires}