]>
Commit | Line | Data |
---|---|---|
760952c4 MM |
1 | # |
2 | # Conditional build: | |
50c61980 JB |
3 | %bcond_without aalib # aa plugin (which requires aalib) |
4 | %bcond_without python # python plugins | |
5 | %bcond_without libunwind # detailed backtraces using libunwind | |
6 | %bcond_without webkit # webkit-based help browser | |
b43694c6 | 7 | %bcond_with posix_shm # with POSIX SHM (default is SysV SHM) |
047b0246 | 8 | |
b55100d9 JB |
9 | %define babl_ver 0.1.74 |
10 | %define gegl_ver 0.4.22 | |
cb8deb65 | 11 | |
50b28bc3 | 12 | %define mver 2.0 |
4fb170e2 | 13 | Summary: The GNU Image Manipulation Program |
a062d2cc | 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圖象處理工具 | |
4fb170e2 | 24 | Name: gimp |
758c8cde JB |
25 | Version: 2.10.20 |
26 | Release: 1 | |
3166825e | 27 | Epoch: 1 |
0c00a9ba | 28 | License: GPL v3+ |
4fb170e2 | 29 | Group: X11/Applications/Graphics |
b55100d9 | 30 | Source0: https://download.gimp.org/pub/gimp/v2.10/%{name}-%{version}.tar.bz2 |
758c8cde | 31 | # Source0-md5: 7479a4e90b28628d2948e6612fe44049 |
98cdf971 | 32 | Patch0: %{name}-home_etc.patch |
ad809b9e | 33 | Patch2: %{name}-gcc4.patch |
50c61980 | 34 | Patch3: %{name}-no-checks-for-runtime-deps.patch |
b55100d9 | 35 | URL: https://www.gimp.org/ |
50c61980 | 36 | BuildRequires: OpenEXR-devel >= 1.6.1 |
e30886a4 | 37 | %{?with_aalib:BuildRequires: aalib-devel} |
ad809b9e | 38 | BuildRequires: alsa-lib-devel >= 1.0.11 |
89242cdd | 39 | BuildRequires: atk-devel >= 1:2.2.0 |
484cd167 | 40 | BuildRequires: autoconf >= 2.54 |
b03404b8 | 41 | BuildRequires: automake |
cb8deb65 | 42 | BuildRequires: babl-devel >= %{babl_ver} |
50c61980 JB |
43 | BuildRequires: bzip2-devel |
44 | BuildRequires: cairo-devel >= 1.12.2 | |
6843b505 | 45 | BuildRequires: docbook-dtd412-xml |
c3987abd | 46 | BuildRequires: fontconfig-devel >= 2.12.4 |
50c61980 | 47 | BuildRequires: freetype-devel >= 1:2.1.7 |
c3987abd | 48 | BuildRequires: gdk-pixbuf2-devel >= 2.30.8 |
cb8deb65 | 49 | BuildRequires: gegl-devel >= %{gegl_ver} |
50c61980 JB |
50 | BuildRequires: gettext-tools >= 0.19 |
51 | BuildRequires: gexiv2-devel >= 0.10.6 | |
89242cdd | 52 | BuildRequires: ghostscript-devel |
5a588737 | 53 | BuildRequires: giflib-devel |
c3987abd | 54 | BuildRequires: glib2-devel >= 1:2.54.2 |
2dedef7c | 55 | BuildRequires: glib-networking |
50c61980 JB |
56 | BuildRequires: gtk+2-devel >= 2:2.24.32 |
57 | BuildRequires: gtk-update-icon-cache >= 2.24.32 | |
ad809b9e | 58 | BuildRequires: gtk-doc >= 1.6 |
89242cdd | 59 | %{?with_webkit:BuildRequires: gtk-webkit-devel >= 1.6.1} |
50c61980 | 60 | BuildRequires: harfbuzz-devel >= 0.9.19 |
89242cdd | 61 | BuildRequires: intltool >= 0.40.1 |
651794d4 | 62 | BuildRequires: iso-codes |
b55100d9 | 63 | BuildRequires: json-glib-devel >= 1.2.6 |
c3987abd | 64 | BuildRequires: lcms2-devel >= 2.8 |
b55100d9 | 65 | BuildRequires: libheif-devel >= 1.6 |
589cb4c6 | 66 | BuildRequires: libjpeg-devel |
211ee8fb | 67 | BuildRequires: libmng-devel |
e7c50af4 | 68 | BuildRequires: libmypaint-devel >= 1.3.0 |
50c61980 JB |
69 | BuildRequires: libpng-devel >= 2:1.6.25 |
70 | BuildRequires: librsvg-devel >= 1:2.40.6 | |
71 | BuildRequires: libstdc++-devel >= 6:5 | |
1e34549c | 72 | BuildRequires: libtiff-devel |
89242cdd | 73 | BuildRequires: libtool >= 2:2.2 |
50c61980 JB |
74 | %{?with_libunwind:BuildRequires: libunwind-devel >= 1.1.0} |
75 | BuildRequires: libwebp-devel >= 0.6.0 | |
67301082 | 76 | BuildRequires: libwmf-devel >= 2:0.2.8 |
b55100d9 | 77 | BuildRequires: mypaint-brushes-1-devel >= 1.0 |
50c61980 | 78 | BuildRequires: openjpeg2-devel >= 2.1.0 |
89242cdd | 79 | BuildRequires: pango-devel >= 1:1.29.4 |
50c61980 | 80 | BuildRequires: perl-base >= 1:5.10.0 |
9b6bf357 | 81 | BuildRequires: pkgconfig >= 1:0.16 |
50c61980 JB |
82 | BuildRequires: poppler-glib-devel >= 0.50.0 |
83 | %{?with_python:BuildRequires: python >= 1:2.5.0} | |
c3987abd | 84 | %{?with_python:BuildRequires: python-pycairo-devel >= 1.12.2} |
0c00a9ba | 85 | %{?with_python:BuildRequires: python-pygtk-devel >= 1:2.10.4} |
ad809b9e | 86 | BuildRequires: rpm-pythonprov |
bfb26423 | 87 | BuildRequires: rpmbuild(macros) >= 1.268 |
b55100d9 | 88 | BuildRequires: sed >= 4.0 |
b3e8afcd | 89 | BuildRequires: udev-glib-devel >= 1:167 |
89242cdd | 90 | BuildRequires: xorg-lib-libXcursor-devel |
9b6bf357 JB |
91 | BuildRequires: xorg-lib-libXext-devel |
92 | BuildRequires: xorg-lib-libXfixes-devel | |
651794d4 | 93 | BuildRequires: xorg-lib-libXmu-devel |
ad809b9e | 94 | BuildRequires: xorg-lib-libXpm-devel |
50c61980 | 95 | BuildRequires: xorg-lib-libXt-devel |
b55100d9 | 96 | BuildRequires: xz-devel >= 1:5.0.0 |
50c61980 JB |
97 | BuildRequires: zlib-devel |
98 | Requires(post,postun): gtk+2 >= 2:2.24.32 | |
ad809b9e | 99 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
50c61980 JB |
100 | Requires: OpenEXR >= 1.6.1 |
101 | Requires: alsa-lib >= 1.0.11 | |
89242cdd | 102 | Requires: atk >= 1:2.2.0 |
50c61980 JB |
103 | Requires: fontconfig-libs >= 2.12.4 |
104 | Requires: freetype >= 1:2.1.7 | |
105 | Requires: harfbuzz >= 0.9.19 | |
ad809b9e | 106 | Requires: hicolor-icon-theme |
50c61980 | 107 | Requires: iso-codes |
b55100d9 JB |
108 | Requires: json-glib >= 1.2.6 |
109 | Requires: libheif >= 1.6 | |
50c61980 JB |
110 | Requires: libmypaint >= 1.3.0 |
111 | Requires: libpng >= 2:1.6.25 | |
112 | Requires: libwebp >= 0.6.0 | |
113 | Requires: libwmf-libs >= 2:0.2.8 | |
b55100d9 | 114 | Requires: mypaint-brushes-1 >= 1.0 |
50c61980 JB |
115 | Requires: openjpeg2 >= 2.1.0 |
116 | Requires: poppler-data >= 0.4.7 | |
117 | Requires: poppler-glib >= 0.50.0 | |
69287602 | 118 | %{?with_python:Requires: python-pygtk-gtk >= 1:2.10.4} |
50c61980 | 119 | Requires: udev-glib >= 1:167 |
b55100d9 JB |
120 | Requires: xz-libs >= 1:5.0.0 |
121 | # for https | |
122 | Suggests: glib-networking | |
73ec8057 | 123 | Obsoletes: gimp-data-min |
124 | Obsoletes: gimp-libgimp | |
ad809b9e | 125 | Obsoletes: gimp-print |
1bc9bad9 | 126 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
4fb170e2 | 127 | |
128 | %description | |
9732a65f | 129 | The GIMP is an image manipulation program suitable for photo |
130 | retouching, image composition and image authoring. Many people find it | |
131 | extremely useful in creating logos and other graphics for web pages. | |
132 | The GIMP has many of the tools and filters you would expect to find in | |
133 | similar commercial offerings, and some interesting extras as well. | |
4fb170e2 | 134 | |
9732a65f | 135 | The GIMP provides a large image manipulation toolbox, including |
136 | channel operations and layers, effects, sub-pixel imaging and | |
137 | anti-aliasing, and conversions, all with multi-level undo. | |
4fb170e2 | 138 | |
9732a65f | 139 | This version of The GIMP includes a scripting facility, but many of |
140 | the included scripts rely on fonts that we cannot distribute. The GIMP | |
d98f5926 | 141 | FTP site has a package of fonts that you can install by yourself, |
9732a65f | 142 | which includes all the fonts needed to run the included scripts. |
4fb170e2 | 143 | |
61ef8941 JR |
144 | %description -l es.UTF-8 |
145 | GIMP es un programa de manejo de imágenes adecuado para retoque de | |
146 | fotos, composición y editoración de imágenes. Muchas personas lo | |
147 | encuentran extremamente útil en la creación de logos y otros gráficos | |
148 | para páginas web. GIMP tiene muchas herramientas y filtros normalmente | |
149 | encontrados en aplicaciones comerciales similares, además de | |
150 | características extras bien interesantes. GIMP ofrece una extensa caja | |
50e3b3c9 | 151 | de herramientas de manejo de imagen, incluyendo camadas, efectos, |
61ef8941 | 152 | formación de imagen subpíxel y antialiasing, conversiones, todos con |
50e3b3c9 | 153 | deshacer en varios niveles (multi-level undo). |
154 | ||
61ef8941 | 155 | %description -l fr.UTF-8 |
9732a65f | 156 | Le Programme de Manipulation d'Image de GNU permet de retoucher des |
61ef8941 JR |
157 | photos, de réaliser des compositions. Beaucoup de gens l'apprécient |
158 | pour la création de logos et de graphismes pour les pages web. GIMP | |
9732a65f | 159 | dispose d'un grand nombre de filtres et de plug-ins que l'on ne trouve |
160 | que dans les logiciels commerciaux haut de gamme ainsi que de | |
61ef8941 | 161 | nombreuses fonctionnalité inédites. |
69866f7f | 162 | |
61ef8941 | 163 | GIMP fournit une boite à outil permettant de gérer plusieurs calques, |
9732a65f | 164 | de nombreux effets, l'anti-aliasing, les conversions de fichiers ainsi |
165 | qu'un grand nombre de niveaux d'annulation. | |
69866f7f | 166 | |
61ef8941 JR |
167 | %description -l pl.UTF-8 |
168 | Program GIMP jest przeznaczony do obróbki i tworzenia plików w różnych | |
169 | formatach graficznych. Przy jego użyciu można tworzyć grafikę dla | |
170 | stron WWW, retuszować zdjęcia, czy stworzyć własne logo. | |
fab1a3fd | 171 | |
61ef8941 JR |
172 | GIMP dostarcza duży zestaw narzędzi do obróbki obrazów, w tym do |
173 | operowania na kanałach i warstwach, efektów, antyaliasingu oraz | |
fab1a3fd JB |
174 | konwersji, a to wszystko z wielopoziomowym cofaniem operacji. |
175 | ||
61ef8941 JR |
176 | %description -l pt_BR.UTF-8 |
177 | O GIMP é um programa de manipulação de imagens adequado para retoque | |
178 | de fotos, composição e editoração de imagens. Muitas pessoas o acham | |
179 | extremamente útil na criação de logos e outros gráficos para páginas | |
50e3b3c9 | 180 | web. O GIMP tem muitas ferramentas e filtros normalmente encontrados |
61ef8941 | 181 | em aplicações comerciais similares, além de características extras bem |
50e3b3c9 | 182 | interessantes. |
183 | ||
61ef8941 JR |
184 | O GIMP fornece uma extensa caixa de ferramentas de manipulação de |
185 | imagem, incluindo camadas, efeitos, formação de imagem subpíxel e | |
186 | anti-aliasing, conversões, todos com desfazimento em vários níveis | |
50e3b3c9 | 187 | (multi-level undo). |
188 | ||
61ef8941 JR |
189 | %description -l ru.UTF-8 |
190 | GIMP - это программа для создания и обработки изображений. Ее считают | |
191 | исключительно полезной для создания логотипов и другой графики для | |
192 | web-страниц. GIMP имеет множество инструментов и фильтров, которые | |
193 | обычно включаются в аналогичные коммерческие пакеты, а также ряд | |
194 | возможностей, присущих только ей. | |
195 | ||
196 | GIMP предоставляет большой набор инструментов для работы с графикой, | |
197 | включающий операции над каналами, слоями, эффекты, sub-pixel imaging и | |
198 | антиалиасинг, всяческие конверторы и все это с многоуровневым откатом. | |
199 | ||
200 | GIMP включает поддержку создания сценариев (scripting facility), | |
201 | однако многие из поставляемых с программой сценариев предполагают | |
202 | наличие шрифтов, которые не могут быть включены в дистрибутив. | |
61ef8941 JR |
203 | |
204 | %description -l uk.UTF-8 | |
205 | GIMP - це програма для створення та обробки зображень. Її вважають | |
206 | дуже корисною для створення логотипів та іншої графіки для | |
207 | web-сторінок. GIMP має багато інструментів та фільтрів, які звичайно | |
208 | включаються в аналогічні комерційні пакети, а також ряд можливостей, | |
209 | властивих саме їй. | |
210 | ||
211 | GIMP надає великий набір інструментів для роботи з графікою, що | |
212 | включає операції над каналами, шарами (layers), ефекти, sub-pixel | |
213 | imaging і антиаліасинг, різноманітні конвертори і все це з | |
214 | багаторівневим відкатом. | |
215 | ||
216 | GIMP має підтримку сценаріїв (scripting facility), проте багато з | |
217 | включених до поставки сценаріїв припускають наявність шрифтів, які не | |
50c61980 | 218 | можуть бути включені в дистрибутив. |
85e80133 | 219 | |
ad809b9e AM |
220 | %package libs |
221 | Summary: GIMP libraries | |
9b6bf357 | 222 | Summary(pl.UTF-8): Biblioteki GIMP-a |
52484641 | 223 | License: LGPL v2+ |
50c61980 JB |
224 | Group: X11/Libraries |
225 | Requires: babl >= %{babl_ver} | |
226 | Requires: cairo >= 1.12.2 | |
227 | Requires: gdk-pixbuf2 >= 2.30.8 | |
228 | Requires: gegl >= %{gegl_ver} | |
229 | Requires: gexiv2 >= 0.10.6 | |
230 | Requires: glib2 >= 1:2.54.2 | |
231 | Requires: gtk+2 >= 2:2.24.32 | |
232 | Requires: lcms2 >= 2.8 | |
89242cdd | 233 | Requires: pango >= 1:1.29.4 |
ad809b9e AM |
234 | |
235 | %description libs | |
236 | This package contains GIMP libraries. | |
237 | ||
238 | %description libs -l pl.UTF-8 | |
9b6bf357 | 239 | Pakiet zawiera biblioteki GIMP-a. |
ad809b9e | 240 | |
00347be4 | 241 | %package devel |
4fb170e2 | 242 | Summary: GIMP plugin and extension development kit |
a062d2cc | 243 | Summary(de.UTF-8): GIMP-Plugin und Extension Development Kit |
244 | Summary(es.UTF-8): Kit de desarrollo de "plugins" extensiones para GIMP | |
245 | Summary(fr.UTF-8): Plugin GIMP et kit de développement d'extensions | |
4ec919fd | 246 | Summary(pl.UTF-8): Pliki do budowania modułów i rozszerzeń dla GIMPa |
a062d2cc | 247 | Summary(pt_BR.UTF-8): Kit de desenvolvimento de "plugins" extensões para o GIMP |
248 | Summary(ru.UTF-8): Инструментарий для разработки плагинов и расширений GIMP | |
249 | Summary(tr.UTF-8): GIMP plugin ve uzantı geliştirme araçları | |
250 | Summary(uk.UTF-8): Інструментарій для розробки плагінів та розширень GIMP | |
251 | Summary(zh_CN.UTF-8): [开发]gimp的开发包 | |
252 | Summary(zh_TW.UTF-8): [開發]gimp的開發包 | |
52484641 | 253 | License: LGPL v2+ |
50e3b3c9 | 254 | Group: X11/Development/Libraries |
ad809b9e | 255 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
50c61980 JB |
256 | Requires: cairo-devel >= 1.12.2 |
257 | Requires: gdk-pixbuf2-devel >= 2.30.8 | |
258 | Requires: gegl-devel >= %{gegl_ver} | |
259 | Requires: glib2-devel >= 1:2.54.2 | |
260 | Requires: gtk+2-devel >= 2:2.24.32 | |
89242cdd | 261 | Requires: pango-devel >= 1:1.29.4 |
4fb170e2 | 262 | |
263 | %description devel | |
264 | Header files for writing GIMP plugins and extensions. | |
265 | ||
61ef8941 | 266 | %description devel -l de.UTF-8 |
9732a65f | 267 | Header-Dateien zum Schreiben von GIMP-Plugins und -Erweiterungen. |
4fb170e2 | 268 | |
61ef8941 JR |
269 | %description devel -l es.UTF-8 |
270 | Bibliotecas y archivos de inclusión para escribir extensiones y | |
4ec919fd | 271 | plugins para GIMP. |
50e3b3c9 | 272 | |
61ef8941 | 273 | %description devel -l pl.UTF-8 |
4ec919fd | 274 | Pliki nagłówkowe do tworzenia wtyczek i rozszerzeń dla GIMPa. |
73ec8057 | 275 | |
61ef8941 JR |
276 | %description devel -l pt_BR.UTF-8 |
277 | Bibliotecas e arquivos de inclusão para escrever extensões e plugins | |
4ec919fd | 278 | para o GIMP. |
50e3b3c9 | 279 | |
4fb170e2 | 280 | %package static |
00347be4 | 281 | Summary: GIMP static libraries |
4ec919fd | 282 | Summary(pl.UTF-8): Biblioteki statyczne GIMPa |
52484641 | 283 | License: LGPL v2+ |
50e3b3c9 | 284 | Group: X11/Development/Libraries |
77278c4a | 285 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
4fb170e2 | 286 | |
287 | %description static | |
00347be4 | 288 | GIMP static libraries. |
4fb170e2 | 289 | |
61ef8941 | 290 | %description static -l es.UTF-8 |
4ec919fd | 291 | Bibliotecas estáticas para escribir extensiones y plugins para GIMP. |
50e3b3c9 | 292 | |
61ef8941 | 293 | %description static -l pl.UTF-8 |
4ec919fd | 294 | Biblioteki statyczne GIMPa. |
4fb170e2 | 295 | |
61ef8941 JR |
296 | %description static -l pt_BR.UTF-8 |
297 | Bibliotecas estáticas para desenvolvimento de plugins e extensões do | |
50e3b3c9 | 298 | GIMP. |
299 | ||
4ec919fd MB |
300 | %package apidocs |
301 | Summary: GIMP API documentation | |
302 | Summary(pl.UTF-8): Dokumentacja API GIMPa | |
303 | Group: Documentation | |
304 | Requires: gtk-doc-common | |
047b0246 ER |
305 | %if "%{_rpmversion}" >= "5" |
306 | BuildArch: noarch | |
307 | %endif | |
4ec919fd MB |
308 | |
309 | %description apidocs | |
310 | GIMP API documentation. | |
311 | ||
312 | %description apidocs -l pl.UTF-8 | |
313 | Dokumentacja API GIMPa. | |
314 | ||
32d149f2 | 315 | %package aa |
4ec919fd MB |
316 | Summary: ASCII Art plugin for GIMP |
317 | Summary(fr.UTF-8): Plugin d'art ASCII pour GIMP | |
318 | Summary(pl.UTF-8): Wtyczka do ASCII Art do GIMPa | |
32d149f2 | 319 | Group: X11/Applications/Graphics |
77278c4a | 320 | Requires: %{name} = %{epoch}:%{version}-%{release} |
32d149f2 | 321 | |
322 | %description aa | |
9732a65f | 323 | This package contains the ASCII Art plugin which requires the aalib |
324 | shared library. | |
32d149f2 | 325 | |
61ef8941 JR |
326 | %description aa -l fr.UTF-8 |
327 | Ce paquet contient le plugin d'art ASCII qui nécéssite la librairie | |
328 | partagée aalib. | |
32d149f2 | 329 | |
61ef8941 | 330 | %description aa -l pl.UTF-8 |
4ec919fd | 331 | Ten pakiet zawiera wtyczkę do GIMPa ze wsparciem do ASCII Art. |
fa0aabeb | 332 | |
fc9fae14 | 333 | %package svg |
4ec919fd MB |
334 | Summary: SVG plugin for GIMP |
335 | Summary(pl.UTF-8): Wtyczka SVG dla GIMPa | |
fc9fae14 JB |
336 | Group: X11/Applications/Graphics |
337 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
50c61980 | 338 | Requires: librsvg >= 1:2.40.6 |
fc9fae14 JB |
339 | |
340 | %description svg | |
4ec919fd | 341 | SVG plugin for GIMP. |
fc9fae14 | 342 | |
61ef8941 | 343 | %description svg -l pl.UTF-8 |
4ec919fd | 344 | Wtyczka SVG dla GIMPa. |
fc9fae14 | 345 | |
d4aa4a70 | 346 | %prep |
7f01ce5f | 347 | %setup -q |
c3ea1d23 | 348 | %patch0 -p1 |
ad809b9e | 349 | %patch2 -p1 |
50c61980 | 350 | %patch3 -p1 |
017978a0 | 351 | |
b55100d9 JB |
352 | %{__sed} -i -e '1s,/usr/bin/env python,%{__python},' plug-ins/pygimp/plug-ins/gradients-save-as-css.py |
353 | ||
4fb170e2 | 354 | %build |
94f11a79 | 355 | %{__rm} acinclude.m4 |
ed6d7c60 | 356 | %{__gtkdocize} |
a612bf8c | 357 | %{__libtoolize} |
fd63ac9e | 358 | %{__aclocal} -I m4macros |
a612bf8c | 359 | %{__autoconf} |
9917462c JB |
360 | %{__autoheader} |
361 | %{__automake} | |
a2c095ed | 362 | %configure \ |
ee10671e | 363 | %{!?with_python:--disable-python} \ |
89242cdd | 364 | --disable-silent-rules \ |
ad809b9e | 365 | --enable-default-binary \ |
ad809b9e | 366 | --enable-gtk-doc \ |
ee10671e | 367 | --enable-static \ |
50c61980 JB |
368 | --without-appdata-test \ |
369 | --with-bug-report-url="https://www.pld-linux.org/" \ | |
ee10671e | 370 | --with-html-dir=%{_gtkdocdir} \ |
a53312dc | 371 | --with-lcms=2 \ |
50c61980 JB |
372 | %{!?with_libunwind:--without-libunwind} \ |
373 | --with-sendmail=/usr/lib/sendmail \ | |
ee10671e | 374 | %{?with_posix_shm:--with-shm=posix} \ |
50c61980 | 375 | %{!?with_webkit:--without-webkit} |
6843b505 | 376 | |
8bba970f | 377 | %{__make} |
4fb170e2 | 378 | |
379 | %install | |
380 | rm -rf $RPM_BUILD_ROOT | |
4fb170e2 | 381 | |
861ea416 | 382 | %{__make} install \ |
92ae10a0 | 383 | DESTDIR=$RPM_BUILD_ROOT |
4fb170e2 | 384 | |
d4575fcf | 385 | # Link gimptool to gimptool-2.0.1 |
245195de | 386 | ln -s gimptool-2.0 $RPM_BUILD_ROOT%{_bindir}/gimptool |
d4575fcf | 387 | echo '.so gimptool-2.0.1' > $RPM_BUILD_ROOT%{_mandir}/man1/gimptool.1 |
4490db1c | 388 | |
50c61980 JB |
389 | # obsoleted by pkg-config |
390 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgimp*.la | |
391 | # dynamic modules loaded via gmodule | |
1f31051b | 392 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gimp/%{mver}/modules/*.{a,la} |
0c00a9ba | 393 | %if %{with python} |
1f31051b | 394 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gimp/%{mver}/python/*.{a,la,py} |
0c00a9ba | 395 | %endif |
893e7980 | 396 | |
50c61980 JB |
397 | # don't hide {python,python2,python3} behind /usr/bin/env |
398 | %{__sed} -i -e '1s,/usr/bin/env python,/usr/bin/python,' $RPM_BUILD_ROOT%{_libdir}/gimp/%{mver}/plug-ins/*/*.py | |
399 | ||
f67c6b3a | 400 | %find_lang %{name} --all-name |
401 | ||
e92dedfc | 402 | %clean |
403 | rm -rf $RPM_BUILD_ROOT | |
404 | ||
9a4c7b85 | 405 | %post |
1807b144 | 406 | umask 022 |
e7c50af4 | 407 | [ ! -x %{_bindir}/update-desktop-database ] || %{_bindir}/update-desktop-database >/dev/null 2>&1 ||: |
6f8083d8 | 408 | %update_icon_cache hicolor |
9a4c7b85 | 409 | |
410 | %postun | |
1807b144 | 411 | umask 022 |
e7c50af4 | 412 | [ ! -x %{_bindir}/update-desktop-database ] || %{_bindir}/update-desktop-database >/dev/null 2>&1 |
6f8083d8 | 413 | %update_icon_cache hicolor |
1e34549c | 414 | |
ad809b9e AM |
415 | %post libs -p /sbin/ldconfig |
416 | %postun libs -p /sbin/ldconfig | |
71900306 | 417 | |
270bb890 | 418 | %files -f %{name}.lang |
a070df27 | 419 | %defattr(644,root,root,755) |
9b6bf357 | 420 | %doc AUTHORS ChangeLog LICENSE NEWS README |
ad809b9e | 421 | %doc docs/Wilber* |
0b48eaed | 422 | |
e7c50af4 | 423 | %attr(755,root,root) %{_bindir}/gimp-2.10 |
4707e19d | 424 | %attr(755,root,root) %{_bindir}/gimp |
e7c50af4 | 425 | %attr(755,root,root) %{_bindir}/gimp-console-2.10 |
4ec919fd | 426 | %attr(755,root,root) %{_bindir}/gimp-console |
fd8d318e | 427 | %attr(755,root,root) %{_bindir}/gimp-test-clipboard-2.0 |
e7c50af4 AM |
428 | %attr(755,root,root) %{_libexecdir}/gimp-debug-tool-2.0 |
429 | %{_datadir}/metainfo/gimp-data-extras.metainfo.xml | |
430 | %{_datadir}/metainfo/org.gimp.GIMP.appdata.xml | |
139a4615 | 431 | %{_desktopdir}/gimp.desktop |
50c61980 | 432 | %{_iconsdir}/hicolor/*x*/apps/gimp.png |
e7c50af4 | 433 | %{_mandir}/man1/gimp-2.10.1* |
81599acc | 434 | %{_mandir}/man1/gimp.1* |
e7c50af4 | 435 | %{_mandir}/man1/gimp-console-2.10.1* |
81599acc | 436 | %{_mandir}/man1/gimp-console.1* |
e7c50af4 | 437 | %{_mandir}/man5/gimprc-2.10.5* |
81599acc | 438 | %{_mandir}/man5/gimprc.5* |
4fb170e2 | 439 | |
b1fd7741 | 440 | %dir %{_libdir}/gimp |
441 | %dir %{_libdir}/gimp/%{mver} | |
442 | %dir %{_libdir}/gimp/%{mver}/plug-ins | |
ad809b9e | 443 | %{_libdir}/gimp/%{mver}/interpreters |
f67c6b3a | 444 | %attr(755,root,root) %{_libdir}/gimp/%{mver}/plug-ins/* |
d4575fcf AM |
445 | %{?with_aalib:%exclude %{_libdir}/gimp/%{mver}/plug-ins/file-aa} |
446 | %exclude %{_libdir}/gimp/%{mver}/plug-ins/file-svg | |
f67c6b3a | 447 | |
b1fd7741 | 448 | %dir %{_libdir}/gimp/%{mver}/modules |
449 | %attr(755,root,root) %{_libdir}/gimp/%{mver}/modules/*.so | |
795282aa | 450 | %{_libdir}/gimp/%{mver}/environ |
b1fd7741 | 451 | |
e30886a4 | 452 | %if %{with python} |
5e1b99fc | 453 | %dir %{_libdir}/gimp/%{mver}/python |
454 | %{_libdir}/gimp/%{mver}/python/*.py[co] | |
5f53c47d | 455 | %{_libdir}/gimp/%{mver}/python/*.png |
5e1b99fc | 456 | %attr(755,root,root) %{_libdir}/gimp/%{mver}/python/*.so |
e30886a4 | 457 | %endif |
5e1b99fc | 458 | |
6d30914e | 459 | %dir %{_datadir}/gimp |
b1fd7741 | 460 | %dir %{_datadir}/gimp/%{mver} |
b55100d9 | 461 | %{_datadir}/gimp/%{mver}/gimp-release |
b1fd7741 | 462 | %{_datadir}/gimp/%{mver}/brushes |
0c00a9ba | 463 | %{_datadir}/gimp/%{mver}/dynamics |
e7c50af4 | 464 | %{_datadir}/gimp/%{mver}/file-raw |
b1fd7741 | 465 | %{_datadir}/gimp/%{mver}/fractalexplorer |
466 | %{_datadir}/gimp/%{mver}/gfig | |
467 | %{_datadir}/gimp/%{mver}/gflare | |
468 | %{_datadir}/gimp/%{mver}/gimpressionist | |
469 | %{_datadir}/gimp/%{mver}/gradients | |
e7c50af4 | 470 | %{_datadir}/gimp/%{mver}/icons |
b1fd7741 | 471 | %{_datadir}/gimp/%{mver}/images |
9a4c7b85 | 472 | %{_datadir}/gimp/%{mver}/menus |
b1fd7741 | 473 | %{_datadir}/gimp/%{mver}/palettes |
474 | %{_datadir}/gimp/%{mver}/patterns | |
475 | %{_datadir}/gimp/%{mver}/scripts | |
0c00a9ba | 476 | %{_datadir}/gimp/%{mver}/tags |
b1fd7741 | 477 | %{_datadir}/gimp/%{mver}/themes |
478 | %{_datadir}/gimp/%{mver}/tips | |
0c00a9ba | 479 | %{_datadir}/gimp/%{mver}/tool-presets |
480 | %{_datadir}/gimp/%{mver}/ui | |
b1fd7741 | 481 | |
c2ff8846 | 482 | %dir %{_sysconfdir}/%{name} |
483 | %dir %{_sysconfdir}/%{name}/%{mver} | |
b55100d9 | 484 | %config %verify(not md5 mtime size) %{_sysconfdir}/%{name}/%{mver}/gimprc* |
c2ff8846 | 485 | %config(noreplace) %{_sysconfdir}/%{name}/%{mver}/templaterc |
ad809b9e | 486 | %config %{_sysconfdir}/%{name}/%{mver}/controllerrc |
c2ff8846 | 487 | %config %{_sysconfdir}/%{name}/%{mver}/gtkrc* |
ad809b9e | 488 | %config %{_sysconfdir}/%{name}/%{mver}/menurc |
96930415 | 489 | %config %{_sysconfdir}/%{name}/%{mver}/sessionrc |
b55100d9 | 490 | %config %{_sysconfdir}/%{name}/%{mver}/toolrc |
c2ff8846 | 491 | %config %{_sysconfdir}/%{name}/%{mver}/unitrc |
a2c095ed | 492 | |
ad809b9e AM |
493 | %files libs |
494 | %defattr(644,root,root,755) | |
957f00ca JB |
495 | %attr(755,root,root) %{_libdir}/libgimp-2.0.so.*.*.* |
496 | %attr(755,root,root) %ghost %{_libdir}/libgimp-2.0.so.0 | |
497 | %attr(755,root,root) %{_libdir}/libgimpbase-2.0.so.*.*.* | |
498 | %attr(755,root,root) %ghost %{_libdir}/libgimpbase-2.0.so.0 | |
499 | %attr(755,root,root) %{_libdir}/libgimpcolor-2.0.so.*.*.* | |
500 | %attr(755,root,root) %ghost %{_libdir}/libgimpcolor-2.0.so.0 | |
501 | %attr(755,root,root) %{_libdir}/libgimpconfig-2.0.so.*.*.* | |
502 | %attr(755,root,root) %ghost %{_libdir}/libgimpconfig-2.0.so.0 | |
503 | %attr(755,root,root) %{_libdir}/libgimpmath-2.0.so.*.*.* | |
504 | %attr(755,root,root) %ghost %{_libdir}/libgimpmath-2.0.so.0 | |
505 | %attr(755,root,root) %{_libdir}/libgimpmodule-2.0.so.*.*.* | |
506 | %attr(755,root,root) %ghost %{_libdir}/libgimpmodule-2.0.so.0 | |
507 | %attr(755,root,root) %{_libdir}/libgimpthumb-2.0.so.*.*.* | |
508 | %attr(755,root,root) %ghost %{_libdir}/libgimpthumb-2.0.so.0 | |
509 | %attr(755,root,root) %{_libdir}/libgimpui-2.0.so.*.*.* | |
510 | %attr(755,root,root) %ghost %{_libdir}/libgimpui-2.0.so.0 | |
511 | %attr(755,root,root) %{_libdir}/libgimpwidgets-2.0.so.*.*.* | |
512 | %attr(755,root,root) %ghost %{_libdir}/libgimpwidgets-2.0.so.0 | |
4fb170e2 | 513 | |
514 | %files devel | |
515 | %defattr(644,root,root,755) | |
9a4c7b85 | 516 | %attr(755,root,root) %{_bindir}/gimptool-%{mver} |
4490db1c | 517 | %attr(755,root,root) %{_bindir}/gimptool |
957f00ca JB |
518 | %attr(755,root,root) %{_libdir}/libgimp-2.0.so |
519 | %attr(755,root,root) %{_libdir}/libgimpbase-2.0.so | |
520 | %attr(755,root,root) %{_libdir}/libgimpcolor-2.0.so | |
521 | %attr(755,root,root) %{_libdir}/libgimpconfig-2.0.so | |
522 | %attr(755,root,root) %{_libdir}/libgimpmath-2.0.so | |
523 | %attr(755,root,root) %{_libdir}/libgimpmodule-2.0.so | |
524 | %attr(755,root,root) %{_libdir}/libgimpthumb-2.0.so | |
525 | %attr(755,root,root) %{_libdir}/libgimpui-2.0.so | |
526 | %attr(755,root,root) %{_libdir}/libgimpwidgets-2.0.so | |
957f00ca JB |
527 | %{_pkgconfigdir}/gimp-2.0.pc |
528 | %{_pkgconfigdir}/gimpthumb-2.0.pc | |
529 | %{_pkgconfigdir}/gimpui-2.0.pc | |
9a4c7b85 | 530 | %{_includedir}/gimp-2.0 |
3a9958b6 | 531 | %{_aclocaldir}/gimp-2.0.m4 |
957f00ca | 532 | %{_mandir}/man1/gimptool-%{mver}.1* |
1c8473da | 533 | %{_mandir}/man1/gimptool.1* |
4fb170e2 | 534 | |
535 | %files static | |
dd12c98b | 536 | %defattr(644,root,root,755) |
957f00ca JB |
537 | %{_libdir}/libgimp-2.0.a |
538 | %{_libdir}/libgimpbase-2.0.a | |
539 | %{_libdir}/libgimpcolor-2.0.a | |
540 | %{_libdir}/libgimpconfig-2.0.a | |
541 | %{_libdir}/libgimpmath-2.0.a | |
542 | %{_libdir}/libgimpmodule-2.0.a | |
543 | %{_libdir}/libgimpthumb-2.0.a | |
544 | %{_libdir}/libgimpui-2.0.a | |
545 | %{_libdir}/libgimpwidgets-2.0.a | |
32d149f2 | 546 | |
4ec919fd MB |
547 | %files apidocs |
548 | %defattr(644,root,root,755) | |
957f00ca JB |
549 | %{_gtkdocdir}/libgimp |
550 | %{_gtkdocdir}/libgimpbase | |
551 | %{_gtkdocdir}/libgimpcolor | |
552 | %{_gtkdocdir}/libgimpconfig | |
553 | %{_gtkdocdir}/libgimpmath | |
554 | %{_gtkdocdir}/libgimpmodule | |
555 | %{_gtkdocdir}/libgimpthumb | |
556 | %{_gtkdocdir}/libgimpwidgets | |
4ec919fd | 557 | |
e30886a4 | 558 | %if %{with aalib} |
32d149f2 | 559 | %files aa |
dd12c98b | 560 | %defattr(644,root,root,755) |
d4575fcf | 561 | %attr(755,root,root) %{_libdir}/gimp/%{mver}/plug-ins/file-aa |
579bb1d3 | 562 | %endif |
9e868ea9 | 563 | |
fc9fae14 JB |
564 | %files svg |
565 | %defattr(644,root,root,755) | |
d4575fcf | 566 | %attr(755,root,root) %{_libdir}/gimp/%{mver}/plug-ins/file-svg |