From f5d2990cf684662ada4caa256389263d27ae7bd626981b526a2a646d8943b4b8 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Tue, 3 Oct 2017 03:35:53 +0000 Subject: [PATCH] Accepting request 530645 from devel:languages:perl:tobefixed - patch Makefile.PL to build with perl 5.26 OBS-URL: https://build.opensuse.org/request/show/530645 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Text-Markdown?expand=0&rev=13 --- cpanspec.yml | 5 ++--- perl-Text-Markdown.changes | 5 +++++ perl-Text-Markdown.spec | 10 +++++++--- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/cpanspec.yml b/cpanspec.yml index 330fd37..af680a7 100644 --- a/cpanspec.yml +++ b/cpanspec.yml @@ -16,9 +16,8 @@ preamble: |- if [ $1 -eq 0 ] ; then update-alternatives --remove markdown %{_bindir}/Markdown.pl fi -#post_prep: |- -# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'` -# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL +post_prep: |- + sed -i -e 's/use inc::Module::Install;/use lib q[.];\nuse inc::Module::Install;/' Makefile.PL post_install: |- # update-alternatives mkdir -p %{buildroot}%{_sysconfdir}/alternatives diff --git a/perl-Text-Markdown.changes b/perl-Text-Markdown.changes index 756b2fe..b549326 100644 --- a/perl-Text-Markdown.changes +++ b/perl-Text-Markdown.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Oct 3 03:28:55 UTC 2017 - coolo@suse.com + +- patch Makefile.PL to build with perl 5.26 + ------------------------------------------------------------------- Thu May 21 11:09:35 UTC 2015 - coolo@suse.com diff --git a/perl-Text-Markdown.spec b/perl-Text-Markdown.spec index b32d892..d00c3b0 100644 --- a/perl-Text-Markdown.spec +++ b/perl-Text-Markdown.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Text-Markdown # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,7 +24,7 @@ Summary: Convert Markdown syntax to (X)HTML License: BSD-3-Clause Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/Text-Markdown/ -Source0: http://www.cpan.org/authors/id/B/BO/BOBTFISH/%{cpan_name}-%{version}.tar.gz +Source0: https://cpan.metacpan.org/authors/id/B/BO/BOBTFISH/%{cpan_name}-%{version}.tar.gz Source1: cpanspec.yml BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -58,6 +58,9 @@ tags (like
and as well). %prep %setup -q -n %{cpan_name}-%{version} +# MANUAL BEGIN +sed -i -e 's/use inc::Module::Install;/use lib q[.];\nuse inc::Module::Install;/' Makefile.PL +# MANUAL END %build %{__perl} Makefile.PL INSTALLDIRS=vendor @@ -82,6 +85,7 @@ echo "%{_bindir}/markdown" >> %{name}.files %files -f %{name}.files %defattr(-,root,root,755) -%doc Changes License.text README Readme.text Todo +%doc Changes README Readme.text Todo +%license License.text %changelog