]> git.pld-linux.org Git - packages/ImageMagick.git/blob - ImageMagick.spec
- revert some automatically performed changes in %files for c++-devel.
[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.6
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}-libwmf.patch
19 Patch3:         %{name}-perl-link.patch
20 Patch4:         %{name}-DESTDIR.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.
69 W 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
95 zum Entwickeln von Anwendungen, die ImageMagick-Code und/oder -APIs
96 nutzen.
97
98 %description -l fr devel
99 Paquetage de développement ImageMagick. Contient les bibliothèques
100 statiques et les en-têtes utilisés pour créer vos propres applications
101 utilisant le code d'ImageMagick et/ou ses APIs.
102
103 %description -l pl devel
104 Pakiet ten zawieraja pliki potrzebne przy kompilowaniu programów
105 wykorzystuj±cych blibliotekê ImageMagick takie jak pliki nag³ówkowe i
106 dokumentacjê niezbêdn± przy pisaniu w³asnych programów z
107 wykorzystaniem API jakie udostêpnia ImageMagick.
108
109 %description -l tr devel
110 Bu paket, ImageMagick uygulama arayüzünü kullanan programlar
111 geliþtirmek için gereken baþlýk dosyalarýný ve kitaplýklarý içerir.
112
113 %package static
114 Summary:        ImageMagick static libraries
115 Summary(pl):    Biblioteki statyczne ImageMagick
116 Group:          X11/Development/Libraries
117 Group(de):      X11/Entwicklung/Libraries
118 Group(pl):      X11/Programowanie/Biblioteki
119 Requires:       %{name}-devel = %{version}
120
121 %description static
122 ImageMagick static libraries.
123
124 %description -l pl devel
125 Biblioteki statyczne ImageMagick.
126
127 %package perl
128 Summary:        libraries and modules for access to ImageMagick from perl
129 Summary(pl):    Biblioteki i modu³y perl dla ImageMagick
130 Group:          Development/Languages/Perl
131 Group(de):      Entwicklung/Sprachen/Perl
132 Group(pl):      Programowanie/Jêzyki/Perl
133 Requires:       %{name}-libs = %{version}
134
135 %description perl
136 This is the ImageMagick perl support package. It perl modules and
137 support files for access to ImageMagick library from perl without
138 unuseful forking or such.
139
140 %description -l pl perl
141 Biblioteki i modu³y umo¿liwiaj±ce korzystanie z ImageMagick z poziomu
142 perla.
143
144 %package libs
145 Summary:        ImageMagick libraries
146 Summary(pl):    Biblioteki ImageMagick
147 Group:          X11/Libraries
148 Group(de):      X11/Libraries
149 Group(es):      X11/Bibliotecas
150 Group(fr):      X11/Librairies
151 Group(pl):      X11/Biblioteki
152
153 %description libs
154 ImageMagick libraries.
155
156 %description -l pl libs
157 Biblioteki ImageMagick.
158
159 %package c++
160 Summary:        ImageMagick Magick++ library
161 Summary(pl):    Biblioteka Magick++
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 Requires:       %{name}-libs = %{version}
168
169 %description c++
170 This package contains the Magick++ library, a C++ binding to the
171 ImageMagick graphics manipulation library.
172
173 Install ImageMagick-c++ if you want to use any applications that use
174 Magick++.
175
176 %description -l pl c++
177 Pakiet zawiera bibliotekê Magick++ - interfejs w C++ do biblioteki
178 ImageMagick. Jest potrzebny do uruchamiania programów korzystaj±cych z
179 Magick++.
180
181 %package c++-devel
182 Summary:        C++ bindings for the ImageMagick library
183 Summary(pl):    Pliki nag³ówkowe z interfejsem C++ do ImageMagick
184 Group:          X11/Development/Libraries
185 Group(de):      X11/Entwicklung/Libraries
186 Group(pl):      X11/Programowanie/Biblioteki
187 Requires:       %{name}-c++ = %{version}
188 Requires:       %{name}-devel = %{version}
189
190 %description c++-devel
191 ImageMagick-c++-devel contains header files you'll need to develop
192 ImageMagick applications using the Magick++ C++ bindings. ImageMagick
193 is an image manipulation program.
194
195 If you want to create applications that will use Magick++ code or
196 APIs, you'll need to install ImageMagick-c++-devel, ImageMagick-devel
197 and ImageMagick. You don't need to install it if you just want to use
198 ImageMagick, or if you want to develop/compile applications using the
199 ImageMagick C interface, however.
200
201 %description -l pl c++-devel
202 Pakiet zawiera pliki nag³ówkowe potrzebne do kompilowania programów
203 korzystaj±cych z Magick++.
204
205 %package c++-static
206 Summary:        C++ bindings for the ImageMagick - static library
207 Summary(pl):    Interfejs C++ do ImageMagick - biblioteka statyczna
208 Group:          X11/Development/Libraries
209 Group(de):      X11/Entwicklung/Libraries
210 Group(pl):      X11/Programowanie/Biblioteki
211 Requires:       %{name}-c++-devel = %{version}
212 Requires:       %{name}-devel = %{version}
213
214 %description c++-static
215 C++ bindings for the ImageMagick - static library.
216
217 %description -l pl c++-static
218 Biblioteka Magick++ w wersji statycznej.
219
220 %prep
221 %setup  -q
222 %patch0 -p1
223 %patch1 -p0
224 %patch2 -p1
225 %patch3 -p1
226 %patch4 -p1
227
228 # fix typo
229 perl -pi -e 's@htmlc\.@html.c@' coders/Makefile.am
230 # fix lcms.h include path
231 perl -pi -e 's@lcms/lcms\.h@lcms.h@' magick/transform.c
232
233 %build
234 libtoolize --copy --force
235 aclocal
236 autoconf
237 automake -a -c
238 %configure \
239         --enable-shared \
240         --enable-lzw \
241         --enable-16bit-pixel \
242         --with-perl \
243         --with-ttf \
244         --with-x \
245         --with-threads \
246         --with-magick_plus_plus
247
248 %{__make} 
249 %{__make} -C Magick++
250
251 %install
252 rm -rf $RPM_BUILD_ROOT
253 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-perl
254
255 %{__make} install \
256         DESTDIR=$RPM_BUILD_ROOT 
257
258 install PerlMagick/demo/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-perl
259
260 gzip -9nf README.txt
261
262 %post   libs -p /sbin/ldconfig
263 %postun libs -p /sbin/ldconfig
264
265 %post   c++ -p /sbin/ldconfig
266 %postun c++ -p /sbin/ldconfig
267
268 %clean
269 rm -rf $RPM_BUILD_ROOT
270
271 %files libs
272 %defattr(644,root,root,755)
273 %attr(755,root,root) %{_libdir}/libMagick.so.*.*
274
275 %files
276 %defattr(644,root,root,755)
277 %dir %{_datadir}/ImageMagick
278 %{_datadir}/ImageMagick/*.mgk
279 %dir %{_libdir}/ImageMagick
280 %{_libdir}/ImageMagick/*.mgk
281
282 %attr(755,root,root) %{_bindir}/animate
283 %attr(755,root,root) %{_bindir}/cgimagick
284 %attr(755,root,root) %{_bindir}/composite
285 %attr(755,root,root) %{_bindir}/convert
286 %attr(755,root,root) %{_bindir}/display
287 %attr(755,root,root) %{_bindir}/identify
288 %attr(755,root,root) %{_bindir}/import
289 %attr(755,root,root) %{_bindir}/iptcutil
290 %attr(755,root,root) %{_bindir}/mogrify
291 %attr(755,root,root) %{_bindir}/montage
292
293 %{_mandir}/man1/[Iacdim]*
294
295 %files devel
296 %defattr(644,root,root,755)
297 %doc images www ImageMagick.html README.txt.gz
298
299 %attr(755,root,root) %{_bindir}/Magick-config
300 %attr(755,root,root) %{_libdir}/libMagick.so
301 %attr(755,root,root) %{_libdir}/libMagick.la
302 %{_includedir}/magick
303
304 %{_mandir}/man[45]/*
305 %{_mandir}/man1/Magick-config.1*
306
307 %files static
308 %defattr(644,root,root,755)
309 %{_libdir}/libMagick.a
310
311 %files perl
312 %defattr(644,root,root,755)
313 %{perl_sitearch}/Image
314 %dir %{perl_sitearch}/auto/Image
315 %dir %{perl_sitearch}/auto/Image/Magick
316 %{perl_sitearch}/auto/Image/Magick/autosplit.ix
317 %{perl_sitearch}/auto/Image/Magick/Magick.bs
318 %attr(755,root,root) %{perl_sitearch}/auto/Image/Magick/Magick.so
319 %{_perlmandir}/man3/Image::Magick.*
320 %{_examplesdir}/%{name}-perl
321
322 %files c++
323 %defattr(644,root,root,755)
324 %attr(755,root,root) %{_libdir}/libMagick++.so.*.*
325
326 %files c++-devel
327 %defattr(644,root,root,755)
328 %attr(755,root,root) %{_bindir}/Magick++-config
329 %attr(755,root,root) %{_libdir}/libMagick++.la
330 %attr(755,root,root) %{_libdir}/libMagick++.so
331 %{_prefix}/include/Magick++
332 %{_prefix}/include/Magick++.h
333 %{_mandir}/man1/Magick++-config.1*
334
335 %files c++-static
336 %defattr(644,root,root,755)
337 %{_libdir}/libMagick++.a
This page took 0.064493 seconds and 4 git commands to generate.