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