8
0

Accepting request 297276 from devel:languages:perl

- set license to GPL-3.0+

- 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)

OBS-URL: https://build.opensuse.org/request/show/297276
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Test-MockModule?expand=0&rev=2
This commit is contained in:
Stephan Kulow
2015-04-25 07:52:11 +00:00
committed by Git OBS Bridge
5 changed files with 61 additions and 12 deletions

View File

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

View File

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

20
cpanspec.yml Normal file
View File

@@ -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

View File

@@ -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 Thu Feb 12 08:36:23 UTC 2015 - coolo@suse.com

View File

@@ -17,18 +17,23 @@
Name: perl-Test-MockModule Name: perl-Test-MockModule
Version: 0.05 Version: 0.09
Release: 0 Release: 0
#Upstream: GPL-1.0+
%define cpan_name Test-MockModule %define cpan_name Test-MockModule
Summary: Override subroutines in a module for unit testing 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 Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Test-MockModule/ 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 BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl BuildRequires: perl
BuildRequires: perl-macros BuildRequires: perl-macros
BuildRequires: perl(Module::Build) >= 0.380000
BuildRequires: perl(SUPER)
Requires: perl(SUPER)
%{perl_requires} %{perl_requires}
%description %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 find . -type f -print0 | xargs -0 chmod 644
%build %build
%{__perl} Makefile.PL INSTALLDIRS=vendor %{__perl} Build.PL installdirs=vendor
%{__make} %{?_smp_mflags} ./Build build flags=%{?_smp_mflags}
%check %check
%{__make} test ./Build test
%install %install
%perl_make_install ./Build install destdir=%{buildroot} create_packlist=0
%perl_process_packlist
%perl_gen_filelist %perl_gen_filelist
%files -f %{name}.files %files -f %{name}.files
%defattr(-,root,root,755) %defattr(-,root,root,755)
%doc Changes README %doc Changes LICENSE README
%changelog %changelog