8
0

- add old_test_more.patch to build against sle11

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Module-Refresh?expand=0&rev=8
This commit is contained in:
Ruediger Oertel
2012-02-29 15:26:35 +00:00
committed by Git OBS Bridge
parent 5d24ac755f
commit 1053e480a0
3 changed files with 35 additions and 5 deletions

20
old_test_more.patch Normal file
View File

@@ -0,0 +1,20 @@
--- t/clear_symtable.t
+++ t/clear_symtable.t
@@ -1,7 +1,7 @@
#!/usr/bin/env perl
use strict;
use warnings;
-use Test::More;
+use Test::More qw(no_plan);
use Module::Refresh;
@@ -37,7 +37,7 @@
can_ok('Foo', 'baz');
ok(!Foo->can('bar'), "!Foo->can('bar')");
-done_testing;
+#done_testing;
__END__
ok 1 - Foo->can('bar')
ok 2 - !Foo->can('baz')

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Feb 29 16:26:17 CET 2012 - ro@suse.de
- add old_test_more.patch to build against sle11
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Nov 18 08:35:37 UTC 2011 - coolo@suse.com Fri Nov 18 08:35:37 UTC 2011 - coolo@suse.com

View File

@@ -1,7 +1,7 @@
# #
# spec file for package perl-Module-Refresh # spec file for package perl-Module-Refresh
# #
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -16,16 +16,18 @@
# #
Name: perl-Module-Refresh Name: perl-Module-Refresh
Version: 0.17 Version: 0.17
Release: 1 Release: 0
License: GPL-1.0+ or Artistic-1.0
%define cpan_name Module-Refresh %define cpan_name Module-Refresh
Summary: Refresh INC files when updated on disk Summary: Refresh INC files when updated on disk
Url: http://search.cpan.org/dist/Module-Refresh/ License: GPL-1.0+ or Artistic-1.0
Group: Development/Libraries/Perl Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Module-Refresh/
Source: http://www.cpan.org/authors/id/A/AL/ALEXMV/%{cpan_name}-%{version}.tar.gz Source: http://www.cpan.org/authors/id/A/AL/ALEXMV/%{cpan_name}-%{version}.tar.gz
%if 0%{?suse_version} < 1120
Patch0: old_test_more.patch
%endif
BuildArch: noarch BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl BuildRequires: perl
@@ -53,6 +55,9 @@ It does not require mod_perl.
%prep %prep
%setup -q -n %{cpan_name}-%{version} %setup -q -n %{cpan_name}-%{version}
%if 0%{?suse_version} < 1120
%patch0
%endif
find . -type f -print0 | xargs -0 chmod 644 find . -type f -print0 | xargs -0 chmod 644
%build %build