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)
10 %undefine with_gnomevfs
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圖象處理工具
29 Group: X11/Applications/Graphics
30 Source0: ftp://ftp.gimp.org/pub/gimp/v2.4/%{name}-%{version}.tar.bz2
31 # Source0-md5: ebd8902d29753d41c8d51a3efd84d1bf
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: pango-devel >= 1:1.12.2
61 BuildRequires: pkgconfig
62 BuildRequires: poppler-glib-devel >= 0.6
63 BuildRequires: rpm-pythonprov
64 BuildRequires: xorg-lib-libXpm-devel
65 %{?with_python:BuildRequires: python-pygtk-devel >= 1:2.10.4}
67 BuildRequires: gnome-keyring-devel >= 0.5.1
68 BuildRequires: gnome-vfs2-devel >= 2.15.91
69 BuildRequires: libgnomeui-devel >= 2.15.91
71 Requires(post,postun): gtk+2 >= 2:2.10.13
72 Requires: %{name}-libs = %{epoch}:%{version}-%{release}
73 Requires: curl >= 7.15.1
74 Requires: glib2 >= 1:2.12.3
75 Requires: gtk+2 >= 2:2.10.13
76 Requires: hicolor-icon-theme
77 Requires: pango >= 1:1.12.2
78 %{?with_python:Requires: python-pygtk-gtk >= 1:2.10.4}
79 Obsoletes: gimp-data-min
80 Obsoletes: gimp-libgimp
82 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
85 The GIMP is an image manipulation program suitable for photo
86 retouching, image composition and image authoring. Many people find it
87 extremely useful in creating logos and other graphics for web pages.
88 The GIMP has many of the tools and filters you would expect to find in
89 similar commercial offerings, and some interesting extras as well.
91 The GIMP provides a large image manipulation toolbox, including
92 channel operations and layers, effects, sub-pixel imaging and
93 anti-aliasing, and conversions, all with multi-level undo.
95 This version of The GIMP includes a scripting facility, but many of
96 the included scripts rely on fonts that we cannot distribute. The GIMP
97 FTP site has a package of fonts that you can install by yourself,
98 which includes all the fonts needed to run the included scripts.
100 %description -l es.UTF-8
101 GIMP es un programa de manejo de imágenes adecuado para retoque de
102 fotos, composición y editoración de imágenes. Muchas personas lo
103 encuentran extremamente útil en la creación de logos y otros gráficos
104 para páginas web. GIMP tiene muchas herramientas y filtros normalmente
105 encontrados en aplicaciones comerciales similares, además de
106 características extras bien interesantes. GIMP ofrece una extensa caja
107 de herramientas de manejo de imagen, incluyendo camadas, efectos,
108 formación de imagen subpíxel y antialiasing, conversiones, todos con
109 deshacer en varios niveles (multi-level undo).
111 %description -l fr.UTF-8
112 Le Programme de Manipulation d'Image de GNU permet de retoucher des
113 photos, de réaliser des compositions. Beaucoup de gens l'apprécient
114 pour la création de logos et de graphismes pour les pages web. GIMP
115 dispose d'un grand nombre de filtres et de plug-ins que l'on ne trouve
116 que dans les logiciels commerciaux haut de gamme ainsi que de
117 nombreuses fonctionnalité inédites.
119 GIMP fournit une boite à outil permettant de gérer plusieurs calques,
120 de nombreux effets, l'anti-aliasing, les conversions de fichiers ainsi
121 qu'un grand nombre de niveaux d'annulation.
123 %description -l pl.UTF-8
124 Program GIMP jest przeznaczony do obróbki i tworzenia plików w różnych
125 formatach graficznych. Przy jego użyciu można tworzyć grafikę dla
126 stron WWW, retuszować zdjęcia, czy stworzyć własne logo.
128 GIMP dostarcza duży zestaw narzędzi do obróbki obrazów, w tym do
129 operowania na kanałach i warstwach, efektów, antyaliasingu oraz
130 konwersji, a to wszystko z wielopoziomowym cofaniem operacji.
132 %description -l pt_BR.UTF-8
133 O GIMP é um programa de manipulação de imagens adequado para retoque
134 de fotos, composição e editoração de imagens. Muitas pessoas o acham
135 extremamente útil na criação de logos e outros gráficos para páginas
136 web. O GIMP tem muitas ferramentas e filtros normalmente encontrados
137 em aplicações comerciais similares, além de características extras bem
140 O GIMP fornece uma extensa caixa de ferramentas de manipulação de
141 imagem, incluindo camadas, efeitos, formação de imagem subpíxel e
142 anti-aliasing, conversões, todos com desfazimento em vários níveis
145 %description -l ru.UTF-8
146 GIMP - это программа для создания и обработки изображений. Ее считают
147 исключительно полезной для создания логотипов и другой графики для
148 web-страниц. GIMP имеет множество инструментов и фильтров, которые
149 обычно включаются в аналогичные коммерческие пакеты, а также ряд
150 возможностей, присущих только ей.
152 GIMP предоставляет большой набор инструментов для работы с графикой,
153 включающий операции над каналами, слоями, эффекты, sub-pixel imaging и
154 антиалиасинг, всяческие конверторы и все это с многоуровневым откатом.
156 GIMP включает поддержку создания сценариев (scripting facility),
157 однако многие из поставляемых с программой сценариев предполагают
158 наличие шрифтов, которые не могут быть включены в дистрибутив.
159 FTP-сайт GIMP содержит пакет шрифтов, которые вы можете поставить
160 самостоятельно, включающий все шрифты, необходимые для работы входящих
161 в комплект сценариев. Некоторые из шрифтов имеют весьма необычные
162 лицензионные требования; все лицензии включены в упомянутый пакет.
163 Скачайте ftp://ftp.gimp.org/pub/gimp/fonts/freefonts-0.10.tar.gz и
164 ftp://ftp.gimp.org/pub/gimp/fonts/sharefonts-0.10.tar.gz, если хотите
165 запускать сценарии без изменений или выберите те шрифты, которые
166 установлены у вас в системе, перед запуском сценариев.
168 %description -l uk.UTF-8
169 GIMP - це програма для створення та обробки зображень. Її вважають
170 дуже корисною для створення логотипів та іншої графіки для
171 web-сторінок. GIMP має багато інструментів та фільтрів, які звичайно
172 включаються в аналогічні комерційні пакети, а також ряд можливостей,
175 GIMP надає великий набір інструментів для роботи з графікою, що
176 включає операції над каналами, шарами (layers), ефекти, sub-pixel
177 imaging і антиаліасинг, різноманітні конвертори і все це з
178 багаторівневим відкатом.
180 GIMP має підтримку сценаріїв (scripting facility), проте багато з
181 включених до поставки сценаріїв припускають наявність шрифтів, які не
182 можуть бути включені в дистрибутив. FTP-сайт GIMP містить пакет
183 шрифтів, котрі ви можете встановити самостійно, в який входять всі
184 шрифти, необхідні для роботи сценаріїв з поставки GIMP. Деякі з
185 шрифтів мають вельми незвичайні ліцензійні умови; всі ліцензії
186 включено в згаданий пакет. Завантажте
187 ftp://ftp.gimp.org/pub/gimp/fonts/freefonts-0.10.tar.gz та
188 ftp://ftp.gimp.org/pub/gimp/fonts/sharefonts-0.10.tar.gz. якщо хочете
189 запускати сценарії без змін або ж виберіть встановалені у вас в
190 системі шрифти перед запуском сценаріїв.
193 Summary: GIMP libraries
194 Summary(pl.UTF-8): Biblioteki GIMPa
196 Requires: gtk+2 >= 2:2.10.6
199 This package contains GIMP libraries.
201 %description libs -l pl.UTF-8
202 Pakiet zawiera biblioteki GIMPa.
205 Summary: GIMP plugin and extension development kit
206 Summary(de.UTF-8): GIMP-Plugin und Extension Development Kit
207 Summary(es.UTF-8): Kit de desarrollo de "plugins" extensiones para GIMP
208 Summary(fr.UTF-8): Plugin GIMP et kit de développement d'extensions
209 Summary(pl.UTF-8): Pliki do budowania modułów i rozszerzeń dla Gimpa
210 Summary(pt_BR.UTF-8): Kit de desenvolvimento de "plugins" extensões para o GIMP
211 Summary(ru.UTF-8): Инструментарий для разработки плагинов и расширений GIMP
212 Summary(tr.UTF-8): GIMP plugin ve uzantı geliştirme araçları
213 Summary(uk.UTF-8): Інструментарій для розробки плагінів та розширень GIMP
214 Summary(zh_CN.UTF-8): [开发]gimp的开发包
215 Summary(zh_TW.UTF-8): [開發]gimp的開發包
217 Group: X11/Development/Libraries
218 Requires: %{name}-libs = %{epoch}:%{version}-%{release}
219 Requires: gtk-doc-common
220 Requires: gtk+2-devel >= 2:2.10.0
223 Header files for writing GIMP plugins and extensions.
225 %description devel -l de.UTF-8
226 Header-Dateien zum Schreiben von GIMP-Plugins und -Erweiterungen.
228 %description devel -l es.UTF-8
229 Bibliotecas y archivos de inclusión para escribir extensiones y
232 %description devel -l pl.UTF-8
233 Pliki nagłówkowe do tworzenia wtyczek i rozszerzeń dla Gimpa.
235 %description devel -l pt_BR.UTF-8
236 Bibliotecas e arquivos de inclusão para escrever extensões e plugins
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}
246 GIMP static libraries.
248 %description static -l es.UTF-8
249 Bibliotecas estáticas para escribir extensiones y plugins para Gimp.
251 %description static -l pl.UTF-8
252 Biblioteki statyczne Gimpa.
254 %description static -l pt_BR.UTF-8
255 Bibliotecas estáticas para desenvolvimento de plugins e extensões do
259 Summary: ASCII Art plugin for Gimp
260 Summary(fr.UTF-8): Plugin d'art ASCII pour Gimp
261 Summary(pl.UTF-8): Wtyczka do ASCII Art do Gimpa
262 Group: X11/Applications/Graphics
263 Requires: %{name} = %{epoch}:%{version}-%{release}
266 This package contains the ASCII Art plugin which requires the aalib
269 %description aa -l fr.UTF-8
270 Ce paquet contient le plugin d'art ASCII qui nécéssite la librairie
273 %description aa -l pl.UTF-8
274 Ten pakiet zawiera wtyczkę do Gimpa ze wsparciem do ASCII Art.
277 Summary: SVG plugin for Gimp
278 Summary(pl.UTF-8): Wtyczka SVG dla Gimpa
279 Group: X11/Applications/Graphics
280 Requires: %{name} = %{epoch}:%{version}-%{release}
281 Requires: librsvg >= 2.2.0
286 %description svg -l pl.UTF-8
287 Wtyczka SVG dla Gimpa.
302 %{!?with_gnomevfs:--disable-gnomevfs} \
304 %{!?with_python: --disable-python} \
306 --with-html-dir=%{_gtkdocdir} \
307 --enable-default-binary \
310 %{?with_posix_shm:--with-shm=posix}
315 rm -rf $RPM_BUILD_ROOT
318 DESTDIR=$RPM_BUILD_ROOT
320 ################### end hack ############################
322 # Link gimptool to gimptool-2.0
324 ln -s gimptool-%{mver} $RPM_BUILD_ROOT%{_bindir}/gimptool
325 echo '.so gimptool-%{mver}' > $RPM_BUILD_ROOT%{_mandir}/man1/gimptool.1
327 # Remove obsolete files
328 rm -f $RPM_BUILD_ROOT%{_libdir}/gimp/%{mver}/modules/*.{a,la}
329 rm -f $RPM_BUILD_ROOT%{_libdir}/gimp/%{mver}/python/*.{a,la,py}
330 rm -r $RPM_BUILD_ROOT%{_datadir}/{application-registry,mime-info}
332 %find_lang %{name} --all-name
335 rm -rf $RPM_BUILD_ROOT
339 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1 ||:
340 gtk-update-icon-cache -qf %{_datadir}/icons/hicolor
344 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1
345 gtk-update-icon-cache -qf %{_datadir}/icons/hicolor
347 %post libs -p /sbin/ldconfig
348 %postun libs -p /sbin/ldconfig
350 %files -f %{name}.lang
351 %defattr(644,root,root,755)
352 %doc AUTHORS ChangeLog NEWS README
355 %attr(755,root,root) %{_bindir}/gimp-2.4
356 %attr(755,root,root) %{_bindir}/gimp
357 %attr(755,root,root) %{_bindir}/gimp-console-2.4
358 %attr(755,root,root) %{_bindir}/gimp-remote-2.4
359 %attr(755,root,root) %{_bindir}/gimp-remote
360 %{_desktopdir}/gimp.desktop
361 %{_mandir}/man1/gimp-2*
362 %{_mandir}/man1/gimp-remote-2*
363 %{_mandir}/man5/gimprc-2*
366 %dir %{_libdir}/gimp/%{mver}
367 %dir %{_libdir}/gimp/%{mver}/plug-ins
368 %{_libdir}/gimp/%{mver}/interpreters
369 %attr(755,root,root) %{_libdir}/gimp/%{mver}/plug-ins/*
370 %{?with_aalib:%exclude %{_libdir}/gimp/%{mver}/plug-ins/aa}
371 %exclude %{_libdir}/gimp/%{mver}/plug-ins/svg
373 %dir %{_libdir}/gimp/%{mver}/modules
374 %attr(755,root,root) %{_libdir}/gimp/%{mver}/modules/*.so
375 %{_libdir}/gimp/%{mver}/environ
378 %dir %{_libdir}/gimp/%{mver}/python
379 %{_libdir}/gimp/%{mver}/python/*.py[co]
380 %{_libdir}/gimp/%{mver}/python/*.png
381 %attr(755,root,root) %{_libdir}/gimp/%{mver}/python/*.so
384 %dir %{_datadir}/gimp
385 %dir %{_datadir}/gimp/%{mver}
386 %{_datadir}/gimp/%{mver}/brushes
387 %{_datadir}/gimp/%{mver}/fractalexplorer
388 %{_datadir}/gimp/%{mver}/gfig
389 %{_datadir}/gimp/%{mver}/gflare
390 %{_datadir}/gimp/%{mver}/gimpressionist
391 %{_datadir}/gimp/%{mver}/gradients
392 %{_datadir}/gimp/%{mver}/images
393 %{_datadir}/gimp/%{mver}/menus
394 %{_datadir}/gimp/%{mver}/palettes
395 %{_datadir}/gimp/%{mver}/patterns
396 %{_datadir}/gimp/%{mver}/scripts
397 %{_datadir}/gimp/%{mver}/themes
398 %{_datadir}/gimp/%{mver}/tips
400 %dir %{_sysconfdir}/%{name}
401 %dir %{_sysconfdir}/%{name}/%{mver}
402 %config %verify(not md5 mtime) %{_sysconfdir}/%{name}/%{mver}/gimprc*
403 %config(noreplace) %{_sysconfdir}/%{name}/%{mver}/templaterc
404 %config %{_sysconfdir}/%{name}/%{mver}/controllerrc
405 %config %{_sysconfdir}/%{name}/%{mver}/gtkrc*
406 %config %{_sysconfdir}/%{name}/%{mver}/menurc
407 %config %{_sysconfdir}/%{name}/%{mver}/ps-menurc
408 %config %{_sysconfdir}/%{name}/%{mver}/sessionrc
409 %config %{_sysconfdir}/%{name}/%{mver}/unitrc
411 %{_iconsdir}/hicolor/*/apps/gimp.*
414 %defattr(644,root,root,755)
415 %attr(755,root,root) %{_libdir}/lib*.so.*.*
418 %defattr(644,root,root,755)
419 %attr(755,root,root) %{_bindir}/gimptool-%{mver}
420 %attr(755,root,root) %{_bindir}/gimptool
421 %attr(755,root,root) %{_libdir}/lib*.so
426 %{_includedir}/gimp-2.0
427 %{_aclocaldir}/gimp-2.0.m4
429 %{_mandir}/man1/gimptool-%{mver}*
430 %{_mandir}/man1/gimptool.1*
433 %defattr(644,root,root,755)
438 %defattr(644,root,root,755)
439 %attr(755,root,root) %{_libdir}/gimp/%{mver}/plug-ins/aa
443 %defattr(644,root,root,755)
444 %attr(755,root,root) %{_libdir}/gimp/%{mver}/plug-ins/svg