8
0

- remove perl-namespace-clean-use_lib.patch and use sed statement

instead (less likely to break with every package update)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-namespace-clean?expand=0&rev=20
This commit is contained in:
Ruediger Oertel
2012-03-02 00:02:51 +00:00
committed by Git OBS Bridge
parent e43bd0d517
commit 00cd39bc29
3 changed files with 9 additions and 101 deletions

View File

@@ -25,8 +25,6 @@ License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/namespace-clean/
Source: http://www.cpan.org/authors/id/R/RI/RIBASUSHI/%{cpan_name}-%{version}.tar.gz
# MANUAL
Patch1: perl-namespace-clean-use_lib.patch
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
@@ -58,8 +56,9 @@ Keep imports and functions out of your namespace
%prep
%setup -q -n %{cpan_name}-%{version}
%if 0%{?suse_version} <= 1110
%patch1 -p1
sed -i "s|__vendorperl__|%{perl_vendorlib}|g" Makefile.PL t/*.t
for i in `find t -type f` ; do
sed -i -e "s@^\s*use\s\s*Test::More@use lib '%{perl_vendorlib}';\nuse Test::More@" $i
done
# fail due to missing Sub/Name.pm
rm -f t/07-debugger.t
rm -f t/10-pure-perl.t