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