9 |
# V E R S I O N P A R T S |
# V E R S I O N P A R T S |
10 |
|
|
11 |
# their "official" version |
# their "official" version |
12 |
%define rversion 6.7.1 |
%define rversion 6.8.1 |
13 |
|
|
14 |
# their "minor" version |
# their "minor" version |
15 |
%define minor_rev 10 |
%define minor_rev 1 |
16 |
|
|
17 |
# some other funny version |
# some other funny version |
18 |
# (aw) from the docs: Versions with Q8 in the name are 8 bits-per-pixel |
# (aw) from the docs: Versions with Q8 in the name are 8 bits-per-pixel |
25 |
# the full file version |
# the full file version |
26 |
%define dversion %{rversion}-%{minor_rev} |
%define dversion %{rversion}-%{minor_rev} |
27 |
|
|
28 |
%define major 4 |
%define major 7 |
29 |
|
|
30 |
%define libname %mklibname magick %{major} |
%define libname %mklibname magick %{major} |
31 |
%define develname %mklibname magick -d |
%define develname %mklibname magick -d |
33 |
Summary: An X application for displaying and manipulating images |
Summary: An X application for displaying and manipulating images |
34 |
Name: imagemagick |
Name: imagemagick |
35 |
Version: %{rversion}.%{minor_rev} |
Version: %{rversion}.%{minor_rev} |
36 |
Release: %mkrel 1 |
Release: %mkrel 2 |
37 |
License: BSD-like |
License: BSD-like |
38 |
Group: Graphics |
Group: Graphics/Editors and Converters |
39 |
URL: http://www.imagemagick.org/ |
URL: http://www.imagemagick.org/ |
40 |
Source0: ftp://gd.tuwien.ac.at/pub/graphics/ImageMagick/ImageMagick-%{dversion}.tar.xz |
Source0: http://www.imagemagick.org/download/ImageMagick-%{dversion}.tar.xz |
41 |
Source1: ImageMagick.pdf.bz2 |
Source1: ImageMagick.pdf.bz2 |
42 |
# re-scaled from ftp://ftp.imagemagick.org/pub/ImageMagick/images/magick-icon.png |
# re-scaled from ftp://ftp.imagemagick.org/pub/ImageMagick/images/magick-icon.png |
43 |
Source10: magick-icon_16x16.png |
Source10: magick-icon_16x16.png |
47 |
Patch0: imagemagick-docdir.diff |
Patch0: imagemagick-docdir.diff |
48 |
#gw fix format strings, but it doesn't work for the perl-Magick |
#gw fix format strings, but it doesn't work for the perl-Magick |
49 |
Patch1: ImageMagick-6.4.8-9-format-strings.patch |
Patch1: ImageMagick-6.4.8-9-format-strings.patch |
50 |
Patch4: ImageMagick-6.4.8-9-includedir.patch |
Patch2: ImageMagick-6.7.4-force-so.patch |
51 |
Patch7: imagemagick-urw.diff |
Patch7: imagemagick-urw.diff |
52 |
Patch17: imagemagick-fpx.diff |
Patch17: imagemagick-fpx.diff |
53 |
Patch19: ImageMagick-libpath.diff |
Patch19: ImageMagick-libpath.diff |
54 |
Patch20: ImageMagick-6.4.8-9-fix-montageimages-test.patch |
Patch20: ImageMagick-6.7.7-9-fix-montageimages-test.patch |
55 |
|
|
56 |
Requires: %{libname} = %{version} |
Requires: %{libname} = %{version} |
57 |
Obsoletes: ImageMagick < 6.3.2.9-6 |
Obsoletes: ImageMagick < 6.3.2.9-6 |
71 |
BuildRequires: libpng-devel |
BuildRequires: libpng-devel |
72 |
BuildRequires: zlib-devel |
BuildRequires: zlib-devel |
73 |
BuildRequires: lcms-devel |
BuildRequires: lcms-devel |
74 |
|
BuildRequires: lcms2-devel |
75 |
|
BuildRequires: fftw-devel |
76 |
BuildRequires: lqr-devel |
BuildRequires: lqr-devel |
77 |
BuildRequires: libltdl-devel |
BuildRequires: libltdl-devel |
78 |
BuildRequires: perl-devel |
BuildRequires: perl-devel |
81 |
BuildRequires: libwmf-devel |
BuildRequires: libwmf-devel |
82 |
BuildRequires: libxml2-devel |
BuildRequires: libxml2-devel |
83 |
BuildRequires: lzma-devel |
BuildRequires: lzma-devel |
84 |
|
BuildRequires: pkgconfig(libwebp) |
85 |
%if !%bootstrap |
%if !%bootstrap |
86 |
BuildRequires: djvulibre-devel |
BuildRequires: djvulibre-devel |
87 |
%endif |
%endif |
88 |
BuildRequires: ghostscript |
BuildRequires: ghostscript |
89 |
|
BuildRequires: subversion |
90 |
BuildConflicts: %{develname} |
BuildConflicts: %{develname} |
91 |
|
|
92 |
%description |
%description |
96 |
|
|
97 |
ImageMagick can make use of the following delegate programs, available as |
ImageMagick can make use of the following delegate programs, available as |
98 |
packages in %{_vendor}: curl enscript ffmpeg ghostscript ghostscript-X gimp |
packages in %{_vendor}: curl enscript ffmpeg ghostscript ghostscript-X gimp |
99 |
gnuplot graphviz html2ps mplayer ncompress netpbm sane-backends tetex-dvips |
gnuplot graphviz html2ps mplayer ncompress netpbm sane-backends texlive-texmf |
100 |
transfig ufraw xdg-utils zip autotrace povray |
transfig ufraw xdg-utils zip autotrace povray |
101 |
|
|
102 |
%package desktop |
%package desktop |
103 |
Summary: ImageMagick menus |
Summary: ImageMagick menus |
104 |
Group: Graphics |
Group: Graphics/Editors and Converters |
105 |
Requires: xterm |
Requires: xterm |
106 |
Obsoletes: ImageMagick-desktop < 6.3.2.9-6 |
Obsoletes: ImageMagick-desktop < 6.3.2.9-6 |
107 |
|
|
112 |
%package -n %{libname} |
%package -n %{libname} |
113 |
Summary: ImageMagick libraries |
Summary: ImageMagick libraries |
114 |
Group: System/Libraries |
Group: System/Libraries |
115 |
|
Provides: %{_lib}magick = %{version} |
116 |
# (Anssi 02/2008): Wrongly named at first, can be removed when major changes again: |
# (Anssi 02/2008): Wrongly named at first, can be removed when major changes again: |
117 |
Obsoletes: %{_lib}magick%{major}.0.0 < %{version}-%{release} |
Obsoletes: %{_lib}magick%{major}.0.0 < %{version}-%{release} |
118 |
|
|
131 |
Obsoletes: ImageMagick-devel |
Obsoletes: ImageMagick-devel |
132 |
Provides: libMagick5-devel = %{version}-%{release} |
Provides: libMagick5-devel = %{version}-%{release} |
133 |
Obsoletes: libMagick5-devel |
Obsoletes: libMagick5-devel |
134 |
|
Conflicts: %{name} < 6.7.5.0-2 |
135 |
# 2006 |
# 2006 |
136 |
Obsoletes: %{mklibname Magick 8.3.2 -d} |
Obsoletes: %{mklibname Magick 8.3.2 -d} |
137 |
# 2007.0 |
# 2007.0 |
155 |
Requires: %{name} = %{version} |
Requires: %{name} = %{version} |
156 |
Provides: perl-Magick = %{version}-%{release} |
Provides: perl-Magick = %{version}-%{release} |
157 |
Obsoletes: perl-Magick |
Obsoletes: perl-Magick |
|
Requires: graphviz |
|
|
Requires: libwmf |
|
158 |
|
|
159 |
%description -n perl-Image-Magick |
%description -n perl-Image-Magick |
160 |
This is the ImageMagick perl support package. It includes perl modules and |
This is the ImageMagick perl support package. It includes perl modules and |
162 |
|
|
163 |
%package doc |
%package doc |
164 |
Summary: %{name} Documentation |
Summary: %{name} Documentation |
165 |
Group: Books/Other |
Group: Documentation |
166 |
Obsoletes: ImageMagick-doc < 6.3.2.9-6 |
Obsoletes: ImageMagick-doc < 6.3.2.9-6 |
167 |
|
BuildArch: noarch |
168 |
|
|
169 |
%description doc |
%description doc |
170 |
This package contains HTML/PDF documentation of %{name}. |
This package contains HTML/PDF documentation of %{name}. |
174 |
%setup -q -n ImageMagick-%{rversion}-%minor_rev |
%setup -q -n ImageMagick-%{rversion}-%minor_rev |
175 |
|
|
176 |
%patch0 -p1 -b .docdir |
%patch0 -p1 -b .docdir |
177 |
#patch1 -p1 |
%patch2 -p0 -b .so |
|
%patch4 -p1 -b .include |
|
178 |
%patch7 -p0 -b .urw |
%patch7 -p0 -b .urw |
179 |
%patch17 -p0 -b .fpx |
%patch17 -p0 -b .fpx |
180 |
%patch19 -p1 -b .libpath |
%patch19 -p1 -b .libpath |
182 |
|
|
183 |
bzcat %{SOURCE1} > ImageMagick.pdf |
bzcat %{SOURCE1} > ImageMagick.pdf |
184 |
install -m 644 %{SOURCE10} %{SOURCE11} %{SOURCE12} %{SOURCE13} . |
install -m 644 %{SOURCE10} %{SOURCE11} %{SOURCE12} %{SOURCE13} . |
185 |
libtoolize --copy --force; aclocal -I m4; autoconf; automake |
autoreconf -fi |
186 |
|
|
187 |
%build |
%build |
188 |
#gw the format-string patch is incomplete: |
#gw the format-string patch is incomplete: |
196 |
%configure2_5x \ |
%configure2_5x \ |
197 |
--docdir=%{_defaultdocdir}/imagemagick \ |
--docdir=%{_defaultdocdir}/imagemagick \ |
198 |
--with-pic \ |
--with-pic \ |
199 |
--enable-shared \ |
--enable-shared --disable-static \ |
200 |
--enable-fast-install \ |
--enable-fast-install \ |
|
--disable-ltdl-install \ |
|
201 |
--with-threads \ |
--with-threads \ |
202 |
--with-magick_plus_plus \ |
--with-magick_plus_plus \ |
203 |
--with-gslib \ |
--with-gslib \ |
207 |
--with-xml \ |
--with-xml \ |
208 |
--without-dps \ |
--without-dps \ |
209 |
--without-windows-font-dir \ |
--without-windows-font-dir \ |
210 |
--without-modules \ |
--with-modules \ |
211 |
--with-perl \ |
--with-perl \ |
212 |
--with-perl-options="INSTALLDIRS=vendor CC='%{__cc} -L$PWD/magick/.libs' LDDLFLAGS='-shared -L$PWD/magick/.libs'" \ |
--with-perl-options="INSTALLDIRS=vendor CC='%{__cc} -L$PWD/magick/.libs' LDDLFLAGS='-shared -L$PWD/magick/.libs'" \ |
213 |
--with-jp2 \ |
--with-jp2 \ |
214 |
--with-gvc \ |
--with-gvc \ |
215 |
--with-lqr |
--with-lqr |
216 |
|
|
|
# without the following, it doesn't build correctly with "make -j 4" |
|
|
perl -lpi -e '$_ .= " magick/libMagickCore.la" if index($_, q($(PERLMAKEFILE))) == 0' Makefile |
|
|
|
|
217 |
# Disable rpath |
# Disable rpath |
218 |
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool |
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool |
219 |
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool |
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool |
235 |
%endif |
%endif |
236 |
|
|
237 |
%install |
%install |
|
rm -rf %{buildroot} |
|
|
|
|
238 |
# (Abel) set LD_RUN_PATH to null, to avoid adding rpath to perlmagick module |
# (Abel) set LD_RUN_PATH to null, to avoid adding rpath to perlmagick module |
239 |
%makeinstall_std LD_RUN_PATH="" pkgdocdir=/installed_docs |
%makeinstall_std LD_RUN_PATH="" pkgdocdir=/installed_docs |
240 |
|
|
242 |
rm -rf installed_docs; mv %{buildroot}/installed_docs . |
rm -rf installed_docs; mv %{buildroot}/installed_docs . |
243 |
|
|
244 |
# Remove unpackaged files |
# Remove unpackaged files |
245 |
rm -f %{buildroot}%{_libdir}/ImageMagick-%{rversion}/modules-%{qlev}/coders/*.a \ |
find %{buildroot} -name '*.la' -delete |
246 |
%{buildroot}%{_libdir}/ImageMagick-%{rversion}/modules-%{qlev}/filters/*.a \ |
|
247 |
%{buildroot}%{_libdir}/libltdl* |
# create compatible symlinks |
248 |
|
ln -s libMagick++-%{qlev}.so %{buildroot}%{_libdir}/libMagick++.so |
249 |
|
ln -s libMagickCore-%{qlev}.so %{buildroot}%{_libdir}/libMagickCore.so |
250 |
|
ln -s libMagickWand-%{qlev}.so %{buildroot}%{_libdir}/libMagickWand.so |
251 |
|
|
252 |
%multiarch_binaries %{buildroot}%{_bindir}/Magick-config |
%multiarch_binaries %{buildroot}%{_bindir}/Magick-config |
253 |
%multiarch_binaries %{buildroot}%{_bindir}/Magick++-config |
%multiarch_binaries %{buildroot}%{_bindir}/Magick++-config |
282 |
Categories=Graphics;Viewer; |
Categories=Graphics;Viewer; |
283 |
EOF |
EOF |
284 |
|
|
|
%clean |
|
|
rm -rf %{buildroot} |
|
|
|
|
285 |
%files |
%files |
|
%defattr(-,root,root) |
|
286 |
%doc README.txt |
%doc README.txt |
287 |
%{_sysconfdir}/ImageMagick |
%{_sysconfdir}/ImageMagick |
288 |
%{_bindir}/animate |
%{_bindir}/animate |
296 |
%{_bindir}/mogrify |
%{_bindir}/mogrify |
297 |
%{_bindir}/montage |
%{_bindir}/montage |
298 |
%{_bindir}/stream |
%{_bindir}/stream |
299 |
%dir %{_libdir}/ImageMagick-%{rversion} |
%{_libdir}/ImageMagick-%{rversion} |
|
%dir %{_libdir}/ImageMagick-%{rversion}/modules-%{qlev} |
|
|
%dir %{_libdir}/ImageMagick-%{rversion}/modules-%{qlev}/coders |
|
300 |
%{_datadir}/ImageMagick-%{rversion} |
%{_datadir}/ImageMagick-%{rversion} |
301 |
%{_mandir}/man1/* |
%{_mandir}/man1/* |
302 |
%{_mandir}/man3/* |
%exclude %{_mandir}/man1/*-config.* |
|
%exclude %{_mandir}/man3/*::*.3pm* |
|
303 |
|
|
304 |
%files desktop |
%files desktop |
|
%defattr(-,root,root) |
|
305 |
%{_datadir}/applications/* |
%{_datadir}/applications/* |
306 |
%{_iconsdir}/%{name}.png |
%{_iconsdir}/%{name}.png |
307 |
%{_liconsdir}/%{name}.png |
%{_liconsdir}/%{name}.png |
309 |
%{_iconsdir}/hicolor/64x64/apps/%{name}.png |
%{_iconsdir}/hicolor/64x64/apps/%{name}.png |
310 |
|
|
311 |
%files -n %{libname} |
%files -n %{libname} |
312 |
%defattr(-,root,root,0755) |
%{_libdir}/libMagick++-%{qlev}.so.%{major}* |
313 |
%{_libdir}/libMagick++.so.%{major}* |
%{_libdir}/libMagickCore-%{qlev}.so.%{major}* |
314 |
%{_libdir}/libMagickCore.so.%{major}* |
%{_libdir}/libMagickWand-%{qlev}.so.%{major}* |
|
%{_libdir}/libMagickWand.so.%{major}* |
|
315 |
|
|
316 |
%files -n %{develname} |
%files -n %{develname} |
|
%defattr(-,root,root) |
|
317 |
%{_includedir}/ImageMagick |
%{_includedir}/ImageMagick |
318 |
%multiarch %{multiarch_bindir}/Magick-config |
%multiarch %{multiarch_bindir}/Magick-config |
319 |
%multiarch %{multiarch_bindir}/Magick++-config |
%multiarch %{multiarch_bindir}/Magick++-config |
328 |
%{_bindir}/MagickCore-config |
%{_bindir}/MagickCore-config |
329 |
%{_bindir}/MagickWand-config |
%{_bindir}/MagickWand-config |
330 |
%{_bindir}/Wand-config |
%{_bindir}/Wand-config |
|
%attr(0644,root,root) %{_libdir}/*.a |
|
|
%attr(0644,root,root) %{_libdir}/*.la |
|
331 |
%{_libdir}/*.so |
%{_libdir}/*.so |
332 |
%{_libdir}/pkgconfig/*.pc |
%{_libdir}/pkgconfig/*.pc |
333 |
|
%{_mandir}/man1/*-config.* |
334 |
|
|
335 |
%files -n perl-Image-Magick |
%files -n perl-Image-Magick |
|
%defattr(-,root,root) |
|
336 |
%{perl_vendorarch}/Image |
%{perl_vendorarch}/Image |
337 |
%{perl_vendorarch}/auto/Image |
%{perl_vendorarch}/auto/Image |
338 |
%{_mandir}/man3*/*::*.3pm* |
%{_mandir}/man3*/*::*.3pm* |
339 |
|
|
340 |
%files doc |
%files doc |
|
%defattr(-,root,root) |
|
341 |
%doc ImageMagick.pdf ChangeLog LICENSE NEWS* NOTICE |
%doc ImageMagick.pdf ChangeLog LICENSE NEWS* NOTICE |
342 |
%doc QuickStart.txt installed_docs/* |
%doc QuickStart.txt installed_docs/* |
|
|
|
|
|
|