From: Jakub Bogusz Date: Fri, 28 Nov 2014 19:48:29 +0000 (+0100) Subject: - adjusted ldflags not to link against installed (possibly older) version of libMagick X-Git-Tag: auto/th/ImageMagick-6.9.0.0-2~1 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=8a335abaff86d8db157b263413a76034ed7a9dd7;p=packages%2FImageMagick.git - adjusted ldflags not to link against installed (possibly older) version of libMagick - updated jp2 bcond name and dependency (now openjpeg instead of jasper) --- diff --git a/ImageMagick-ldflags.patch b/ImageMagick-ldflags.patch index 0ba91b8..efa30f0 100644 --- a/ImageMagick-ldflags.patch +++ b/ImageMagick-ldflags.patch @@ -1,21 +1,27 @@ --- ImageMagick-6.8.4-8/configure.ac.orig 2013-04-09 15:47:16.713625903 +0200 +++ ImageMagick-6.8.4-8/configure.ac 2013-04-09 15:49:29.416956473 +0200 -@@ -3903,7 +3903,17 @@ +@@ -3903,7 +3903,23 @@ MAGICK_CXXFLAGS="$CXXFLAGS" MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'` MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'` -MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS" +MAGICK_LDFLAGS="" ++new_LDFLAGS= +for flag in $LDFLAGS +do + case "$flag" in -+ -s|-Wl,-s|--strip-all|-Wl,--strip-all|-Wl,--as-needed) ++ -L/usr/lib|-L/usr/lib64) ++ ;; ++ -s|-Wl,-s|--strip-all|-Wl,--strip-all|-Wl,--as-needed|-Wl,--no-copy-dt-needed-entries) ++ new_LDFLAGS="$new_LDFLAGS $flag" + ;; + *) + MAGICK_LDFLAGS="$MAGICK_LDFLAGS $flag" ++ new_LDFLAGS="$new_LDFLAGS $flag" + ;; + esac +done ++LDFLAGS="$new_LDFLAGS" MAGICK_LIBS="$MAGICK_DEP_LIBS" AC_SUBST(MAGICK_CFLAGS) diff --git a/ImageMagick.spec b/ImageMagick.spec index 85190db..da078bf 100644 --- a/ImageMagick.spec +++ b/ImageMagick.spec @@ -12,7 +12,7 @@ %bcond_without exr # OpenEXR module %bcond_without fpx # FlashPIX module (which uses fpx library) %bcond_without graphviz # dot module (which uses GraphViz libraries) -%bcond_without jasper # JPEG2000 module (which uses jasper library) +%bcond_without openjpeg # JPEG2000 module (which uses openjpeg 2 library) %bcond_without wmf # WMF module (which uses libwmf library) # - module feautres: %bcond_without autotrace # Autotrace support in SVG module @@ -58,7 +58,6 @@ BuildRequires: freetype-devel >= 2.0.2-2 %{?with_gomp:BuildRequires: gcc-c++ >= 6:4.2} %{?with_gs:BuildRequires: ghostscript-devel} %{?with_graphviz:BuildRequires: graphviz-devel >= 2.9.0} -%{?with_jasper:BuildRequires: jasper-devel >= 1.700.5} BuildRequires: jbigkit-devel BuildRequires: lcms2-devel >= 2.0 %{?with_fpx:BuildRequires: libfpx-devel >= 1.2.0.4-3} @@ -74,6 +73,7 @@ BuildRequires: libtool >= 2:2.2 BuildRequires: libwebp-devel %{?with_wmf:BuildRequires: libwmf-devel >= 2:0.2.2} BuildRequires: libxml2-devel >= 2.0 +%{?with_openjpeg:BuildRequires: openjpeg2-devel >= 2.1.0} BuildRequires: pango-devel >= 1:1.28.1 BuildRequires: perl-devel >= 1:5.8.1 BuildRequires: pkgconfig @@ -686,9 +686,9 @@ touch www/Magick++/NEWS.html www/Magick++/ChangeLog.html --with-fpx%{!?with_fpx:=no} \ --with-gslib%{!?with_gs:=no} \ --with-gvc%{!?with_graphviz:=no} \ - --with-jp2%{!?with_jasper:=no} \ --with-magick_plus_plus%{!?with_cxx:=no} \ --with-openexr%{!?with_exr:=no} \ + --with-openjp2%{!?with_openjpeg:=no} \ --with-wmf%{!?with_wmf:=no} \ --with-gs-font-dir=%{_fontsdir}/Type1 \ --with-perl=%{__perl} \ @@ -1035,10 +1035,10 @@ rm -rf $RPM_BUILD_ROOT %attr(755,root,root) %{modulesdir}/coders/jpeg.so %{modulesdir}/coders/jpeg.la -%if %{with jasper} +%if %{with openjpeg} %files coder-jpeg2 %defattr(644,root,root,755) -# R: jasper, libjpeg +# R: openjpeg2, libjpeg %attr(755,root,root) %{modulesdir}/coders/jp2.so %{modulesdir}/coders/jp2.la %endif