]> git.pld-linux.org Git - packages/gimp.git/blob - gimp.spec
b2b763098790d49c28747c55438866df2edec7a7
[packages/gimp.git] / gimp.spec
1 #
2 # Conditional build:
3 %bcond_without  aalib           # without aa plugin (which requires aalib)
4 %bcond_without  gnomevfs        # without GNOME VFS support
5 %bcond_without  gnome           # convenient alias for gnomevfs
6 %bcond_without  python          # without python plugins
7 %bcond_with     posix_shm       # with POSIX SHM (default is SysV SHM)
8 #
9 %if %{without gnome}
10 %undefine       with_gnomevfs
11 %endif
12 %define mver    2.0
13 Summary:        The GNU Image Manipulation Program
14 Summary(de.UTF-8):      Das GNU-Bildbearbeitungs-Programm
15 Summary(es.UTF-8):      Programa de manipulación de imagen GNU
16 Summary(fr.UTF-8):      Le programme de manipulation d'images de GNU
17 Summary(pl.UTF-8):      Program GNU do manipulacji formatami graficznymi (GIMP)
18 Summary(pt_BR.UTF-8):   Programa de manipulação de imagem GNU
19 Summary(ru.UTF-8):      The GNU Image Manipulation Program
20 Summary(tr.UTF-8):      Çizim, boyama ve görüntü işleme programı
21 Summary(uk.UTF-8):      The GNU Image Manipulation Program
22 Summary(zh_CN.UTF-8):   [图像]GNU图象处理工具
23 Summary(zh_TW.UTF-8):   [圖像]GNU圖象處理工具
24 Name:           gimp
25 Version:        2.4.3
26 Release:        1
27 Epoch:          1
28 License:        GPL
29 Group:          X11/Applications/Graphics
30 Source0:        ftp://ftp.gimp.org/pub/gimp/v2.4/%{name}-%{version}.tar.bz2
31 # Source0-md5:  958988ac02642e2dfda7ad7d045e2a84
32 Patch0:         %{name}-home_etc.patch
33 Patch1:         %{name}-desktop.patch
34 Patch2:         %{name}-gcc4.patch
35 URL:            http://www.gimp.org/
36 %{?with_aalib:BuildRequires:    aalib-devel}
37 BuildRequires:  alsa-lib-devel >= 1.0.11
38 BuildRequires:  autoconf >= 2.54
39 BuildRequires:  automake
40 BuildRequires:  curl-devel >= 7.15.1
41 BuildRequires:  dbus-devel >= 0.70
42 BuildRequires:  gettext-devel
43 BuildRequires:  giflib-devel
44 BuildRequires:  glib2-devel >= 1:2.12.3
45 BuildRequires:  gtk+2-devel >= 2:2.10.13
46 BuildRequires:  gtk-doc >= 1.6
47 BuildRequires:  hal-devel >= 0.5.7
48 BuildRequires:  intltool >= 0.35.0
49 BuildRequires:  lcms-devel
50 BuildRequires:  libart_lgpl-devel
51 BuildRequires:  libexif-devel >= 0.6.15
52 BuildRequires:  libgtkhtml-devel >= 2.6.3
53 BuildRequires:  libjpeg-devel
54 BuildRequires:  libmng-devel
55 BuildRequires:  libpng-devel >= 1.2.12
56 BuildRequires:  librsvg-devel >= 1:2.15.0
57 BuildRequires:  libtiff-devel
58 BuildRequires:  libtool >= 1:1.4.2-9
59 BuildRequires:  libwmf-devel >= 2:0.2.8
60 BuildRequires:  libcap-devel >= 1.10
61 BuildRequires:  pango-devel >= 1:1.12.2
62 BuildRequires:  pkgconfig
63 BuildRequires:  poppler-glib-devel >= 0.6
64 BuildRequires:  rpm-pythonprov
65 BuildRequires:  xorg-lib-libXpm-devel
66 %{?with_python:BuildRequires:   python-pygtk-devel >= 1:2.10.4}
67 %if %{with gnomevfs}
68 BuildRequires:  gnome-keyring-devel >= 0.5.1
69 BuildRequires:  gnome-vfs2-devel >= 2.15.91
70 BuildRequires:  libgnomeui-devel >= 2.15.91
71 %endif
72 Requires(post,postun):  gtk+2 >= 2:2.10.13
73 Requires:       %{name}-libs = %{epoch}:%{version}-%{release}
74 Requires:       curl >= 7.15.1
75 Requires:       glib2 >= 1:2.12.3
76 Requires:       gtk+2 >= 2:2.10.13
77 Requires:       hicolor-icon-theme
78 Requires:       pango >= 1:1.12.2
79 %{?with_python:Requires:        python-pygtk-gtk >= 1:2.10.4}
80 Obsoletes:      gimp-data-min
81 Obsoletes:      gimp-libgimp
82 Obsoletes:      gimp-print
83 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
84
85 %description
86 The GIMP is an image manipulation program suitable for photo
87 retouching, image composition and image authoring. Many people find it
88 extremely useful in creating logos and other graphics for web pages.
89 The GIMP has many of the tools and filters you would expect to find in
90 similar commercial offerings, and some interesting extras as well.
91
92 The GIMP provides a large image manipulation toolbox, including
93 channel operations and layers, effects, sub-pixel imaging and
94 anti-aliasing, and conversions, all with multi-level undo.
95
96 This version of The GIMP includes a scripting facility, but many of
97 the included scripts rely on fonts that we cannot distribute. The GIMP
98 FTP site has a package of fonts that you can install by yourself,
99 which includes all the fonts needed to run the included scripts.
100
101 %description -l es.UTF-8
102 GIMP es un programa de manejo de imágenes adecuado para retoque de
103 fotos, composición y editoración de imágenes. Muchas personas lo
104 encuentran extremamente útil en la creación de logos y otros gráficos
105 para páginas web. GIMP tiene muchas herramientas y filtros normalmente
106 encontrados en aplicaciones comerciales similares, además de
107 características extras bien interesantes. GIMP ofrece una extensa caja
108 de herramientas de manejo de imagen, incluyendo camadas, efectos,
109 formación de imagen subpíxel y antialiasing, conversiones, todos con
110 deshacer en varios niveles (multi-level undo).
111
112 %description -l fr.UTF-8
113 Le Programme de Manipulation d'Image de GNU permet de retoucher des
114 photos, de réaliser des compositions. Beaucoup de gens l'apprécient
115 pour la création de logos et de graphismes pour les pages web. GIMP
116 dispose d'un grand nombre de filtres et de plug-ins que l'on ne trouve
117 que dans les logiciels commerciaux haut de gamme ainsi que de
118 nombreuses fonctionnalité inédites.
119
120 GIMP fournit une boite à outil permettant de gérer plusieurs calques,
121 de nombreux effets, l'anti-aliasing, les conversions de fichiers ainsi
122 qu'un grand nombre de niveaux d'annulation.
123
124 %description -l pl.UTF-8
125 Program GIMP jest przeznaczony do obróbki i tworzenia plików w różnych
126 formatach graficznych. Przy jego użyciu można tworzyć grafikę dla
127 stron WWW, retuszować zdjęcia, czy stworzyć własne logo.
128
129 GIMP dostarcza duży zestaw narzędzi do obróbki obrazów, w tym do
130 operowania na kanałach i warstwach, efektów, antyaliasingu oraz
131 konwersji, a to wszystko z wielopoziomowym cofaniem operacji.
132
133 %description -l pt_BR.UTF-8
134 O GIMP é um programa de manipulação de imagens adequado para retoque
135 de fotos, composição e editoração de imagens. Muitas pessoas o acham
136 extremamente útil na criação de logos e outros gráficos para páginas
137 web. O GIMP tem muitas ferramentas e filtros normalmente encontrados
138 em aplicações comerciais similares, além de características extras bem
139 interessantes.
140
141 O GIMP fornece uma extensa caixa de ferramentas de manipulação de
142 imagem, incluindo camadas, efeitos, formação de imagem subpíxel e
143 anti-aliasing, conversões, todos com desfazimento em vários níveis
144 (multi-level undo).
145
146 %description -l ru.UTF-8
147 GIMP - это программа для создания и обработки изображений. Ее считают
148 исключительно полезной для создания логотипов и другой графики для
149 web-страниц. GIMP имеет множество инструментов и фильтров, которые
150 обычно включаются в аналогичные коммерческие пакеты, а также ряд
151 возможностей, присущих только ей.
152
153 GIMP предоставляет большой набор инструментов для работы с графикой,
154 включающий операции над каналами, слоями, эффекты, sub-pixel imaging и
155 антиалиасинг, всяческие конверторы и все это с многоуровневым откатом.
156
157 GIMP включает поддержку создания сценариев (scripting facility),
158 однако многие из поставляемых с программой сценариев предполагают
159 наличие шрифтов, которые не могут быть включены в дистрибутив.
160 FTP-сайт GIMP содержит пакет шрифтов, которые вы можете поставить
161 самостоятельно, включающий все шрифты, необходимые для работы входящих
162 в комплект сценариев. Некоторые из шрифтов имеют весьма необычные
163 лицензионные требования; все лицензии включены в упомянутый пакет.
164 Скачайте ftp://ftp.gimp.org/pub/gimp/fonts/freefonts-0.10.tar.gz и
165 ftp://ftp.gimp.org/pub/gimp/fonts/sharefonts-0.10.tar.gz, если хотите
166 запускать сценарии без изменений или выберите те шрифты, которые
167 установлены у вас в системе, перед запуском сценариев.
168
169 %description -l uk.UTF-8
170 GIMP - це програма для створення та обробки зображень. Її вважають
171 дуже корисною для створення логотипів та іншої графіки для
172 web-сторінок. GIMP має багато інструментів та фільтрів, які звичайно
173 включаються в аналогічні комерційні пакети, а також ряд можливостей,
174 властивих саме їй.
175
176 GIMP надає великий набір інструментів для роботи з графікою, що
177 включає операції над каналами, шарами (layers), ефекти, sub-pixel
178 imaging і антиаліасинг, різноманітні конвертори і все це з
179 багаторівневим відкатом.
180
181 GIMP має підтримку сценаріїв (scripting facility), проте багато з
182 включених до поставки сценаріїв припускають наявність шрифтів, які не
183 можуть бути включені в дистрибутив. FTP-сайт GIMP містить пакет
184 шрифтів, котрі ви можете встановити самостійно, в який входять всі
185 шрифти, необхідні для роботи сценаріїв з поставки GIMP. Деякі з
186 шрифтів мають вельми незвичайні ліцензійні умови; всі ліцензії
187 включено в згаданий пакет. Завантажте
188 ftp://ftp.gimp.org/pub/gimp/fonts/freefonts-0.10.tar.gz та
189 ftp://ftp.gimp.org/pub/gimp/fonts/sharefonts-0.10.tar.gz. якщо хочете
190 запускати сценарії без змін або ж виберіть встановалені у вас в
191 системі шрифти перед запуском сценаріїв.
192
193 %package libs
194 Summary:        GIMP libraries
195 Summary(pl.UTF-8):      Biblioteki GIMPa
196 Group:          Libraries
197 Requires:       gtk+2 >= 2:2.10.6
198
199 %description libs
200 This package contains GIMP libraries.
201
202 %description libs -l pl.UTF-8
203 Pakiet zawiera biblioteki GIMPa.
204
205 %package devel
206 Summary:        GIMP plugin and extension development kit
207 Summary(de.UTF-8):      GIMP-Plugin und Extension Development Kit
208 Summary(es.UTF-8):      Kit de desarrollo de "plugins" extensiones para GIMP
209 Summary(fr.UTF-8):      Plugin GIMP et kit de développement d'extensions
210 Summary(pl.UTF-8):      Pliki do budowania modułów i rozszerzeń dla GIMPa
211 Summary(pt_BR.UTF-8):   Kit de desenvolvimento de "plugins" extensões para o GIMP
212 Summary(ru.UTF-8):      Инструментарий для разработки плагинов и расширений GIMP
213 Summary(tr.UTF-8):      GIMP plugin ve uzantı geliştirme araçları
214 Summary(uk.UTF-8):      Інструментарій для розробки плагінів та розширень GIMP
215 Summary(zh_CN.UTF-8):   [开发]gimp的开发包
216 Summary(zh_TW.UTF-8):   [開發]gimp的開發包
217 License:        LGPL
218 Group:          X11/Development/Libraries
219 Requires:       %{name}-libs = %{epoch}:%{version}-%{release}
220 Requires:       gtk+2-devel >= 2:2.10.0
221
222 %description devel
223 Header files for writing GIMP plugins and extensions.
224
225 %description devel -l de.UTF-8
226 Header-Dateien zum Schreiben von GIMP-Plugins und -Erweiterungen.
227
228 %description devel -l es.UTF-8
229 Bibliotecas y archivos de inclusión para escribir extensiones y
230 plugins para GIMP.
231
232 %description devel -l pl.UTF-8
233 Pliki nagłówkowe do tworzenia wtyczek i rozszerzeń dla GIMPa.
234
235 %description devel -l pt_BR.UTF-8
236 Bibliotecas e arquivos de inclusão para escrever extensões e plugins
237 para o GIMP.
238
239 %package static
240 Summary:        GIMP static libraries
241 Summary(pl.UTF-8):      Biblioteki statyczne GIMPa
242 Group:          X11/Development/Libraries
243 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
244
245 %description static
246 GIMP static libraries.
247
248 %description static -l es.UTF-8
249 Bibliotecas estáticas para escribir extensiones y plugins para GIMP.
250
251 %description static -l pl.UTF-8
252 Biblioteki statyczne GIMPa.
253
254 %description static -l pt_BR.UTF-8
255 Bibliotecas estáticas para desenvolvimento de plugins e extensões do
256 GIMP.
257
258 %package apidocs
259 Summary:        GIMP API documentation
260 Summary(pl.UTF-8):      Dokumentacja API GIMPa
261 Group:          Documentation
262 Requires:       gtk-doc-common
263
264 %description apidocs
265 GIMP API documentation.
266
267 %description apidocs -l pl.UTF-8
268 Dokumentacja API GIMPa.
269
270 %package aa
271 Summary:        ASCII Art plugin for GIMP
272 Summary(fr.UTF-8):      Plugin d'art ASCII pour GIMP
273 Summary(pl.UTF-8):      Wtyczka do ASCII Art do GIMPa
274 Group:          X11/Applications/Graphics
275 Requires:       %{name} = %{epoch}:%{version}-%{release}
276
277 %description aa
278 This package contains the ASCII Art plugin which requires the aalib
279 shared library.
280
281 %description aa -l fr.UTF-8
282 Ce paquet contient le plugin d'art ASCII qui nécéssite la librairie
283 partagée aalib.
284
285 %description aa -l pl.UTF-8
286 Ten pakiet zawiera wtyczkę do GIMPa ze wsparciem do ASCII Art.
287
288 %package svg
289 Summary:        SVG plugin for GIMP
290 Summary(pl.UTF-8):      Wtyczka SVG dla GIMPa
291 Group:          X11/Applications/Graphics
292 Requires:       %{name} = %{epoch}:%{version}-%{release}
293 Requires:       librsvg >= 2.2.0
294
295 %description svg
296 SVG plugin for GIMP.
297
298 %description svg -l pl.UTF-8
299 Wtyczka SVG dla GIMPa.
300
301 %prep
302 %setup -q
303 %patch0 -p1
304 %patch1 -p1
305 %patch2 -p1
306
307 %build
308 %{__libtoolize}
309 %{__aclocal}
310 %{__autoconf}
311 %{__autoheader}
312 %{__automake}
313 %configure \
314         %{!?with_gnomevfs:--disable-gnomevfs} \
315         --disable-rpath \
316         %{!?with_python: --disable-python} \
317         --enable-mp \
318         --with-html-dir=%{_gtkdocdir} \
319         --enable-default-binary \
320         --enable-static \
321         --enable-gtk-doc \
322         %{?with_posix_shm:--with-shm=posix}
323         
324 %{__make} -j1
325
326 %install
327 rm -rf $RPM_BUILD_ROOT
328
329 %{__make} install \
330         DESTDIR=$RPM_BUILD_ROOT
331
332 ################### end hack ############################
333
334 # Link gimptool to gimptool-2.0
335
336 ln -s gimptool-%{mver} $RPM_BUILD_ROOT%{_bindir}/gimptool
337 echo '.so gimptool-%{mver}' > $RPM_BUILD_ROOT%{_mandir}/man1/gimptool.1
338
339 # Remove obsolete files
340 rm -f $RPM_BUILD_ROOT%{_libdir}/gimp/%{mver}/modules/*.{a,la}
341 rm -f $RPM_BUILD_ROOT%{_libdir}/gimp/%{mver}/python/*.{a,la,py}
342 rm -r $RPM_BUILD_ROOT%{_datadir}/{application-registry,mime-info}
343
344 %find_lang %{name} --all-name
345
346 %clean
347 rm -rf $RPM_BUILD_ROOT
348
349 %post
350 umask 022
351 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1 ||:
352 gtk-update-icon-cache -qf %{_datadir}/icons/hicolor
353
354 %postun
355 umask 022
356 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1
357 gtk-update-icon-cache -qf %{_datadir}/icons/hicolor
358
359 %post   libs -p /sbin/ldconfig
360 %postun libs -p /sbin/ldconfig
361
362 %files -f %{name}.lang
363 %defattr(644,root,root,755)
364 %doc AUTHORS ChangeLog NEWS README
365 %doc docs/Wilber*
366
367 %attr(755,root,root) %{_bindir}/gimp-2.4
368 %attr(755,root,root) %{_bindir}/gimp
369 %attr(755,root,root) %{_bindir}/gimp-console-2.4
370 %attr(755,root,root) %{_bindir}/gimp-console
371 %attr(755,root,root) %{_bindir}/gimp-remote-2.4
372 %attr(755,root,root) %{_bindir}/gimp-remote
373 %{_desktopdir}/gimp.desktop
374 %{_mandir}/man1/gimp-2*
375 %{_mandir}/man1/gimp-remote-2*
376 %{_mandir}/man5/gimprc-2*
377
378 %dir %{_libdir}/gimp
379 %dir %{_libdir}/gimp/%{mver}
380 %dir %{_libdir}/gimp/%{mver}/plug-ins
381 %{_libdir}/gimp/%{mver}/interpreters
382 %attr(755,root,root) %{_libdir}/gimp/%{mver}/plug-ins/*
383 %{?with_aalib:%exclude %{_libdir}/gimp/%{mver}/plug-ins/aa}
384 %exclude %{_libdir}/gimp/%{mver}/plug-ins/svg
385
386 %dir %{_libdir}/gimp/%{mver}/modules
387 %attr(755,root,root) %{_libdir}/gimp/%{mver}/modules/*.so
388 %{_libdir}/gimp/%{mver}/environ
389
390 %if %{with python}
391 %dir %{_libdir}/gimp/%{mver}/python
392 %{_libdir}/gimp/%{mver}/python/*.py[co]
393 %{_libdir}/gimp/%{mver}/python/*.png
394 %attr(755,root,root) %{_libdir}/gimp/%{mver}/python/*.so
395 %endif
396
397 %dir %{_datadir}/gimp
398 %dir %{_datadir}/gimp/%{mver}
399 %{_datadir}/gimp/%{mver}/brushes
400 %{_datadir}/gimp/%{mver}/fractalexplorer
401 %{_datadir}/gimp/%{mver}/gfig
402 %{_datadir}/gimp/%{mver}/gflare
403 %{_datadir}/gimp/%{mver}/gimpressionist
404 %{_datadir}/gimp/%{mver}/gradients
405 %{_datadir}/gimp/%{mver}/images
406 %{_datadir}/gimp/%{mver}/menus
407 %{_datadir}/gimp/%{mver}/palettes
408 %{_datadir}/gimp/%{mver}/patterns
409 %{_datadir}/gimp/%{mver}/scripts
410 %{_datadir}/gimp/%{mver}/themes
411 %{_datadir}/gimp/%{mver}/tips
412
413 %dir %{_sysconfdir}/%{name}
414 %dir %{_sysconfdir}/%{name}/%{mver}
415 %config %verify(not md5 mtime) %{_sysconfdir}/%{name}/%{mver}/gimprc*
416 %config(noreplace) %{_sysconfdir}/%{name}/%{mver}/templaterc
417 %config %{_sysconfdir}/%{name}/%{mver}/controllerrc
418 %config %{_sysconfdir}/%{name}/%{mver}/gtkrc*
419 %config %{_sysconfdir}/%{name}/%{mver}/menurc
420 %config %{_sysconfdir}/%{name}/%{mver}/ps-menurc
421 %config %{_sysconfdir}/%{name}/%{mver}/sessionrc
422 %config %{_sysconfdir}/%{name}/%{mver}/unitrc
423
424 %{_iconsdir}/hicolor/*/apps/gimp.*
425
426 %files libs
427 %defattr(644,root,root,755)
428 %attr(755,root,root) %{_libdir}/lib*.so.*.*
429
430 %files devel
431 %defattr(644,root,root,755)
432 %attr(755,root,root) %{_bindir}/gimptool-%{mver}
433 %attr(755,root,root) %{_bindir}/gimptool
434 %attr(755,root,root) %{_libdir}/lib*.so
435 %{_libdir}/lib*.la
436 %{_pkgconfigdir}/*
437
438 %{_includedir}/gimp-2.0
439 %{_aclocaldir}/gimp-2.0.m4
440
441 %{_mandir}/man1/gimptool-%{mver}*
442 %{_mandir}/man1/gimptool.1*
443
444 %files static
445 %defattr(644,root,root,755)
446 %{_libdir}/lib*.a
447
448 %files apidocs
449 %defattr(644,root,root,755)
450 %{_gtkdocdir}/*
451
452 %if %{with aalib}
453 %files aa
454 %defattr(644,root,root,755)
455 %attr(755,root,root) %{_libdir}/gimp/%{mver}/plug-ins/aa
456 %endif
457
458 %files svg
459 %defattr(644,root,root,755)
460 %attr(755,root,root) %{_libdir}/gimp/%{mver}/plug-ins/svg
This page took 0.069585 seconds and 2 git commands to generate.