Remi wrote:I will have a look to this.
Even if I don't see this as a bug. Installation some X related libraries is not really an issue.
But my main concern is to provide a full featured version if ImageMagick and php-pecl-imagick, and I prefer to have some big dependencies rather than missing feature.
And according to the bug report, it seems to be more a libsvg issue than an ImageMagick one.
I looked at it a bit. Building without requiring X you need to lose the rsvg, wmf and xml configure options. Each of them require X libraries, but you are right librsvg2 brings in the majority of them. This is what I was testing:
--- ImageMagick2.spec 2009-09-05 07:27:48.000000000 -0700
+++ ImageMagick2noX.spec 2011-09-12 00:18:54.000000000 -0700
@@ -7,9 +7,9 @@
%endif
-Name: ImageMagick2
+Name: ImageMagick2noX
Version: %{VER}.%{Patchlevel}
-Release: 1%{?dist}
+Release: 1.gs%{?dist}
Summary: An X application for displaying and manipulating images
Group: Applications/Multimedia
License: ImageMagick
@@ -17,6 +17,10 @@
Source0: ftp://ftp.ImageMagick.org/pub/ImageMagick/ImageMagick-%{VER}-%{Patchlevel}.tar.bz2
Patch1: ImageMagick-6.4.0-multilib.patch
+#Added to be able to be used as an alternative to ImageMagick2
+Conflicts: ImageMagick2
+Provides: ImageMagick2-%{version}
+
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: bzip2-devel, freetype-devel, libjpeg-devel, libpng-devel
BuildRequires: libtiff-devel, giflib-devel, zlib-devel
@@ -29,9 +33,14 @@
%if %{withdjvu}
BuildRequires: djvulibre-devel
%endif
-BuildRequires: libwmf-devel, jasper-devel, libtool-ltdl-devel
-BuildRequires: libX11-devel, libXext-devel, libXt-devel
-BuildRequires: lcms-devel, libxml2-devel, librsvg2-devel
+#Commented out for with-x=no
+#BuildRequires: libwmf-devel
+BuildRequires: jasper-devel, libtool-ltdl-devel
+#Commented out for with-x=no
+#BuildRequires: libX11-devel, libXext-devel, libXt-devel
+BuildRequires: lcms-devel
+#Commented out for with-x=no
+#BuildRequires: libxml2-devel, librsvg2-devel
%description
ImageMagick is an image display and manipulation tool for the X
@@ -41,23 +50,24 @@
either save the completed work in the original format or a different
one.
-ImageMagick2 can be installed with ImageMagick official RPM.
+ImageMagick2noX can be installed with ImageMagick official RPM.
Command line programs for creating animated or transparent .gifs,
creating composite images, creating thumbnail images, and more are
-included in ImageMagick2-tools package.
+included in ImageMagick2noX-tools package.
-ImageMagick2 is one of your choices if you need a program to manipulate
-and display images. If you want to develop your own applications
-which use ImageMagick code or APIs, you need to install
-ImageMagick2-devel as well.
+ImageMagick2noX is one of your choices if you need a program to
+manipulate and display images. If you want to develop your own
+applications which use ImageMagick code or APIs, you need to install
+ImageMagick2noX-devel as well.
%package devel
Summary: Library links and header files for ImageMagick app development
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
-Requires: libX11-devel, libXext-devel, libXt-devel
+#Commented out for with-x=no
+#Requires: libX11-devel, libXext-devel, libXt-devel
Requires: ghostscript-devel
Requires: bzip2-devel
Requires: freetype-devel
@@ -172,14 +182,11 @@
--disable-static \
--with-modules \
--with-perl \
- --with-x \
+ --with-x=no \
--with-threads \
--with-magick_plus_plus \
--with-gslib \
- --with-wmf \
--with-lcms \
- --with-rsvg \
- --with-xml \
--with-perl-options="INSTALLDIRS=vendor %{?perl_prefix} CC='%__cc -L$PWD/magick/.libs' LDDLFLAGS='-shared -L$PWD/magick/.libs'" \
--without-dps \
--without-included-ltdl --with-ltdl-include=%{_includedir} \
@@ -338,6 +345,11 @@
%changelog
+* Sat Sep 11 2011 Greg Swallow <greg@runlevel7.ca> - 6.5.5.6-1
+- renamed to ImageMagick2noX
+- changed configure to configure without x and disabled xml, wmf
+ and rsvg as those required X
+
* Sat Sep 05 2009 Remi Collet <RPMS@FamilleCollet.com> - 6.5.5.6-1
- patch level 6