]> git.pld-linux.org Git - packages/gimp.git/blob - gimp.spec
cc4f2b59ef5c6a9f4efbcb1ab486007fd35cd8b4
[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.2
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:  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}
66 %if %{with gnomevfs}
67 BuildRequires:  gnome-keyring-devel >= 0.5.1
68 BuildRequires:  gnome-vfs2-devel >= 2.15.91
69 BuildRequires:  libgnomeui-devel >= 2.15.91
70 %endif
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
81 Obsoletes:      gimp-print
82 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
83
84 %description
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.
90
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.
94
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.
99
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).
110
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.
118
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.
122
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.
127
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.
131
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
138 interessantes.
139
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
143 (multi-level undo).
144
145 %description -l ru.UTF-8
146 GIMP - это программа для создания и обработки изображений. Ее считают
147 исключительно полезной для создания логотипов и другой графики для
148 web-страниц. GIMP имеет множество инструментов и фильтров, которые
149 обычно включаются в аналогичные коммерческие пакеты, а также ряд
150 возможностей, присущих только ей.
151
152 GIMP предоставляет большой набор инструментов для работы с графикой,
153 включающий операции над каналами, слоями, эффекты, sub-pixel imaging и
154 антиалиасинг, всяческие конверторы и все это с многоуровневым откатом.
155
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 установлены у вас в системе, перед запуском сценариев.
167
168 %description -l uk.UTF-8
169 GIMP - це програма для створення та обробки зображень. Її вважають
170 дуже корисною для створення логотипів та іншої графіки для
171 web-сторінок. GIMP має багато інструментів та фільтрів, які звичайно
172 включаються в аналогічні комерційні пакети, а також ряд можливостей,
173 властивих саме їй.
174
175 GIMP надає великий набір інструментів для роботи з графікою, що
176 включає операції над каналами, шарами (layers), ефекти, sub-pixel
177 imaging і антиаліасинг, різноманітні конвертори і все це з
178 багаторівневим відкатом.
179
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 системі шрифти перед запуском сценаріїв.
191
192 %package libs
193 Summary:        GIMP libraries
194 Summary(pl.UTF-8):      Biblioteki GIMPa
195 Group:          Libraries
196 Requires:       gtk+2 >= 2:2.10.6
197
198 %description libs
199 This package contains GIMP libraries.
200
201 %description libs -l pl.UTF-8
202 Pakiet zawiera biblioteki GIMPa.
203
204 %package devel
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的開發包
216 License:        LGPL
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
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 aa
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}
264
265 %description aa
266 This package contains the ASCII Art plugin which requires the aalib
267 shared library.
268
269 %description aa -l fr.UTF-8
270 Ce paquet contient le plugin d'art ASCII qui nécéssite la librairie
271 partagée aalib.
272
273 %description aa -l pl.UTF-8
274 Ten pakiet zawiera wtyczkę do Gimpa ze wsparciem do ASCII Art.
275
276 %package svg
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
282
283 %description svg
284 SVG plugin for Gimp.
285
286 %description svg -l pl.UTF-8
287 Wtyczka SVG dla Gimpa.
288
289 %prep
290 %setup -q
291 %patch0 -p1
292 %patch1 -p1
293 %patch2 -p1
294
295 %build
296 %{__libtoolize}
297 %{__aclocal}
298 %{__autoconf}
299 %{__autoheader}
300 %{__automake}
301 %configure \
302         %{!?with_gnomevfs:--disable-gnomevfs} \
303         --disable-rpath \
304         %{!?with_python: --disable-python} \
305         --enable-mp \
306         --with-html-dir=%{_gtkdocdir} \
307         --enable-default-binary \
308         --enable-static \
309         --enable-gtk-doc \
310         %{?with_posix_shm:--with-shm=posix}
311         
312 %{__make} -j1
313
314 %install
315 rm -rf $RPM_BUILD_ROOT
316
317 %{__make} install \
318         DESTDIR=$RPM_BUILD_ROOT
319
320 ################### end hack ############################
321
322 # Link gimptool to gimptool-2.0
323
324 ln -s gimptool-%{mver} $RPM_BUILD_ROOT%{_bindir}/gimptool
325 echo '.so gimptool-%{mver}' > $RPM_BUILD_ROOT%{_mandir}/man1/gimptool.1
326
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}
331
332 %find_lang %{name} --all-name
333
334 %clean
335 rm -rf $RPM_BUILD_ROOT
336
337 %post
338 umask 022
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
341
342 %postun
343 umask 022
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
346
347 %post   libs -p /sbin/ldconfig
348 %postun libs -p /sbin/ldconfig
349
350 %files -f %{name}.lang
351 %defattr(644,root,root,755)
352 %doc AUTHORS ChangeLog NEWS README
353 %doc docs/Wilber*
354
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*
364
365 %dir %{_libdir}/gimp
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
372
373 %dir %{_libdir}/gimp/%{mver}/modules
374 %attr(755,root,root) %{_libdir}/gimp/%{mver}/modules/*.so
375 %{_libdir}/gimp/%{mver}/environ
376
377 %if %{with python}
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
382 %endif
383
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
399
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
410
411 %{_iconsdir}/hicolor/*/apps/gimp.*
412
413 %files libs
414 %defattr(644,root,root,755)
415 %attr(755,root,root) %{_libdir}/lib*.so.*.*
416
417 %files devel
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
422 %{_libdir}/lib*.la
423 %{_pkgconfigdir}/*
424 %{_gtkdocdir}/*
425
426 %{_includedir}/gimp-2.0
427 %{_aclocaldir}/gimp-2.0.m4
428
429 %{_mandir}/man1/gimptool-%{mver}*
430 %{_mandir}/man1/gimptool.1*
431
432 %files static
433 %defattr(644,root,root,755)
434 %{_libdir}/lib*.a
435
436 %if %{with aalib}
437 %files aa
438 %defattr(644,root,root,755)
439 %attr(755,root,root) %{_libdir}/gimp/%{mver}/plug-ins/aa
440 %endif
441
442 %files svg
443 %defattr(644,root,root,755)
444 %attr(755,root,root) %{_libdir}/gimp/%{mver}/plug-ins/svg
This page took 1.530543 seconds and 2 git commands to generate.