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