]> git.pld-linux.org Git - packages/ImageMagick.git/blob - ImageMagick.spec
- updated for 5.4.3.
[packages/ImageMagick.git] / ImageMagick.spec
1 %include        /usr/lib/rpm/macros.perl
2 Summary:        Image display, conversion, and manipulation under X
3 Summary(de):    Darstellen, Konvertieren und Bearbeiten von Grafiken unter X
4 Summary(fr):    Visualisation, conversion, et manipulation d'images sous X
5 Summary(pl):    Narzêdzie do wy¶wietlania, konwersji i manipulacji grafikami
6 Summary(tr):    X altýnda resim gösterme, çevirme ve deðiþiklik yapma
7 Name:           ImageMagick
8 Version:        5.4.0
9 Release:        3
10 Epoch:          1
11 License:        Freeware
12 Group:          X11/Applications/Graphics
13 Group(de):      X11/Applikationen/Grafik
14 Group(pl):      X11/Aplikacje/Grafika
15 Group(pt):      X11/Aplicações/Gráficos
16 Source0:        ftp://ftp.simplesystems.org/pub/ImageMagick/%{name}-%{version}.tar.gz
17 Patch0:         %{name}-libpath.patch
18 Patch1:         %{name}-perlpaths.patch
19 Patch2:         %{name}-DESTDIR.patch
20 Patch3:         %{name}-amfix.patch
21 Patch4:         %{name}-libwmf.patch
22 URL:            http://www.imagemagick.org/
23 BuildRequires:  rpm-perlprov >= 3.0.3-18
24 BuildRequires:  bzip2-devel >= 1.0.1
25 BuildRequires:  freetype-devel >= 2.0.2-2
26 BuildRequires:  jbigkit-devel
27 BuildRequires:  libjpeg-devel
28 BuildRequires:  libplot-devel
29 BuildRequires:  libpng >= 1.0.8
30 BuildRequires:  libstdc++-devel
31 BuildRequires:  libtiff-devel
32 BuildRequires:  libtool
33 BuildRequires:  libwmf-devel >= 0.2.0
34 BuildRequires:  libxml2-devel >= 2.0
35 BuildRequires:  mpeg2dec-devel
36 BuildRequires:  perl-devel >= 5.6.1
37 BuildRequires:  XFree86-devel
38 BuildRequires:  XFree86-DPS-devel
39 #BuildRequires: fpx-devel
40 #BuildRequires: hdf5-devel
41 #BuildRequires: jasper-devel
42 #BuildRequires: lcms-devel
43 BuildRequires:  autoconf
44 BuildRequires:  automake >= 1.4d
45 Requires:       %{name}-libs = %{version}
46 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47
48 %define         _prefix         /usr/X11R6
49 %define         _mandir         %{_prefix}/man
50 %define         _includedir     %{_prefix}/include/X11
51 %define         _perlmandir     /usr/share/man
52
53 %description
54 ImageMagick is an image display, conversion, and manipulation tool. It
55 runs under X windows. It is very powerful in terms of it's ability to
56 allow the user to edit images. It can handle many different formats as
57 well.
58
59 %description -l de
60 ImageMagick ist ein Tool zur Bildanzeige, -konvertierung und
61 manipulation, -das unter X-Windows läuft. Es ist enorm leitungsfähig
62 in Bezug auf die Grafikmanipulationsfunktionen, die es dem Anwender
63 bietet, und auf die Vielfalt der unterstützten Formate.
64
65 %description -l fr
66 ImageMagick est un outil d'affichage, de conversion et de manipulation
67 d'images. Il tourne sous X Window et est très puissant en termes de
68 capacité d'édition des images. Il peut aussi gérer de nombreux formats
69 différents.
70
71 %description -l pl
72 ImageMagick jest narzêdziem do manipulacji, konwersji i wy¶wietlania.
73 W sk³ad pakietu wchodz± zarówno narzêdzia X Window jak i do u¿ywania z
74 linii poleceñ umo¿liwiaj±ce edycjê plików graficznych. Narzêdzia z
75 pakietu ImageMagick potrafi± obs³u¿yæ wiele ró¿nych formatów
76 graficznych.
77
78 %description -l tr
79 ImageMagick bir resim gösterme, çevirme ve deðiþiklik yapma
80 programýdýr. X Window pencereleme sistemi altýnda çalýþýr. Kullanýcýya
81 resimler üzerinde deðiþiklik yapma açýsýndan pek çok olanak sunar. Bir
82 çok resim biçimini rahatlýkla kullanabilir.
83
84 %package devel
85 Summary:        Libraries and header files for ImageMagick development
86 Summary(pl):    Biblioteki i pliki nag³ówkowe dla ImageMagick
87 Group:          X11/Development/Libraries
88 Group(de):      X11/Entwicklung/Libraries
89 Group(es):      X11/Desarrollo/Bibliotecas
90 Group(fr):      X11/Development/Librairies
91 Group(pl):      X11/Programowanie/Biblioteki
92 Group(pt_BR):   X11/Desenvolvimento/Bibliotecas
93 Group(ru):      X11/òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
94 Group(uk):      X11/òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
95 Requires:       %{name} = %{version}
96 Requires:       jbigkit-devel
97
98 %description devel
99 This is the ImageMagick development package. It includes header files
100 for use in developing your own applications that make use of the
101 ImageMagick code and/or APIs.
102
103 %description -l de devel
104 Dies ist das ImageMagick-Entwicklerpaket. Es enthält Header-Dateien
105 zum Entwickeln von Anwendungen, die ImageMagick-Code und/oder -APIs
106 nutzen.
107
108 %description -l fr devel
109 Paquetage de développement ImageMagick. Contient les bibliothèques
110 statiques et les en-têtes utilisés pour créer vos propres applications
111 utilisant le code d'ImageMagick et/ou ses APIs.
112
113 %description -l pl devel
114 Pakiet ten zawieraja pliki potrzebne przy kompilowaniu programów
115 wykorzystuj±cych blibliotekê ImageMagick takie jak pliki nag³ówkowe i
116 dokumentacjê niezbêdn± przy pisaniu w³asnych programów z
117 wykorzystaniem API jakie udostêpnia ImageMagick.
118
119 %description -l tr devel
120 Bu paket, ImageMagick uygulama arayüzünü kullanan programlar
121 geliþtirmek için gereken baþlýk dosyalarýný ve kitaplýklarý içerir.
122
123 %package static
124 Summary:        ImageMagick static libraries
125 Summary(pl):    Biblioteki statyczne ImageMagick
126 Group:          X11/Development/Libraries
127 Group(de):      X11/Entwicklung/Libraries
128 Group(es):      X11/Desarrollo/Bibliotecas
129 Group(fr):      X11/Development/Librairies
130 Group(pl):      X11/Programowanie/Biblioteki
131 Group(pt_BR):   X11/Desenvolvimento/Bibliotecas
132 Group(ru):      X11/òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
133 Group(uk):      X11/òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
134 Requires:       %{name}-devel = %{version}
135
136 %description static
137 ImageMagick static libraries.
138
139 %description -l pl static
140 Biblioteki statyczne ImageMagick.
141
142 %package perl
143 Summary:        Libraries and modules for access to ImageMagick from perl
144 Summary(pl):    Biblioteki i modu³y perla dla ImageMagick
145 Group:          Development/Languages/Perl
146 Group(de):      Entwicklung/Sprachen/Perl
147 Group(pl):      Programowanie/Jêzyki/Perl
148 Requires:       %{name}-libs = %{version}
149
150 %description perl
151 This is the ImageMagick perl support package. It perl modules and
152 support files for access to ImageMagick library from perl without
153 unuseful forking or such.
154
155 %description -l pl perl
156 Biblioteki i modu³y umo¿liwiaj±ce korzystanie z ImageMagick z poziomu
157 perla.
158
159 %package libs
160 Summary:        ImageMagick libraries
161 Summary(pl):    Biblioteki ImageMagick
162 Group:          X11/Libraries
163 Group(de):      X11/Libraries
164 Group(es):      X11/Bibliotecas
165 Group(fr):      X11/Librairies
166 Group(pl):      X11/Biblioteki
167 Group(pt_BR):   X11/Bibliotecas
168 Group(ru):      X11/âÉÂÌÉÏÔÅËÉ
169 Group(uk):      X11/â¦Â̦ÏÔÅËÉ
170
171 %description libs
172 ImageMagick libraries.
173
174 %description -l pl libs
175 Biblioteki ImageMagick.
176
177 %package c++
178 Summary:        ImageMagick Magick++ library
179 Summary(pl):    Biblioteka Magick++
180 Group:          X11/Libraries
181 Group(de):      X11/Libraries
182 Group(es):      X11/Bibliotecas
183 Group(fr):      X11/Librairies
184 Group(pl):      X11/Biblioteki
185 Group(pt_BR):   X11/Bibliotecas
186 Group(ru):      X11/âÉÂÌÉÏÔÅËÉ
187 Group(uk):      X11/â¦Â̦ÏÔÅËÉ
188 Requires:       %{name}-libs = %{version}
189
190 %description c++
191 This package contains the Magick++ library, a C++ binding to the
192 ImageMagick graphics manipulation library.
193
194 Install ImageMagick-c++ if you want to use any applications that use
195 Magick++.
196
197 %description -l pl c++
198 Pakiet zawiera bibliotekê Magick++ - interfejs w C++ do biblioteki
199 ImageMagick. Jest potrzebny do uruchamiania programów korzystaj±cych z
200 Magick++.
201
202 %package c++-devel
203 Summary:        C++ bindings for the ImageMagick library
204 Summary(pl):    Pliki nag³ówkowe z interfejsem C++ do ImageMagick
205 Group:          X11/Development/Libraries
206 Group(de):      X11/Entwicklung/Libraries
207 Group(es):      X11/Desarrollo/Bibliotecas
208 Group(fr):      X11/Development/Librairies
209 Group(pl):      X11/Programowanie/Biblioteki
210 Group(pt_BR):   X11/Desenvolvimento/Bibliotecas
211 Group(ru):      X11/òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
212 Group(uk):      X11/òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
213 Requires:       %{name}-c++ = %{version}
214 Requires:       %{name}-devel = %{version}
215
216 %description c++-devel
217 ImageMagick-c++-devel contains header files you'll need to develop
218 ImageMagick applications using the Magick++ C++ bindings. ImageMagick
219 is an image manipulation program.
220
221 If you want to create applications that will use Magick++ code or
222 APIs, you'll need to install ImageMagick-c++-devel, ImageMagick-devel
223 and ImageMagick. You don't need to install it if you just want to use
224 ImageMagick, or if you want to develop/compile applications using the
225 ImageMagick C interface, however.
226
227 %description -l pl c++-devel
228 Pakiet zawiera pliki nag³ówkowe potrzebne do kompilowania programów
229 korzystaj±cych z Magick++.
230
231 %package c++-static
232 Summary:        C++ bindings for the ImageMagick - static library
233 Summary(pl):    Interfejs C++ do ImageMagick - biblioteka statyczna
234 Group:          X11/Development/Libraries
235 Group(de):      X11/Entwicklung/Libraries
236 Group(es):      X11/Desarrollo/Bibliotecas
237 Group(fr):      X11/Development/Librairies
238 Group(pl):      X11/Programowanie/Biblioteki
239 Group(pt_BR):   X11/Desenvolvimento/Bibliotecas
240 Group(ru):      X11/òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
241 Group(uk):      X11/òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
242 Requires:       %{name}-c++-devel = %{version}
243 Requires:       %{name}-devel = %{version}
244
245 %description c++-static
246 C++ bindings for the ImageMagick - static library.
247
248 %description -l pl c++-static
249 Biblioteka Magick++ w wersji statycznej.
250
251 %prep
252 %setup  -q
253 %patch0 -p1
254 %patch1 -p0
255 %patch2 -p1
256 %patch3 -p1
257 %patch4 -p1
258
259 # fix lcms.h include path
260 perl -pi -e 's@lcms/lcms\.h@lcms.h@' magick/transform.c
261 perl -pi -e 's@lcms/lcms\.h@lcms.h@' configure.ac
262
263 %build
264 libtoolize --copy --force
265 aclocal
266 autoconf
267 automake -a -c
268 %configure \
269         --enable-shared \
270         --enable-lzw \
271         --enable-16bit-pixel \
272         --with-perl \
273         --with-ttf \
274         --with-x \
275         --with-hdf \
276         --with-threads \
277         --with-magick_plus_plus
278
279 %{__make} 
280 %{__make} -C Magick++
281
282 %install
283 rm -rf $RPM_BUILD_ROOT
284 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-perl
285
286 %{__make} install \
287         DESTDIR=$RPM_BUILD_ROOT 
288
289 install PerlMagick/demo/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-perl
290
291 gzip -9nf README.txt
292
293 %clean
294 rm -rf $RPM_BUILD_ROOT
295
296 %post   libs -p /sbin/ldconfig
297 %postun libs -p /sbin/ldconfig
298
299 %post   c++ -p /sbin/ldconfig
300 %postun c++ -p /sbin/ldconfig
301
302 %files libs
303 %defattr(644,root,root,755)
304 %attr(755,root,root) %{_libdir}/libMagick.so.*.*
305
306 %files
307 %defattr(644,root,root,755)
308 %dir %{_datadir}/ImageMagick
309 %{_datadir}/ImageMagick/*.mgk
310 %dir %{_libdir}/ImageMagick
311 %{_libdir}/ImageMagick/*.mgk
312
313 %attr(755,root,root) %{_bindir}/animate
314 #%attr(755,root,root) %{_bindir}/cgimagick
315 %attr(755,root,root) %{_bindir}/composite
316 %attr(755,root,root) %{_bindir}/convert
317 %attr(755,root,root) %{_bindir}/display
318 %attr(755,root,root) %{_bindir}/identify
319 %attr(755,root,root) %{_bindir}/import
320 #%attr(755,root,root) %{_bindir}/iptcutil
321 %attr(755,root,root) %{_bindir}/mogrify
322 %attr(755,root,root) %{_bindir}/montage
323
324 %{_mandir}/man1/[Iacdim]*
325
326 %files devel
327 %defattr(644,root,root,755)
328 %doc images www ImageMagick.html README.txt.gz
329
330 %attr(755,root,root) %{_bindir}/Magick-config
331 %attr(755,root,root) %{_libdir}/libMagick.so
332 %attr(755,root,root) %{_libdir}/libMagick.la
333 %{_includedir}/magick
334
335 %{_mandir}/man[45]/*
336 %{_mandir}/man1/Magick-config.1*
337
338 %files static
339 %defattr(644,root,root,755)
340 %{_libdir}/libMagick.a
341
342 %files perl
343 %defattr(644,root,root,755)
344 %{perl_sitearch}/Image
345 %dir %{perl_sitearch}/auto/Image
346 %dir %{perl_sitearch}/auto/Image/Magick
347 %{perl_sitearch}/auto/Image/Magick/autosplit.ix
348 %{perl_sitearch}/auto/Image/Magick/Magick.bs
349 %attr(755,root,root) %{perl_sitearch}/auto/Image/Magick/Magick.so
350 %{_perlmandir}/man3/Image::Magick.*
351 %{_examplesdir}/%{name}-perl
352
353 %files c++
354 %defattr(644,root,root,755)
355 %attr(755,root,root) %{_libdir}/libMagick++.so.*.*
356
357 %files c++-devel
358 %defattr(644,root,root,755)
359 %attr(755,root,root) %{_bindir}/Magick++-config
360 %attr(755,root,root) %{_libdir}/libMagick++.la
361 %attr(755,root,root) %{_libdir}/libMagick++.so
362 %{_prefix}/include/Magick++
363 %{_prefix}/include/Magick++.h
364 %{_mandir}/man1/Magick++-config.1*
365
366 %files c++-static
367 %defattr(644,root,root,755)
368 %{_libdir}/libMagick++.a
This page took 0.747961 seconds and 3 git commands to generate.