]> git.pld-linux.org Git - packages/ImageMagick.git/blob - ImageMagick.spec
- updated to 5.3.5.
[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.5
9 Release:        1
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:  rpm-perlprov >= 3.0.3-18
23 BuildRequires:  XFree86-devel
24 BuildRequires:  XFree86-DPS-devel
25 BuildRequires:  bzip2-devel >= 1.0.1
26 BuildRequires:  freetype-devel >= 2.0.2-2
27 BuildRequires:  libjpeg-devel
28 BuildRequires:  libtiff-devel
29 BuildRequires:  libpng >= 1.0.8
30 BuildRequires:  libstdc++-devel
31 BuildRequires:  libwmf-devel
32 BuildRequires:  libtool
33 BuildRequires:  perl-devel >= 5.6.1
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 libtoolize --copy --force
230 aclocal
231 autoconf
232 automake -a -c
233 %configure \
234         --enable-shared \
235         --enable-lzw \
236         --enable-16bit-pixel \
237         --with-perl \
238         --with-ttf \
239         --with-x \
240         --with-threads \
241         --with-magick_plus_plus
242
243 %{__make} 
244 %{__make} -C Magick++
245
246 %install
247 rm -rf $RPM_BUILD_ROOT
248 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-perl
249
250 %{__make} install \
251         DESTDIR=$RPM_BUILD_ROOT 
252
253 install PerlMagick/demo/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-perl
254
255 gzip -9nf README.txt
256
257 %post   libs -p /sbin/ldconfig
258 %postun libs -p /sbin/ldconfig
259
260 %post   c++ -p /sbin/ldconfig
261 %postun c++ -p /sbin/ldconfig
262
263 %clean
264 rm -rf $RPM_BUILD_ROOT
265
266 %files libs
267 %defattr(644,root,root,755)
268 %attr(755,root,root) %{_libdir}/libMagick.so.*.*
269
270 %files
271 %defattr(644,root,root,755)
272 %dir %{_datadir}/ImageMagick
273 %{_datadir}/ImageMagick/*.mgk
274 %dir %{_libdir}/ImageMagick
275 %{_libdir}/ImageMagick/*.mgk
276
277 %attr(755,root,root) %{_bindir}/animate
278 %attr(755,root,root) %{_bindir}/cgimagick
279 %attr(755,root,root) %{_bindir}/composite
280 %attr(755,root,root) %{_bindir}/convert
281 %attr(755,root,root) %{_bindir}/display
282 %attr(755,root,root) %{_bindir}/identify
283 %attr(755,root,root) %{_bindir}/import
284 %attr(755,root,root) %{_bindir}/iptcutil
285 %attr(755,root,root) %{_bindir}/mogrify
286 %attr(755,root,root) %{_bindir}/montage
287
288 %{_mandir}/man1/[Iacdim]*
289
290 %files devel
291 %defattr(644,root,root,755)
292 %doc images www ImageMagick.html README.txt.gz
293
294 %attr(755,root,root) %{_bindir}/Magick-config
295 %attr(755,root,root) %{_libdir}/libMagick.so
296 %attr(755,root,root) %{_libdir}/libMagick.la
297 %{_includedir}/magick
298
299 %{_mandir}/man[45]/*
300 %{_mandir}/man1/Magick-config.1*
301
302 %files static
303 %defattr(644,root,root,755)
304 %{_libdir}/libMagick.a
305
306 %files perl
307 %defattr(644,root,root,755)
308 %{perl_sitearch}/Image
309 %dir %{perl_sitearch}/auto/Image
310 %dir %{perl_sitearch}/auto/Image/Magick
311 %{perl_sitearch}/auto/Image/Magick/autosplit.ix
312 %{perl_sitearch}/auto/Image/Magick/Magick.bs
313 %attr(755,root,root) %{perl_sitearch}/auto/Image/Magick/Magick.so
314 %{_perlmandir}/man3/Image::Magick.*
315 %{_examplesdir}/%{name}-perl
316
317 %files c++
318 %defattr(644,root,root,755)
319 %attr(755,root,root) %{_libdir}/libMagick++.so.*.*
320
321 %files c++-devel
322 %defattr(644,root,root,755)
323 %attr(755,root,root) %{_bindir}/Magick++-config
324 %attr(755,root,root) %{_libdir}/libMagick++.la
325 %attr(755,root,root) %{_libdir}/libMagick++.so
326 %{_prefix}/include/Magick++
327 %{_prefix}/include/Magick++.h
328 %{_mandir}/man1/Magick++-config.1*
329
330 %files c++-static
331 %defattr(644,root,root,755)
332 %{_libdir}/libMagick++.a
This page took 0.058601 seconds and 4 git commands to generate.