--- cauldron/imagemagick/current/SPECS/imagemagick.spec 2012/07/19 10:24:44 272537 +++ cauldron/imagemagick/current/SPECS/imagemagick.spec 2012/12/22 06:21:24 333783 @@ -9,10 +9,10 @@ # V E R S I O N P A R T S # their "official" version -%define rversion 6.7.8 +%define rversion 6.8.1 # their "minor" version -%define minor_rev 4 +%define minor_rev 1 # some other funny version # (aw) from the docs: Versions with Q8 in the name are 8 bits-per-pixel @@ -25,7 +25,7 @@ # the full file version %define dversion %{rversion}-%{minor_rev} -%define major 5 +%define major 7 %define libname %mklibname magick %{major} %define develname %mklibname magick -d @@ -35,9 +35,9 @@ Version: %{rversion}.%{minor_rev} Release: %mkrel 1 License: BSD-like -Group: Graphics +Group: Graphics/Editors URL: http://www.imagemagick.org/ -Source0: ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick-%{dversion}.tar.xz +Source0: http://www.imagemagick.org/download/ImageMagick-%{dversion}.tar.xz Source1: ImageMagick.pdf.bz2 # re-scaled from ftp://ftp.imagemagick.org/pub/ImageMagick/images/magick-icon.png Source10: magick-icon_16x16.png @@ -81,6 +81,7 @@ BuildRequires: libwmf-devel BuildRequires: libxml2-devel BuildRequires: lzma-devel +BuildRequires: pkgconfig(libwebp) %if !%bootstrap BuildRequires: djvulibre-devel %endif @@ -100,7 +101,7 @@ %package desktop Summary: ImageMagick menus -Group: Graphics +Group: Graphics/Editors Requires: xterm Obsoletes: ImageMagick-desktop < 6.3.2.9-6 @@ -111,6 +112,7 @@ %package -n %{libname} Summary: ImageMagick libraries Group: System/Libraries +Provides: %{_lib}magick = %{version} # (Anssi 02/2008): Wrongly named at first, can be removed when major changes again: Obsoletes: %{_lib}magick%{major}.0.0 < %{version}-%{release} @@ -160,7 +162,7 @@ %package doc Summary: %{name} Documentation -Group: Books/Other +Group: Documentation Obsoletes: ImageMagick-doc < 6.3.2.9-6 BuildArch: noarch @@ -196,7 +198,6 @@ --with-pic \ --enable-shared --disable-static \ --enable-fast-install \ - --disable-ltdl-install \ --with-threads \ --with-magick_plus_plus \ --with-gslib \ @@ -208,16 +209,11 @@ --without-windows-font-dir \ --with-modules \ --with-perl \ - --without-included-ltdl --with-ltdl-include=%{_includedir} \ - --with-ltdl-lib=%{_libdir} \ --with-perl-options="INSTALLDIRS=vendor CC='%{__cc} -L$PWD/magick/.libs' LDDLFLAGS='-shared -L$PWD/magick/.libs'" \ --with-jp2 \ --with-gvc \ --with-lqr -# without the following, it doesn't build correctly with "make -j 4" -perl -lpi -e '$_ .= " magick/libMagickCore.la" if index($_, q($(PERLMAKEFILE))) == 0' Makefile - # Disable rpath sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool @@ -248,6 +244,11 @@ # Remove unpackaged files find %{buildroot} -name '*.la' -delete +# create compatible symlinks +ln -s libMagick++-%{qlev}.so %{buildroot}%{_libdir}/libMagick++.so +ln -s libMagickCore-%{qlev}.so %{buildroot}%{_libdir}/libMagickCore.so +ln -s libMagickWand-%{qlev}.so %{buildroot}%{_libdir}/libMagickWand.so + %multiarch_binaries %{buildroot}%{_bindir}/Magick-config %multiarch_binaries %{buildroot}%{_bindir}/Magick++-config %multiarch_binaries %{buildroot}%{_bindir}/MagickCore-config @@ -308,9 +309,9 @@ %{_iconsdir}/hicolor/64x64/apps/%{name}.png %files -n %{libname} -%{_libdir}/libMagick++.so.%{major}* -%{_libdir}/libMagickCore.so.%{major}* -%{_libdir}/libMagickWand.so.%{major}* +%{_libdir}/libMagick++-%{qlev}.so.%{major}* +%{_libdir}/libMagickCore-%{qlev}.so.%{major}* +%{_libdir}/libMagickWand-%{qlev}.so.%{major}* %files -n %{develname} %{_includedir}/ImageMagick