/[packages]/updates/3/imagemagick/current/SPECS/imagemagick.spec
ViewVC logotype

Annotation of /updates/3/imagemagick/current/SPECS/imagemagick.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 331107 - (hide annotations) (download)
Sat Dec 15 15:05:55 2012 UTC (6 years, 7 months ago) by fwang
Original Path: cauldron/imagemagick/current/SPECS/imagemagick.spec
File size: 10800 byte(s)
new version 6.8.0-10
1 pterjan 5387 %define build_test 0
2     %{?_with_test: %{expand: %%global build_test 1}}
3     %{?_without_test: %{expand: %%global build_test 0}}
4    
5 mikala 17591 %define bootstrap 1
6 pterjan 5387 %{?_without_bootstrap: %global bootstrap 0}
7     %{?_with_bootstrap: %global bootstrap 1}
8    
9     # V E R S I O N P A R T S
10    
11     # their "official" version
12 fwang 305056 %define rversion 6.8.0
13 pterjan 5387
14     # their "minor" version
15 fwang 331107 %define minor_rev 10
16 pterjan 5387
17     # some other funny version
18     # (aw) from the docs: Versions with Q8 in the name are 8 bits-per-pixel
19     # component (e.g. 8-bit red, 8-bit green, etc.), whereas, Q16 in the
20     # filename are 16 bits-per-pixel component. A Q16 version permits you
21     # to read or write 16-bit images without losing precision but requires
22     # twice as much resources as the Q8 version.
23     %define qlev Q16
24    
25     # the full file version
26     %define dversion %{rversion}-%{minor_rev}
27    
28 fwang 330722 %define major 7
29 pterjan 5387
30     %define libname %mklibname magick %{major}
31     %define develname %mklibname magick -d
32    
33     Summary: An X application for displaying and manipulating images
34     Name: imagemagick
35     Version: %{rversion}.%{minor_rev}
36 fwang 331107 Release: %mkrel 1
37 pterjan 5387 License: BSD-like
38 fwang 299623 Group: Graphics/Editors
39 pterjan 5387 URL: http://www.imagemagick.org/
40 fwang 173006 Source0: ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick-%{dversion}.tar.xz
41 pterjan 5387 Source1: ImageMagick.pdf.bz2
42     # re-scaled from ftp://ftp.imagemagick.org/pub/ImageMagick/images/magick-icon.png
43     Source10: magick-icon_16x16.png
44     Source11: magick-icon_32x32.png
45     Source12: magick-icon_48x48.png
46     Source13: magick-icon_64x64.png
47 fwang 247736 Patch0: imagemagick-docdir.diff
48 pterjan 5387 #gw fix format strings, but it doesn't work for the perl-Magick
49 sander85 104679 Patch1: ImageMagick-6.4.8-9-format-strings.patch
50 fwang 201771 Patch2: ImageMagick-6.7.4-force-so.patch
51 pterjan 5387 Patch7: imagemagick-urw.diff
52     Patch17: imagemagick-fpx.diff
53     Patch19: ImageMagick-libpath.diff
54 fwang 263796 Patch20: ImageMagick-6.7.7-9-fix-montageimages-test.patch
55 sander85 104679
56 pterjan 5387 Requires: %{libname} = %{version}
57     Obsoletes: ImageMagick < 6.3.2.9-6
58     Provides: ImageMagick = %{version}-%{release}
59 sander85 104679
60 fwang 108147 BuildRequires: libx11-devel
61     BuildRequires: libxext-devel
62     BuildRequires: bzip2-devel
63     BuildRequires: cairo-devel
64     BuildRequires: fontconfig-devel
65     BuildRequires: freetype2-devel >= 2.1.7
66     BuildRequires: chrpath
67     BuildRequires: graphviz-devel >= 2.9.0
68     BuildRequires: libjasper-devel
69     BuildRequires: libjbig-devel
70     BuildRequires: libjpeg-devel
71     BuildRequires: libpng-devel
72     BuildRequires: zlib-devel
73     BuildRequires: lcms-devel
74 fwang 263802 BuildRequires: lcms2-devel
75     BuildRequires: fftw-devel
76 fwang 108147 BuildRequires: lqr-devel
77     BuildRequires: libltdl-devel
78     BuildRequires: perl-devel
79     BuildRequires: librsvg-devel
80     BuildRequires: tiff-devel
81     BuildRequires: libwmf-devel
82     BuildRequires: libxml2-devel
83     BuildRequires: lzma-devel
84 fwang 305058 BuildRequires: pkgconfig(libwebp)
85 pterjan 5387 %if !%bootstrap
86 fwang 108147 BuildRequires: djvulibre-devel
87 pterjan 5387 %endif
88 fwang 108147 BuildRequires: ghostscript
89 blino 251908 BuildRequires: subversion
90 fwang 108147 BuildConflicts: %{develname}
91 pterjan 5387
92     %description
93     ImageMagick is a powerful image display, conversion and manipulation tool. It
94     runs in an X session. With this tool, you can view, edit and display a variety
95     of image formats.
96    
97     ImageMagick can make use of the following delegate programs, available as
98 ahmad 99994 packages in %{_vendor}: curl enscript ffmpeg ghostscript ghostscript-X gimp
99 obgr_seneca 206612 gnuplot graphviz html2ps mplayer ncompress netpbm sane-backends texlive-texmf
100 pterjan 5387 transfig ufraw xdg-utils zip autotrace povray
101    
102     %package desktop
103     Summary: ImageMagick menus
104 fwang 303128 Group: Graphics/Editors
105 pterjan 5387 Requires: xterm
106     Obsoletes: ImageMagick-desktop < 6.3.2.9-6
107    
108     %description desktop
109     This package contains the menu and .desktop entries to run the "display"
110     command from the menu.
111    
112     %package -n %{libname}
113     Summary: ImageMagick libraries
114     Group: System/Libraries
115 fwang 330720 Provides: %{_lib}magick = %{version}
116 pterjan 5387 # (Anssi 02/2008): Wrongly named at first, can be removed when major changes again:
117     Obsoletes: %{_lib}magick%{major}.0.0 < %{version}-%{release}
118    
119     %description -n %{libname}
120     This package contains the libraries needed to run programs dynamically linked
121     with ImageMagick libraries.
122    
123     %package -n %{develname}
124     Summary: Static libraries and header files for ImageMagick app development
125     Group: Development/C
126     Requires: %{libname} = %{version}
127     Provides: %{name}-devel = %{version}-%{release}
128     Provides: ImageMagick-devel = %{version}-%{release}
129     Provides: libmagick-devel = %{version}-%{release}
130     Provides: libMagick-devel = %{version}-%{release}
131     Obsoletes: ImageMagick-devel
132     Provides: libMagick5-devel = %{version}-%{release}
133     Obsoletes: libMagick5-devel
134 fwang 202834 Conflicts: %{name} < 6.7.5.0-2
135 pterjan 5387 # 2006
136     Obsoletes: %{mklibname Magick 8.3.2 -d}
137     # 2007.0
138     Obsoletes: %{mklibname magick 10.4.0 -d} %{mklibname Magick 10.4.0 -d}
139     # 2007.1/2008.0
140     Obsoletes: %{mklibname magick 10.7.0 -d} %{mklibname Magick 10.7.0 -d}
141     # pre 2008.1
142     Obsoletes: %{mklibname magick 10.9.0 -d} %{mklibname Magick 10.9.0 -d}
143    
144     %description -n %{develname}
145     If you want to create applications that will use ImageMagick code or APIs,
146     you'll need to install these packages as well as ImageMagick. These additional
147     packages aren't necessary if you simply want to use ImageMagick, however.
148    
149     ImageMagick-devel is an addition to ImageMagick which includes static libraries
150     and header files necessary to develop applications.
151    
152     %package -n perl-Image-Magick
153     Summary: Libraries and modules for access to ImageMagick from perl
154     Group: Development/Perl
155     Requires: %{name} = %{version}
156     Provides: perl-Magick = %{version}-%{release}
157     Obsoletes: perl-Magick
158    
159     %description -n perl-Image-Magick
160     This is the ImageMagick perl support package. It includes perl modules and
161     support files for access to ImageMagick library from perl.
162    
163     %package doc
164     Summary: %{name} Documentation
165 fwang 303128 Group: Documentation
166 pterjan 5387 Obsoletes: ImageMagick-doc < 6.3.2.9-6
167 tv 137819 BuildArch: noarch
168 pterjan 5387
169     %description doc
170     This package contains HTML/PDF documentation of %{name}.
171    
172     %prep
173    
174     %setup -q -n ImageMagick-%{rversion}-%minor_rev
175    
176 fwang 247736 %patch0 -p1 -b .docdir
177 fwang 201771 %patch2 -p0 -b .so
178 pterjan 5387 %patch7 -p0 -b .urw
179     %patch17 -p0 -b .fpx
180     %patch19 -p1 -b .libpath
181     %patch20 -p1 -b .ppc
182    
183     bzcat %{SOURCE1} > ImageMagick.pdf
184     install -m 644 %{SOURCE10} %{SOURCE11} %{SOURCE12} %{SOURCE13} .
185 blino 251918 autoreconf -fi
186 pterjan 5387
187     %build
188     #gw the format-string patch is incomplete:
189     %define Werror_cflags %nil
190     export CFLAGS="%{optflags} -fno-strict-aliasing -fPIC"
191     export CXXFLAGS="%{optflags} -fno-strict-aliasing -fPIC"
192    
193     # don't use icecream
194 fwang 108147 export PATH=/bin:/usr/bin
195 pterjan 5387
196     %configure2_5x \
197     --docdir=%{_defaultdocdir}/imagemagick \
198     --with-pic \
199 fwang 147713 --enable-shared --disable-static \
200 pterjan 5387 --enable-fast-install \
201     --with-threads \
202     --with-magick_plus_plus \
203     --with-gslib \
204     --with-wmf \
205     --with-lcms \
206     --with-rsvg \
207     --with-xml \
208     --without-dps \
209     --without-windows-font-dir \
210 fwang 185989 --with-modules \
211 pterjan 5387 --with-perl \
212     --with-perl-options="INSTALLDIRS=vendor CC='%{__cc} -L$PWD/magick/.libs' LDDLFLAGS='-shared -L$PWD/magick/.libs'" \
213     --with-jp2 \
214     --with-gvc \
215     --with-lqr
216    
217     # Disable rpath
218     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
220    
221     %make
222    
223     %if %{build_test}
224     %check
225     # these tests require X
226     if [ -f PerlMagick/t/x11/read.t ]; then
227     mv PerlMagick/t/x11/read.t PerlMagick/t/x11/read.t.disabled
228     fi
229     if [ -f PerlMagick/t/x11/write.t ]; then
230     mv PerlMagick/t/x11/write.t PerlMagick/t/x11/write.t.disabled
231     fi
232     #dlname=`grep "^dlname" Magick++/lib/.libs/libMagick++.la | cut -d\' -f2`
233     #LD_PRELOAD="$PWD/Magick++/lib/.libs/$dlname" VERBOSE="1" make check
234     make check
235     %endif
236    
237     %install
238     # (Abel) set LD_RUN_PATH to null, to avoid adding rpath to perlmagick module
239     %makeinstall_std LD_RUN_PATH="" pkgdocdir=/installed_docs
240    
241     # fix docs inclusion (fix an unknown new rpm bug)
242     rm -rf installed_docs; mv %{buildroot}/installed_docs .
243    
244     # Remove unpackaged files
245 fwang 201771 find %{buildroot} -name '*.la' -delete
246 pterjan 5387
247 fwang 330735 # 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 pterjan 5387 %multiarch_binaries %{buildroot}%{_bindir}/Magick-config
253     %multiarch_binaries %{buildroot}%{_bindir}/Magick++-config
254     %multiarch_binaries %{buildroot}%{_bindir}/MagickCore-config
255     %multiarch_binaries %{buildroot}%{_bindir}/MagickWand-config
256     %multiarch_binaries %{buildroot}%{_bindir}/Wand-config
257 fwang 247735 %multiarch_includes %{buildroot}%{_includedir}/ImageMagick/magick/magick-config.h
258 pterjan 5387
259     # nuke rpath
260     chrpath -d %{buildroot}%{perl_vendorarch}/auto/Image/Magick/Magick.so
261    
262     # icons
263     install -m 755 -d %{buildroot}%{_liconsdir} \
264     %{buildroot}%{_iconsdir} \
265     %{buildroot}%{_iconsdir}/hicolor/64x64/apps \
266     %{buildroot}%{_miconsdir}
267     install -m 644 magick-icon_16x16.png %{buildroot}%{_miconsdir}/%{name}.png
268     install -m 644 magick-icon_32x32.png %{buildroot}%{_iconsdir}/%{name}.png
269     install -m 644 magick-icon_48x48.png %{buildroot}%{_liconsdir}/%{name}.png
270     install -m 644 magick-icon_64x64.png %{buildroot}%{_iconsdir}/hicolor/64x64/apps/%{name}.png
271    
272    
273     install -m 755 -d %{buildroot}%{_datadir}/applications/
274 wally 91746 cat > %{buildroot}%{_datadir}/applications/%{_real_vendor}-%{name}.desktop << EOF
275 pterjan 5387 [Desktop Entry]
276     Name=ImageMagick
277     Comment=Views Graphics files
278     Exec=%{_bindir}/xterm -geometry 40x15 -title ImageMagick +sb -iconic -e %{_bindir}/display
279     Icon=%{name}
280     Terminal=false
281     Type=Application
282 fwang 108147 Categories=Graphics;Viewer;
283 pterjan 5387 EOF
284    
285     %files
286     %doc README.txt
287 fwang 108147 %{_sysconfdir}/ImageMagick
288 pterjan 5387 %{_bindir}/animate
289     %{_bindir}/compare
290     %{_bindir}/composite
291     %{_bindir}/convert
292     %{_bindir}/conjure
293     %{_bindir}/display
294     %{_bindir}/identify
295     %{_bindir}/import
296     %{_bindir}/mogrify
297     %{_bindir}/montage
298     %{_bindir}/stream
299 fwang 185989 %{_libdir}/ImageMagick-%{rversion}
300 pterjan 5387 %{_datadir}/ImageMagick-%{rversion}
301     %{_mandir}/man1/*
302 fwang 202834 %exclude %{_mandir}/man1/*-config.*
303 pterjan 5387
304     %files desktop
305     %{_datadir}/applications/*
306     %{_iconsdir}/%{name}.png
307     %{_liconsdir}/%{name}.png
308     %{_miconsdir}/%{name}.png
309     %{_iconsdir}/hicolor/64x64/apps/%{name}.png
310    
311     %files -n %{libname}
312 fwang 330723 %{_libdir}/libMagick++-%{qlev}.so.%{major}*
313     %{_libdir}/libMagickCore-%{qlev}.so.%{major}*
314     %{_libdir}/libMagickWand-%{qlev}.so.%{major}*
315 pterjan 5387
316     %files -n %{develname}
317 fwang 247735 %{_includedir}/ImageMagick
318 pterjan 5387 %multiarch %{multiarch_bindir}/Magick-config
319     %multiarch %{multiarch_bindir}/Magick++-config
320     %multiarch %{multiarch_bindir}/MagickCore-config
321     %multiarch %{multiarch_bindir}/MagickWand-config
322     %multiarch %{multiarch_bindir}/Wand-config
323 fwang 247735 %multiarch %dir %{multiarch_includedir}/ImageMagick
324     %multiarch %dir %{multiarch_includedir}/ImageMagick/magick
325     %multiarch %{multiarch_includedir}/ImageMagick/magick/magick-config.h
326 pterjan 5387 %{_bindir}/Magick-config
327     %{_bindir}/Magick++-config
328     %{_bindir}/MagickCore-config
329     %{_bindir}/MagickWand-config
330     %{_bindir}/Wand-config
331     %{_libdir}/*.so
332     %{_libdir}/pkgconfig/*.pc
333 fwang 202834 %{_mandir}/man1/*-config.*
334 pterjan 5387
335     %files -n perl-Image-Magick
336     %{perl_vendorarch}/Image
337     %{perl_vendorarch}/auto/Image
338     %{_mandir}/man3*/*::*.3pm*
339    
340     %files doc
341     %doc ImageMagick.pdf ChangeLog LICENSE NEWS* NOTICE
342     %doc QuickStart.txt installed_docs/*

  ViewVC Help
Powered by ViewVC 1.1.26