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
This commit is contained in:
Stephan Kulow 2017-10-03 03:35:53 +00:00 committed by Git OBS Bridge
parent 9d14cb9f87
commit f5d2990cf6
3 changed files with 14 additions and 6 deletions

View File

@ -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

View File

@ -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

View File

@ -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 <div> and <table> 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