--- 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)
%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
%{?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}
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
--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} \
%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