From f3c49190e8ef3749852aefc5d7694f46de74be96 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppi...@redhat.com>
Date: Thu, 18 May 2017 10:22:38 +0200
Subject: Fix building on Perl without "." in @INC

---
 ...031-Fix-building-on-Perl-without-.-in-INC.patch | 27 ++++++++++++++++++++++
 perl-Text-Markdown.spec                            |  9 +++++++-
 2 files changed, 35 insertions(+), 1 deletion(-)
 create mode 100644 
Text-Markdown-1.000031-Fix-building-on-Perl-without-.-in-INC.patch

diff --git a/Text-Markdown-1.000031-Fix-building-on-Perl-without-.-in-INC.patch 
b/Text-Markdown-1.000031-Fix-building-on-Perl-without-.-in-INC.patch
new file mode 100644
index 0000000..c885573
--- /dev/null
+++ b/Text-Markdown-1.000031-Fix-building-on-Perl-without-.-in-INC.patch
@@ -0,0 +1,27 @@
+From 0a122ccf1ef6e642cf5415b82ae9b51124151d63 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppi...@redhat.com>
+Date: Thu, 18 May 2017 10:20:33 +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
+
+https://github.com/bobtfish/text-markdown/issues/41
+Signed-off-by: Petr Písař <ppi...@redhat.com>
+---
+ Makefile.PL | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/Makefile.PL b/Makefile.PL
+index 9c8f66f..89fd90d 100644
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -1,4 +1,5 @@
+ # Load the Module::Install bundled in ./inc/
++BEGIN { push @INC, '.'; }
+ use inc::Module::Install;
+ 
+ # Define metadata
+-- 
+2.9.4
+
diff --git a/perl-Text-Markdown.spec b/perl-Text-Markdown.spec
index 70e4846..bc9645a 100644
--- a/perl-Text-Markdown.spec
+++ b/perl-Text-Markdown.spec
@@ -1,12 +1,15 @@
 Name:           perl-Text-Markdown
 Version:        1.000031
-Release:        7%{?dist}
+Release:        8%{?dist}
 Summary:        Convert Markdown syntax to (X)HTML
 
 Group:          Development/Libraries
 License:        BSD
 URL:            http://search.cpan.org/dist/Text-Markdown/
 Source0:        
http://www.cpan.org/modules/by-module/Text/Text-Markdown-%{version}.tar.gz
+# Fix building on Perl without "." in @INC,
+# <https://github.com/bobtfish/text-markdown/issues/41>
+Patch0:         
Text-Markdown-1.000031-Fix-building-on-Perl-without-.-in-INC.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildArch:      noarch
@@ -43,6 +46,7 @@ For more information about Markdown's syntax, see:
 
 %prep
 %setup -q -n Text-Markdown-%{version}
+%patch0 -p1
 
 %build
 %{__perl} Makefile.PL INSTALLDIRS=vendor
@@ -74,6 +78,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_bindir}/Markdown.pl
 
 %changelog
+* Thu May 18 2017 Petr Pisar <ppi...@redhat.com> - 1.000031-8
+- Fix building on Perl without "." in @INC
+
 * Sat Feb 11 2017 Fedora Release Engineering <rel...@fedoraproject.org> - 
1.000031-7
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
 
-- 
cgit v1.1


        
https://src.fedoraproject.org/cgit/perl-Text-Markdown.git/commit/?h=master&id=f3c49190e8ef3749852aefc5d7694f46de74be96
_______________________________________________
perl-devel mailing list -- perl-devel@lists.fedoraproject.org
To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org

Reply via email to