[packages/GraphicsMagick] - updated to 1.3.20 - adjusted ldflags patch to fix build with older GraphicsMagick installed
qboosh
qboosh at pld-linux.org
Sat Nov 22 10:15:05 CET 2014
commit 77ba35c07adbea8761e2fe78d7314775b258f3c8
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Nov 22 10:15:42 2014 +0100
- updated to 1.3.20
- adjusted ldflags patch to fix build with older GraphicsMagick installed
GraphicsMagick-ldflags.patch | 12 +++++++++---
GraphicsMagick.spec | 30 +++++++++++++++++++++++++-----
2 files changed, 34 insertions(+), 8 deletions(-)
---
diff --git a/GraphicsMagick.spec b/GraphicsMagick.spec
index 86fc486..ba21d23 100644
--- a/GraphicsMagick.spec
+++ b/GraphicsMagick.spec
@@ -20,12 +20,12 @@ Summary(ru.UTF-8): Просмотр, конвертирование, обраб
Summary(tr.UTF-8): X altında resim gösterme, çevirme ve değişiklik yapma
Summary(uk.UTF-8): Перегляд, конвертування та обробка зображень під X Window
Name: GraphicsMagick
-Version: 1.3.18
-Release: 2
+Version: 1.3.20
+Release: 1
License: MIT
Group: X11/Applications/Graphics
Source0: http://downloads.sourceforge.net/graphicsmagick/%{name}-%{version}.tar.xz
-# Source0-md5: 45e16e0e9628c167390de837d2144042
+# Source0-md5: 5bb456e3466026ada6f12cc53c9776dc
Patch0: %{name}-link.patch
Patch1: %{name}-ldflags.patch
URL: http://www.graphicsmagick.org/
@@ -41,19 +41,22 @@ BuildRequires: jbigkit-devel >= 1.6
BuildRequires: lcms2-devel >= 2
%{?with_fpx:BuildRequires: libfpx-devel >= 1.2.0.4-3}
%{?with_gomp:BuildRequires: libgomp-devel}
-BuildRequires: libjpeg-devel
+BuildRequires: libjpeg-devel >= 6b
BuildRequires: libltdl-devel
BuildRequires: libpng-devel >= 1.2.18
BuildRequires: libstdc++-devel
BuildRequires: libtiff-devel >= 3.8.2
BuildRequires: libtool >= 2:2.2
+BuildRequires: libwebp-devel
BuildRequires: libwmf-devel >= 2:0.2.2
BuildRequires: libxml2-devel >= 2.0
BuildRequires: perl-devel >= 1:5.8.0
BuildRequires: rpm-perlprov >= 4.1-13
BuildRequires: rpmbuild(macros) >= 1.315
+BuildRequires: xorg-lib-libX11-devel
BuildRequires: xorg-lib-libXext-devel
BuildRequires: xz-devel
+BuildRequires: zlib-devel
# only checked for, but only supplied scripts/txt2html is used
#BuildRequires: txt2html
Requires: %{name}-libs = %{version}-%{release}
@@ -378,6 +381,18 @@ Coder module for retrieving files via URL.
%description coder-url -l pl.UTF-8
Moduł kodera ściągający pliki o podanym URL.
+%package coder-webp
+Summary: Coder module for WebP files
+Summary(pl.UTF-8): Moduł kodera dla plików WebP
+Group: X11/Applications/Graphics
+Requires: %{name} = %{version}-%{release}
+
+%description coder-webp
+Coder module for WebP files.
+
+%description coder-webp -l pl.UTF-8
+Moduł kodera dla plików WebP.
+
%package coder-wmf
Summary: Coder module for WMF files
Summary(pl.UTF-8): Moduł kodera dla plików WMF
@@ -559,7 +574,6 @@ find PerlMagick scripts www -type f -exec perl -pi -e 's=!%{_prefix}/local/bin/p
--enable-fast-install \
--enable-shared \
%{!?with_gomp:--disable-openmp} \
- --disable-ltdl-install \
--without-dps \
--with%{!?with_fpx:out}-fpx \
--with%{!?with_gs:out}-gslib \
@@ -889,6 +903,12 @@ rm -rf $RPM_BUILD_ROOT
%attr(755,root,root) %{modulesdir}/coders/url.so
%{modulesdir}/coders/url.la
+%files coder-webp
+%defattr(644,root,root,755)
+# R: libwebp
+%attr(755,root,root) %{modulesdir}/coders/webp.so
+%{modulesdir}/coders/webp.la
+
%files coder-wmf
%defattr(644,root,root,755)
# R: libwmf, expat, libjpeg, libpng
diff --git a/GraphicsMagick-ldflags.patch b/GraphicsMagick-ldflags.patch
index 3abf0d6..6eab7b4 100644
--- a/GraphicsMagick-ldflags.patch
+++ b/GraphicsMagick-ldflags.patch
@@ -1,19 +1,25 @@
--- GraphicsMagick-1.2.4/configure.ac.orig 2008-07-16 22:25:21.838043926 +0200
+++ GraphicsMagick-1.2.4/configure.ac 2008-07-16 22:29:03.030050630 +0200
-@@ -3355,6 +3355,16 @@
+@@ -3355,6 +3355,22 @@
MAGICK_API_CFLAGS=$CFLAGS
MAGICK_API_CPPFLAGS=`echo $MAGICK_API_CPPFLAGS | sed -e 's/ */ /g'`
MAGICK_API_LDFLAGS="-L$LIB_DIR $LDFLAGS"
-++MAGICK_API_LDFLAGS="-L$LIB_DIR"
++MAGICK_API_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_API_LDFLAGS="$MAGICK_API_LDFLAGS $flag"
++ new_LDFLAGS="$new_LDFLAGS $flag"
+ ;;
+ esac
+done
++LDFLAGS="$new_LDFLAGS"
MAGICK_API_DEP_LIBS="$MAGICK_DEP_LIBS"
MAGICK_API_LIBS="-lGraphicsMagick $MAGICK_API_DEP_LIBS"
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/GraphicsMagick.git/commitdiff/77ba35c07adbea8761e2fe78d7314775b258f3c8
More information about the pld-cvs-commit
mailing list