From cd2fc303227e7de6ed806ef442dc58c3813db4a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Tue, 16 May 2017 14:25:43 +0200 Subject: [PATCH] Fix building on Perl without "." in @INC --- ...ix-building-on-Perl-without-.-in-INC.patch | 25 +++++++++++++++++++ perl-Test-Object.spec | 8 +++++- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 Test-Object-0.07-Fix-building-on-Perl-without-.-in-INC.patch diff --git a/Test-Object-0.07-Fix-building-on-Perl-without-.-in-INC.patch b/Test-Object-0.07-Fix-building-on-Perl-without-.-in-INC.patch new file mode 100644 index 0000000..a4bdb2e --- /dev/null +++ b/Test-Object-0.07-Fix-building-on-Perl-without-.-in-INC.patch @@ -0,0 +1,25 @@ +From d43f322d24db7505125624a1b137a3d0e4253a2d Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= +Date: Tue, 16 May 2017 14:24:13 +0200 +Subject: [PATCH] Fix building on Perl without "." in @INC +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Signed-off-by: Petr Písař +--- + Makefile.PL | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/Makefile.PL b/Makefile.PL +index ebceb46..d4c9ffa 100644 +--- a/Makefile.PL ++++ b/Makefile.PL +@@ -1,3 +1,4 @@ ++BEGIN { push @INC, '.'; } + use inc::Module::Install; + + name 'Test-Object'; +-- +2.9.4 + diff --git a/perl-Test-Object.spec b/perl-Test-Object.spec index 16a936b..1842012 100644 --- a/perl-Test-Object.spec +++ b/perl-Test-Object.spec @@ -1,12 +1,14 @@ Name: perl-Test-Object Version: 0.07 -Release: 26%{?dist} +Release: 27%{?dist} Summary: Thoroughly testing objects via registered handlers Group: Development/Libraries License: GPL+ or Artistic URL: http://search.cpan.org/dist/Test-Object/ Source0: http://www.cpan.org/authors/id/A/AD/ADAMK/Test-Object-%{version}.tar.gz +# Fix building on Perl without "." in @INC, CPAN RT#120413 +Patch0: Test-Object-0.07-Fix-building-on-Perl-without-.-in-INC.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch @@ -33,6 +35,7 @@ all of the classes in its inheritance tree in one single call. %prep %setup -q -n Test-Object-%{version} +%patch0 -p1 %build %{__perl} Makefile.PL INSTALLDIRS=vendor @@ -63,6 +66,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Tue May 16 2017 Petr Pisar - 0.07-27 +- Fix building on Perl without "." in @INC (CPAN RT#120413) + * Sat Feb 11 2017 Fedora Release Engineering - 0.07-26 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild