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