Accepting request 48847 from home:dbahi:branches:devel:languages:perl
reviewed, OK, Thank you OBS-URL: https://build.opensuse.org/request/show/48847 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Test-SharedFork?expand=0&rev=2
This commit is contained in:
parent
97f3992a66
commit
8c9c2b4e35
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:9a88b32ffa87ab54c669e55e3bf94d530651cc9d5aeb984f24d556c931e07285
|
|
||||||
size 24073
|
|
3
Test-SharedFork-0.15.tar.bz2
Normal file
3
Test-SharedFork-0.15.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:a826a48e261ef7f6685b8bad706850be7ff21d0e0ad63ba57657ae9217edd953
|
||||||
|
size 23025
|
@ -1,5 +1,16 @@
|
|||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Aug 25 10:12:42 UTC 2010 - pascal.bleser@opensuse.org
|
Tue Sep 21 23:39:22 UTC 2010 - dbahi@novell.com
|
||||||
|
|
||||||
- initial package (0.12)
|
- remove test t/06_ completely - don't understand it's point or failure on SLE11
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Sep 21 20:29:31 UTC 2010 - dbahi@novell.com
|
||||||
|
|
||||||
|
- modified tests test::builder->create and test::more done_testing()
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Sep 21 03:20:14 UTC 2010 - dbahi@novell.com
|
||||||
|
|
||||||
|
- initial package 0.15
|
||||||
|
* created by cpanspec 1.78
|
||||||
|
|
||||||
|
@ -1,51 +1,72 @@
|
|||||||
# vim: set sw=4 ts=4 et nu:
|
#
|
||||||
|
# spec file for package perl-Test-SharedFork (Version 0.15)
|
||||||
|
#
|
||||||
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
# norootforbuild
|
# norootforbuild
|
||||||
|
|
||||||
Name: perl-Test-SharedFork
|
Name: perl-Test-SharedFork
|
||||||
Version: 0.12
|
%define cpan_name Test-SharedFork
|
||||||
Release: 0
|
Summary: Fork test
|
||||||
Summary: Perl Module to Test Forks
|
Version: 0.15
|
||||||
Source: http://search.cpan.org/CPAN/authors/id/T/TO/TOKUHIROM/Test-SharedFork-%{version}.tar.gz
|
Release: 1
|
||||||
URL: http://search.cpan.org/dist/Test-SharedFork/
|
License: GPL+ or Artistic
|
||||||
Group: Development/Libraries/Perl
|
Group: Development/Libraries/Perl
|
||||||
License: Perl License
|
Url: http://search.cpan.org/dist/Test-SharedFork/
|
||||||
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
#Source: http://www.cpan.org/authors/id/T/TO/TOKUHIROM/Test-SharedFork-%{version}.tar.gz
|
||||||
|
Source: %{cpan_name}-%{version}.tar.bz2
|
||||||
|
Patch0: tests-need-help.patch
|
||||||
|
BuildArch: noarch
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
BuildRequires: perl
|
||||||
|
%if 0%{?suse_version} < 1120
|
||||||
|
BuildRequires: perl-macros
|
||||||
|
%endif
|
||||||
|
BuildRequires: perl >= 5.8.0
|
||||||
Requires: perl = %{perl_version}
|
Requires: perl = %{perl_version}
|
||||||
BuildRequires: make perl
|
Requires: perl >= 5.8.0
|
||||||
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42
|
|
||||||
BuildRequires: perl(Test::More) >= 0.88
|
|
||||||
Requires: perl(Test::More) >= 0.88
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Test::SharedFork is a utility module for Test::Builder to test forking.
|
Test::SharedFork is utility module for Test::Builder. This module makes
|
||||||
It merges the test count with parent process & child process.
|
forking test!
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n "Test-SharedFork-%{version}"
|
%setup -q -n %{cpan_name}-%{version}
|
||||||
%__sed -i '/^auto_install/d' Makefile.PL
|
%patch0 -p1
|
||||||
|
|
||||||
%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
|
# do not perl_process_packlist (noarch)
|
||||||
|
# remove .packlist file
|
||||||
%check
|
%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch
|
||||||
%__make test
|
# remove perllocal.pod file
|
||||||
|
%{__rm} -rf $RPM_BUILD_ROOT%perl_archlib
|
||||||
|
%perl_gen_filelist
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
%{?buildroot:%__rm -rf "%{buildroot}"}
|
%{__rm} -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%files
|
%files -f %{name}.files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root,-)
|
||||||
%doc Changes README
|
%doc Changes README README.mkdn
|
||||||
%dir %{perl_vendorlib}/Test
|
|
||||||
%{perl_vendorlib}/Test/SharedFork.pm
|
|
||||||
%{perl_vendorlib}/Test/SharedFork
|
|
||||||
%dir %{perl_vendorarch}/auto/Test
|
|
||||||
%{perl_vendorarch}/auto/Test/SharedFork
|
|
||||||
%doc %{perl_man3dir}/Test::SharedFork.%{perl_man3ext}%{ext_man}
|
|
||||||
/var/adm/perl-modules/%{name}
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
41
tests-need-help.patch
Normal file
41
tests-need-help.patch
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
---
|
||||||
|
t/06_fail_lineno.t | 21 ---------------------
|
||||||
|
t/08_threads.t | 2 +-
|
||||||
|
2 files changed, 1 insertion(+), 22 deletions(-)
|
||||||
|
|
||||||
|
Index: Test-SharedFork-0.15/t/06_fail_lineno.t
|
||||||
|
===================================================================
|
||||||
|
--- Test-SharedFork-0.15.orig/t/06_fail_lineno.t 2010-09-10 21:43:42.000000000 -0400
|
||||||
|
+++ /dev/null 1970-01-01 00:00:00.000000000 +0000
|
||||||
|
@@ -1,21 +0,0 @@
|
||||||
|
-use strict;
|
||||||
|
-use warnings;
|
||||||
|
-use Test::More tests => 2;
|
||||||
|
-use Test::SharedFork;
|
||||||
|
-use File::Temp qw/tempfile/;
|
||||||
|
-
|
||||||
|
-local $ENV{LANG} = "C";
|
||||||
|
-
|
||||||
|
-my $out = do {
|
||||||
|
- open my $fh, ">", \my $out or die $!;
|
||||||
|
- my $test = Test::Builder->create();
|
||||||
|
- $test->output($fh);
|
||||||
|
- $test->failure_output($fh);
|
||||||
|
- $test->todo_output($fh);
|
||||||
|
- $test->ok(0);
|
||||||
|
- $out;
|
||||||
|
-};
|
||||||
|
-
|
||||||
|
-unlike($out, qr{lib/Test/SharedFork});
|
||||||
|
-like($out, qr{t/06_fail_lineno.t line \d+\.});
|
||||||
|
-
|
||||||
|
Index: Test-SharedFork-0.15/t/08_threads.t
|
||||||
|
===================================================================
|
||||||
|
--- Test-SharedFork-0.15.orig/t/08_threads.t 2010-09-12 01:59:20.000000000 -0400
|
||||||
|
+++ Test-SharedFork-0.15/t/08_threads.t 2010-09-21 19:35:20.113647922 -0400
|
||||||
|
@@ -25,4 +25,4 @@
|
||||||
|
exit 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
-done_testing;
|
||||||
|
+done_testing();
|
Loading…
x
Reference in New Issue
Block a user