From e0b61f48cc6de4d7c4db4fc4682faa84431c8099 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 20 Jun 2018 11:02:23 +0200 Subject: change perl version from 6.9A to 6.99 for old perl fix Invalid version format (non-numeric data) --- ImageMagick6.spec | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/ImageMagick6.spec b/ImageMagick6.spec index 0b215ea..6af5abd 100644 --- a/ImageMagick6.spec +++ b/ImageMagick6.spec @@ -73,7 +73,7 @@ Name: %{libname} Name: %{libname}6 %endif Version: %{VER}.%{Patchlevel} -Release: 1%{?dist} +Release: 2%{?dist} Summary: An X application for displaying and manipulating images Group: Applications/Multimedia License: ImageMagick @@ -337,6 +337,16 @@ however. mkdir Magick++/examples cp -p Magick++/demo/*.cpp Magick++/demo/*.miff Magick++/examples +%if 0%{?rhel} == 6 || 0%{?rhel} == 7 +# for old perl +for file in version.sh PerlMagick/Makefile.PL PerlMagick/quantum/Makefile.PL PerlMagick/quantum/quantum.pm PerlMagick/default/Makefile.PL +do + touch -r $file /tmp/timestamp + sed -e '/VERSION/s/6.9A/6.99/' -i $file + touch -r /tmp/timestamp $file +done +%endif + %build %configure --enable-shared \ @@ -576,6 +586,10 @@ fi %changelog +* Wed Jun 20 2018 Remi Collet - 6.9.10.2-2 +- change perl version from 6.9A to 6.99 for old perl + fix Invalid version format (non-numeric data) + * Tue Jun 19 2018 Remi Collet - 6.9.10.2-1 - update to version 6.9.10 patch level 2 -- cgit