| 1 | Summary: ImageMagick® is a software suite to create, edit, and compose bitmap images. It can read, convert and write images in a variety of formats (about 200) including GIF, JPEG, JPEG-2000, PNG, PDF, PhotoCD, TIFF, and DPX. Use ImageMagick to translate, flip, mirror, rotate, scale, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves. |
|---|
| 2 | Name: ImageMagick |
|---|
| 3 | Version: 6.3.5 |
|---|
| 4 | Release: 10 |
|---|
| 5 | License: Apache-style |
|---|
| 6 | Group: Applications/Multimedia |
|---|
| 7 | Source: ftp://ftp.imagemagick.org/pub/ImageMagick/%{name}/%{name}-%{version}.tar.bz2 |
|---|
| 8 | Url: http://www.imagemagick.org/ |
|---|
| 9 | Buildroot: %{_tmppath}/%{name}-%{version}-root |
|---|
| 10 | BuildPrereq: bzip2-devel, freetype2-devel, libjpeg-devel, libpng-devel |
|---|
| 11 | BuildPrereq: libtiff-devel, zlib-devel, perl |
|---|
| 12 | BuildRequires: freetype-devel >= 1.0.2 |
|---|
| 13 | BuildRequires: automake >= 1.7 autoconf >= 2.58 libtool >= 1.5 |
|---|
| 14 | BuildRequires: ghostscript-devel |
|---|
| 15 | BuildRequires: libwmf-devel |
|---|
| 16 | BuildRequires: XFree86-devel |
|---|
| 17 | %define _unpackaged_files_terminate_build 0 |
|---|
| 18 | |
|---|
| 19 | %description |
|---|
| 20 | ImageMagick® is a software suite to create, edit, and compose bitmap images. It can read, convert and write images in a variety of formats (about 100) including DPX, GIF, JPEG, JPEG-2000, PDF, PhotoCD, PNG, Postscript, SVG, and TIFF. Use ImageMagick to translate, flip, mirror, rotate, scale, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves. |
|---|
| 21 | |
|---|
| 22 | The functionality of ImageMagick is typically utilized from the command line or you can use the features from programs written in your favorite programming language. Choose from these interfaces: G2F (Ada), MagickCore (C), MagickWand (C), ChMagick (Ch), Magick++ (C++), JMagick (Java), L-Magick (Lisp), nMagick (Neko/haXe), PascalMagick (Pascal), PerlMagick (Perl), MagickWand for PHP (PHP), PythonMagick (Python), RMagick (Ruby), or TclMagick (Tcl/TK). With a language interface, use ImageMagick to modify or create images automagically and dynamically. |
|---|
| 23 | |
|---|
| 24 | ImageMagick is free software delivered as a ready-to-run binary distribution or as source code that you can freely use, copy, modify, and distribute. Its license is compatible with the GPL. It runs on all major operating systems. |
|---|
| 25 | |
|---|
| 26 | %package devel |
|---|
| 27 | Summary: Static libraries and header files for ImageMagick application development. |
|---|
| 28 | Group: Development/Libraries |
|---|
| 29 | Requires: %{name} = %{version}-%{release} |
|---|
| 30 | Requires: XFree86-devel |
|---|
| 31 | Requires: ghostscript-devel |
|---|
| 32 | |
|---|
| 33 | %description devel |
|---|
| 34 | ImageMagick-devel contains the static libraries and header files you'll need to develop ImageMagick applications. ImageMagick is an image manipulation program. |
|---|
| 35 | |
|---|
| 36 | If you want to create applications that will use ImageMagick code or APIs, you need to install ImageMagick-devel as well as ImageMagick. You do not need to install it if you just want to use ImageMagick, |
|---|
| 37 | however. |
|---|
| 38 | |
|---|
| 39 | %package perl |
|---|
| 40 | Summary: ImageMagick Perl bindings |
|---|
| 41 | Group: System Environment/Libraries |
|---|
| 42 | Requires: %{name} = %{version}-%{release} |
|---|
| 43 | Requires: perl >= 5.6.0 |
|---|
| 44 | %define perl_vendorarch %(perl -MConfig -le 'print $Config{installvendorarch}') |
|---|
| 45 | Prereq: %{perl_vendorarch} |
|---|
| 46 | |
|---|
| 47 | %description perl |
|---|
| 48 | Perl bindings to ImageMagick. |
|---|
| 49 | |
|---|
| 50 | Install ImageMagick-perl if you want to use any Perl scripts that use ImageMagick. |
|---|
| 51 | |
|---|
| 52 | %package c++ |
|---|
| 53 | Summary: ImageMagick Magick++ library (C++ bindings) |
|---|
| 54 | Group: System Environment/Libraries |
|---|
| 55 | Requires: %{name} = %{version}-%{release} |
|---|
| 56 | |
|---|
| 57 | %description c++ |
|---|
| 58 | This package contains the Magick++ library, a C++ binding to the ImageMagick graphics manipulation library. |
|---|
| 59 | |
|---|
| 60 | Install ImageMagick-c++ if you want to use any applications that use Magick++. |
|---|
| 61 | |
|---|
| 62 | %package c++-devel |
|---|
| 63 | Summary: C++ bindings for the ImageMagick library |
|---|
| 64 | Group: Development/Libraries |
|---|
| 65 | Requires: %{name}-c++ = %{version} |
|---|
| 66 | Requires: %{name}-devel = %{version} |
|---|
| 67 | |
|---|
| 68 | %description c++-devel |
|---|
| 69 | ImageMagick-devel contains the static libraries and header files you'll need to develop ImageMagick applications using the Magick++ C++ bindings. ImageMagick is an image manipulation program. |
|---|
| 70 | |
|---|
| 71 | If you want to create applications that will use Magick++ code or APIs, you'll need to install ImageMagick-c++-devel, ImageMagick-devel and ImageMagick. You don't need to install it if you just want to use ImageMagick, or if you want to develop/compile applications using the ImageMagick C interface, however. |
|---|
| 72 | |
|---|
| 73 | %prep |
|---|
| 74 | %setup -q -n %{name}-%{version} |
|---|
| 75 | %define _docdir %{_usr}/share/doc |
|---|
| 76 | |
|---|
| 77 | %build |
|---|
| 78 | %define optflags -O2 -g -pipe -Wall |
|---|
| 79 | %configure --enable-shared \ |
|---|
| 80 | --with-modules \ |
|---|
| 81 | --with-perl \ |
|---|
| 82 | --with-x \ |
|---|
| 83 | --with-threads \ |
|---|
| 84 | --with-magick_plus_plus \ |
|---|
| 85 | --with-perl-options="INSTALLDIRS=vendor %{?perl_prefix} CC='%__cc -L$PWD/magick/.libs' LD='%__ld -L$PWD/magick/.libs'" |
|---|
| 86 | |
|---|
| 87 | make |
|---|
| 88 | |
|---|
| 89 | %install |
|---|
| 90 | rm -rf $RPM_BUILD_ROOT |
|---|
| 91 | |
|---|
| 92 | make install DESTDIR=$RPM_BUILD_ROOT |
|---|
| 93 | |
|---|
| 94 | # perlmagick: fix perl path of demo files |
|---|
| 95 | %{__perl} -MExtUtils::MakeMaker -e 'MY->fixin(@ARGV)' PerlMagick/demo/*.pl |
|---|
| 96 | |
|---|
| 97 | find $RPM_BUILD_ROOT -name "*.bs" |xargs rm -f |
|---|
| 98 | find $RPM_BUILD_ROOT -name ".packlist" |xargs rm -f |
|---|
| 99 | find $RPM_BUILD_ROOT -name "perllocal.pod" |xargs rm -f |
|---|
| 100 | |
|---|
| 101 | # perlmagick: build files list |
|---|
| 102 | echo "%defattr(-,root,root)" > perl-pkg-files |
|---|
| 103 | find $RPM_BUILD_ROOT/%{_libdir}/perl* -type f -print | \ |
|---|
| 104 | sed "s@^$RPM_BUILD_ROOT@@g" > perl-pkg-files |
|---|
| 105 | find $RPM_BUILD_ROOT%{perl_vendorarch} -type d -print | \ |
|---|
| 106 | sed "s@^$RPM_BUILD_ROOT@%dir @g" | \ |
|---|
| 107 | grep -v '^%dir %{perl_vendorarch}$' | \ |
|---|
| 108 | grep -v '/auto$' >> perl-pkg-files |
|---|
| 109 | if [ -z perl-pkg-files ] ; then |
|---|
| 110 | echo "ERROR: EMPTY FILE LIST" |
|---|
| 111 | exit -1 |
|---|
| 112 | fi |
|---|
| 113 | |
|---|
| 114 | rm -rf $RPM_BUILD_ROOT%{_libdir}/ImageMagick |
|---|
| 115 | # Keep config |
|---|
| 116 | rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}/[a-b,d-z,A-Z]* |
|---|
| 117 | rm -rf $RPM_BUILD_ROOT%{_libdir}/libltdl.* |
|---|
| 118 | rm -f $RPM_BUILD_ROOT%{_libdir}/ImageMagick-*/modules*/*/*.a |
|---|
| 119 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.la |
|---|
| 120 | |
|---|
| 121 | # link docs |
|---|
| 122 | ln -sf %{_docdir}/%{name}-%{version} $RPM_BUILD_ROOT%{_libdir}/ImageMagick-%{version}/doc |
|---|
| 123 | |
|---|
| 124 | %clean |
|---|
| 125 | rm -rf $RPM_BUILD_ROOT |
|---|
| 126 | |
|---|
| 127 | %post -p /sbin/ldconfig |
|---|
| 128 | |
|---|
| 129 | %post c++ -p /sbin/ldconfig |
|---|
| 130 | |
|---|
| 131 | %postun -p /sbin/ldconfig |
|---|
| 132 | |
|---|
| 133 | %postun c++ -p /sbin/ldconfig |
|---|
| 134 | |
|---|
| 135 | %files |
|---|
| 136 | %defattr(-,root,root) |
|---|
| 137 | %doc index.html www/ images/ |
|---|
| 138 | %doc QuickStart.txt ChangeLog Platforms.txt |
|---|
| 139 | %doc README.txt LICENSE NOTICE AUTHORS NEWS |
|---|
| 140 | %attr(755,root,root) %{_libdir}/libMagick.so.* |
|---|
| 141 | %attr(755,root,root) %{_libdir}/libWand.so.* |
|---|
| 142 | %{_bindir}/[a-z]* |
|---|
| 143 | %{_libdir}/ImageMagick* |
|---|
| 144 | %{_datadir}/ImageMagick* |
|---|
| 145 | %{_mandir}/man[145]/[a-z]* |
|---|
| 146 | %{_mandir}/man1/ImageMagick.* |
|---|
| 147 | |
|---|
| 148 | %files devel |
|---|
| 149 | %defattr(-,root,root) |
|---|
| 150 | %{_bindir}/Magick-config |
|---|
| 151 | %{_bindir}/Wand-config |
|---|
| 152 | %{_libdir}/libMagick.a |
|---|
| 153 | %{_libdir}/libMagick.so |
|---|
| 154 | %{_libdir}/libWand.a |
|---|
| 155 | %{_libdir}/libWand.so |
|---|
| 156 | %{_libdir}/pkgconfig/ImageMagick.pc |
|---|
| 157 | %{_libdir}/pkgconfig/Wand.pc |
|---|
| 158 | %{_includedir}/magick |
|---|
| 159 | %{_includedir}/wand |
|---|
| 160 | %{_mandir}/man1/Magick-config.* |
|---|
| 161 | %{_mandir}/man1/Wand-config.* |
|---|
| 162 | |
|---|
| 163 | %files c++ |
|---|
| 164 | %defattr(-,root,root) |
|---|
| 165 | %{_libdir}/libMagick++.so.* |
|---|
| 166 | |
|---|
| 167 | %files c++-devel |
|---|
| 168 | %defattr(-,root,root) |
|---|
| 169 | %{_bindir}/Magick++-config |
|---|
| 170 | %{_includedir}/Magick++ |
|---|
| 171 | %{_includedir}/Magick++.h |
|---|
| 172 | %{_libdir}/libMagick++.a |
|---|
| 173 | %{_libdir}/libMagick++.so |
|---|
| 174 | %{_libdir}/pkgconfig/ImageMagick++.pc |
|---|
| 175 | %{_mandir}/man1/Magick++-config.* |
|---|
| 176 | |
|---|
| 177 | %files perl -f perl-pkg-files |
|---|
| 178 | %defattr(-,root,root) |
|---|
| 179 | %{_mandir}/man3/* |
|---|
| 180 | %doc PerlMagick/demo/ PerlMagick/Changelog PerlMagick/README.txt |
|---|
| 181 | |
|---|
| 182 | %changelog |
|---|
| 183 | * Sun May 01 2005 Cristy <cristy@mystic.es.dupont.com> 1.0-0 |
|---|
| 184 | * Port of Redhat's RPM script to support ImageMagick. |
|---|