]> git.pld-linux.org Git - packages/gimp.git/blob - gimp.spec
- GPL/LGPL v2+
[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 v2+
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 License:        LGPL v2+
197 Group:          Libraries
198 Requires:       gtk+2 >= 2:2.10.6
199
200 %description libs
201 This package contains GIMP libraries.
202
203 %description libs -l pl.UTF-8
204 Pakiet zawiera biblioteki GIMPa.
205
206 %package devel
207 Summary:        GIMP plugin and extension development kit
208 Summary(de.UTF-8):      GIMP-Plugin und Extension Development Kit
209 Summary(es.UTF-8):      Kit de desarrollo de "plugins" extensiones para GIMP
210 Summary(fr.UTF-8):      Plugin GIMP et kit de développement d'extensions
211 Summary(pl.UTF-8):      Pliki do budowania modułów i rozszerzeń dla GIMPa
212 Summary(pt_BR.UTF-8):   Kit de desenvolvimento de "plugins" extensões para o GIMP
213 Summary(ru.UTF-8):      Инструментарий для разработки плагинов и расширений GIMP
214 Summary(tr.UTF-8):      GIMP plugin ve uzantı geliştirme araçları
215 Summary(uk.UTF-8):      Інструментарій для розробки плагінів та розширень GIMP
216 Summary(zh_CN.UTF-8):   [开发]gimp的开发包
217 Summary(zh_TW.UTF-8):   [開發]gimp的開發包
218 License:        LGPL v2+
219 Group:          X11/Development/Libraries
220 Requires:       %{name}-libs = %{epoch}:%{version}-%{release}
221 Requires:       gtk+2-devel >= 2:2.10.0
222
223 %description devel
224 Header files for writing GIMP plugins and extensions.
225
226 %description devel -l de.UTF-8
227 Header-Dateien zum Schreiben von GIMP-Plugins und -Erweiterungen.
228
229 %description devel -l es.UTF-8
230 Bibliotecas y archivos de inclusión para escribir extensiones y
231 plugins para GIMP.
232
233 %description devel -l pl.UTF-8
234 Pliki nagłówkowe do tworzenia wtyczek i rozszerzeń dla GIMPa.
235
236 %description devel -l pt_BR.UTF-8
237 Bibliotecas e arquivos de inclusão para escrever extensões e plugins
238 para o GIMP.
239
240 %package static
241 Summary:        GIMP static libraries
242 Summary(pl.UTF-8):      Biblioteki statyczne GIMPa
243 License:        LGPL v2+
244 Group:          X11/Development/Libraries
245 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
246
247 %description static
248 GIMP static libraries.
249
250 %description static -l es.UTF-8
251 Bibliotecas estáticas para escribir extensiones y plugins para GIMP.
252
253 %description static -l pl.UTF-8
254 Biblioteki statyczne GIMPa.
255
256 %description static -l pt_BR.UTF-8
257 Bibliotecas estáticas para desenvolvimento de plugins e extensões do
258 GIMP.
259
260 %package apidocs
261 Summary:        GIMP API documentation
262 Summary(pl.UTF-8):      Dokumentacja API GIMPa
263 Group:          Documentation
264 Requires:       gtk-doc-common
265
266 %description apidocs
267 GIMP API documentation.
268
269 %description apidocs -l pl.UTF-8
270 Dokumentacja API GIMPa.
271
272 %package aa
273 Summary:        ASCII Art plugin for GIMP
274 Summary(fr.UTF-8):      Plugin d'art ASCII pour GIMP
275 Summary(pl.UTF-8):      Wtyczka do ASCII Art do GIMPa
276 Group:          X11/Applications/Graphics
277 Requires:       %{name} = %{epoch}:%{version}-%{release}
278
279 %description aa
280 This package contains the ASCII Art plugin which requires the aalib
281 shared library.
282
283 %description aa -l fr.UTF-8
284 Ce paquet contient le plugin d'art ASCII qui nécéssite la librairie
285 partagée aalib.
286
287 %description aa -l pl.UTF-8
288 Ten pakiet zawiera wtyczkę do GIMPa ze wsparciem do ASCII Art.
289
290 %package svg
291 Summary:        SVG plugin for GIMP
292 Summary(pl.UTF-8):      Wtyczka SVG dla GIMPa
293 Group:          X11/Applications/Graphics
294 Requires:       %{name} = %{epoch}:%{version}-%{release}
295 Requires:       librsvg >= 2.2.0
296
297 %description svg
298 SVG plugin for GIMP.
299
300 %description svg -l pl.UTF-8
301 Wtyczka SVG dla GIMPa.
302
303 %prep
304 %setup -q
305 %patch0 -p1
306 %patch1 -p1
307 %patch2 -p1
308
309 %build
310 %{__libtoolize}
311 %{__aclocal}
312 %{__autoconf}
313 %{__autoheader}
314 %{__automake}
315 %configure \
316         %{!?with_gnomevfs:--disable-gnomevfs} \
317         --disable-rpath \
318         %{!?with_python: --disable-python} \
319         --enable-mp \
320         --with-html-dir=%{_gtkdocdir} \
321         --enable-default-binary \
322         --enable-static \
323         --enable-gtk-doc \
324         %{?with_posix_shm:--with-shm=posix}
325         
326 %{__make} -j1
327
328 %install
329 rm -rf $RPM_BUILD_ROOT
330
331 %{__make} install \
332         DESTDIR=$RPM_BUILD_ROOT
333
334 ################### end hack ############################
335
336 # Link gimptool to gimptool-2.0
337
338 ln -s gimptool-%{mver} $RPM_BUILD_ROOT%{_bindir}/gimptool
339 echo '.so gimptool-%{mver}' > $RPM_BUILD_ROOT%{_mandir}/man1/gimptool.1
340
341 # Remove obsolete files
342 rm -f $RPM_BUILD_ROOT%{_libdir}/gimp/%{mver}/modules/*.{a,la}
343 rm -f $RPM_BUILD_ROOT%{_libdir}/gimp/%{mver}/python/*.{a,la,py}
344 rm -r $RPM_BUILD_ROOT%{_datadir}/{application-registry,mime-info}
345
346 %find_lang %{name} --all-name
347
348 %clean
349 rm -rf $RPM_BUILD_ROOT
350
351 %post
352 umask 022
353 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1 ||:
354 gtk-update-icon-cache -qf %{_datadir}/icons/hicolor
355
356 %postun
357 umask 022
358 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1
359 gtk-update-icon-cache -qf %{_datadir}/icons/hicolor
360
361 %post   libs -p /sbin/ldconfig
362 %postun libs -p /sbin/ldconfig
363
364 %files -f %{name}.lang
365 %defattr(644,root,root,755)
366 %doc AUTHORS ChangeLog NEWS README
367 %doc docs/Wilber*
368
369 %attr(755,root,root) %{_bindir}/gimp-2.4
370 %attr(755,root,root) %{_bindir}/gimp
371 %attr(755,root,root) %{_bindir}/gimp-console-2.4
372 %attr(755,root,root) %{_bindir}/gimp-console
373 %attr(755,root,root) %{_bindir}/gimp-remote-2.4
374 %attr(755,root,root) %{_bindir}/gimp-remote
375 %{_desktopdir}/gimp.desktop
376 %{_mandir}/man1/gimp-2*
377 %{_mandir}/man1/gimp-remote-2*
378 %{_mandir}/man5/gimprc-2*
379
380 %dir %{_libdir}/gimp
381 %dir %{_libdir}/gimp/%{mver}
382 %dir %{_libdir}/gimp/%{mver}/plug-ins
383 %{_libdir}/gimp/%{mver}/interpreters
384 %attr(755,root,root) %{_libdir}/gimp/%{mver}/plug-ins/*
385 %{?with_aalib:%exclude %{_libdir}/gimp/%{mver}/plug-ins/aa}
386 %exclude %{_libdir}/gimp/%{mver}/plug-ins/svg
387
388 %dir %{_libdir}/gimp/%{mver}/modules
389 %attr(755,root,root) %{_libdir}/gimp/%{mver}/modules/*.so
390 %{_libdir}/gimp/%{mver}/environ
391
392 %if %{with python}
393 %dir %{_libdir}/gimp/%{mver}/python
394 %{_libdir}/gimp/%{mver}/python/*.py[co]
395 %{_libdir}/gimp/%{mver}/python/*.png
396 %attr(755,root,root) %{_libdir}/gimp/%{mver}/python/*.so
397 %endif
398
399 %dir %{_datadir}/gimp
400 %dir %{_datadir}/gimp/%{mver}
401 %{_datadir}/gimp/%{mver}/brushes
402 %{_datadir}/gimp/%{mver}/fractalexplorer
403 %{_datadir}/gimp/%{mver}/gfig
404 %{_datadir}/gimp/%{mver}/gflare
405 %{_datadir}/gimp/%{mver}/gimpressionist
406 %{_datadir}/gimp/%{mver}/gradients
407 %{_datadir}/gimp/%{mver}/images
408 %{_datadir}/gimp/%{mver}/menus
409 %{_datadir}/gimp/%{mver}/palettes
410 %{_datadir}/gimp/%{mver}/patterns
411 %{_datadir}/gimp/%{mver}/scripts
412 %{_datadir}/gimp/%{mver}/themes
413 %{_datadir}/gimp/%{mver}/tips
414
415 %dir %{_sysconfdir}/%{name}
416 %dir %{_sysconfdir}/%{name}/%{mver}
417 %config %verify(not md5 mtime) %{_sysconfdir}/%{name}/%{mver}/gimprc*
418 %config(noreplace) %{_sysconfdir}/%{name}/%{mver}/templaterc
419 %config %{_sysconfdir}/%{name}/%{mver}/controllerrc
420 %config %{_sysconfdir}/%{name}/%{mver}/gtkrc*
421 %config %{_sysconfdir}/%{name}/%{mver}/menurc
422 %config %{_sysconfdir}/%{name}/%{mver}/ps-menurc
423 %config %{_sysconfdir}/%{name}/%{mver}/sessionrc
424 %config %{_sysconfdir}/%{name}/%{mver}/unitrc
425
426 %{_iconsdir}/hicolor/*/apps/gimp.*
427
428 %files libs
429 %defattr(644,root,root,755)
430 %attr(755,root,root) %{_libdir}/lib*.so.*.*
431
432 %files devel
433 %defattr(644,root,root,755)
434 %attr(755,root,root) %{_bindir}/gimptool-%{mver}
435 %attr(755,root,root) %{_bindir}/gimptool
436 %attr(755,root,root) %{_libdir}/lib*.so
437 %{_libdir}/lib*.la
438 %{_pkgconfigdir}/*
439
440 %{_includedir}/gimp-2.0
441 %{_aclocaldir}/gimp-2.0.m4
442
443 %{_mandir}/man1/gimptool-%{mver}*
444 %{_mandir}/man1/gimptool.1*
445
446 %files static
447 %defattr(644,root,root,755)
448 %{_libdir}/lib*.a
449
450 %files apidocs
451 %defattr(644,root,root,755)
452 %{_gtkdocdir}/*
453
454 %if %{with aalib}
455 %files aa
456 %defattr(644,root,root,755)
457 %attr(755,root,root) %{_libdir}/gimp/%{mver}/plug-ins/aa
458 %endif
459
460 %files svg
461 %defattr(644,root,root,755)
462 %attr(755,root,root) %{_libdir}/gimp/%{mver}/plug-ins/svg
This page took 0.119118 seconds and 4 git commands to generate.