From 6c320e5e33dd93dd1c07d85f1b47f6f12018cdc63dafac8f2430c4d5cb72c93b Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Sat, 11 Feb 2012 09:14:40 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-namespace-clean?expand=0&rev=16 --- perl-namespace-clean.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/perl-namespace-clean.spec b/perl-namespace-clean.spec index 0de1b88..109a6b2 100644 --- a/perl-namespace-clean.spec +++ b/perl-namespace-clean.spec @@ -25,6 +25,8 @@ 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 @@ -55,6 +57,10 @@ 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 +%endif %build %{__perl} Makefile.PL INSTALLDIRS=vendor