]>
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 | |
48087da1 JB |
9 | %define babl_ver 0.1.78 |
10 | %define gegl_ver 0.4.30 | |
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 |
48087da1 | 25 | Version: 2.10.24 |
758c8cde | 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 |
48087da1 | 31 | # Source0-md5: 31e4a055ba34e6841f42a6b2439ca480 |
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 |
48087da1 | 54 | BuildRequires: glib2-devel >= 1:2.56.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 |
48087da1 | 65 | BuildRequires: libheif-devel >= 1.10 |
589cb4c6 | 66 | BuildRequires: libjpeg-devel |
211ee8fb | 67 | BuildRequires: libmng-devel |
48087da1 | 68 | BuildRequires: libmypaint-devel >= 1.4.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 |
48087da1 | 79 | BuildRequires: pango-devel >= 1:1.32.0 |
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 | 108 | Requires: json-glib >= 1.2.6 |
48087da1 JB |
109 | Requires: libheif >= 1.10 |
110 | Requires: libmypaint >= 1.4.0 | |
50c61980 JB |
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 | |
48087da1 | 230 | Requires: glib2 >= 1:2.56.2 |
50c61980 JB |
231 | Requires: gtk+2 >= 2:2.24.32 |
232 | Requires: lcms2 >= 2.8 | |
48087da1 | 233 | Requires: pango >= 1:1.32.0 |
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} | |
48087da1 | 259 | Requires: glib2-devel >= 1:2.56.2 |
50c61980 | 260 | Requires: gtk+2-devel >= 2:2.24.32 |
48087da1 | 261 | Requires: pango-devel >= 1:1.32.0 |
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 | 305 | BuildArch: noarch |
4ec919fd MB |
306 | |
307 | %description apidocs | |
308 | GIMP API documentation. | |
309 | ||
310 | %description apidocs -l pl.UTF-8 | |
311 | Dokumentacja API GIMPa. | |
312 | ||
32d149f2 | 313 | %package aa |
4ec919fd MB |
314 | Summary: ASCII Art plugin for GIMP |
315 | Summary(fr.UTF-8): Plugin d'art ASCII pour GIMP | |
316 | Summary(pl.UTF-8): Wtyczka do ASCII Art do GIMPa | |
32d149f2 | 317 | Group: X11/Applications/Graphics |
77278c4a | 318 | Requires: %{name} = %{epoch}:%{version}-%{release} |
32d149f2 | 319 | |
320 | %description aa | |
9732a65f | 321 | This package contains the ASCII Art plugin which requires the aalib |
322 | shared library. | |
32d149f2 | 323 | |
61ef8941 JR |
324 | %description aa -l fr.UTF-8 |
325 | Ce paquet contient le plugin d'art ASCII qui nécéssite la librairie | |
326 | partagée aalib. | |
32d149f2 | 327 | |
61ef8941 | 328 | %description aa -l pl.UTF-8 |
4ec919fd | 329 | Ten pakiet zawiera wtyczkę do GIMPa ze wsparciem do ASCII Art. |
fa0aabeb | 330 | |
fc9fae14 | 331 | %package svg |
4ec919fd MB |
332 | Summary: SVG plugin for GIMP |
333 | Summary(pl.UTF-8): Wtyczka SVG dla GIMPa | |
fc9fae14 JB |
334 | Group: X11/Applications/Graphics |
335 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
50c61980 | 336 | Requires: librsvg >= 1:2.40.6 |
fc9fae14 JB |
337 | |
338 | %description svg | |
4ec919fd | 339 | SVG plugin for GIMP. |
fc9fae14 | 340 | |
61ef8941 | 341 | %description svg -l pl.UTF-8 |
4ec919fd | 342 | Wtyczka SVG dla GIMPa. |
fc9fae14 | 343 | |
d4aa4a70 | 344 | %prep |
7f01ce5f | 345 | %setup -q |
c3ea1d23 | 346 | %patch0 -p1 |
ad809b9e | 347 | %patch2 -p1 |
50c61980 | 348 | %patch3 -p1 |
017978a0 | 349 | |
b55100d9 JB |
350 | %{__sed} -i -e '1s,/usr/bin/env python,%{__python},' plug-ins/pygimp/plug-ins/gradients-save-as-css.py |
351 | ||
4fb170e2 | 352 | %build |
94f11a79 | 353 | %{__rm} acinclude.m4 |
ed6d7c60 | 354 | %{__gtkdocize} |
a612bf8c | 355 | %{__libtoolize} |
fd63ac9e | 356 | %{__aclocal} -I m4macros |
a612bf8c | 357 | %{__autoconf} |
9917462c JB |
358 | %{__autoheader} |
359 | %{__automake} | |
a2c095ed | 360 | %configure \ |
ee10671e | 361 | %{!?with_python:--disable-python} \ |
89242cdd | 362 | --disable-silent-rules \ |
ad809b9e | 363 | --enable-default-binary \ |
ad809b9e | 364 | --enable-gtk-doc \ |
ee10671e | 365 | --enable-static \ |
50c61980 JB |
366 | --without-appdata-test \ |
367 | --with-bug-report-url="https://www.pld-linux.org/" \ | |
ee10671e | 368 | --with-html-dir=%{_gtkdocdir} \ |
a53312dc | 369 | --with-lcms=2 \ |
50c61980 JB |
370 | %{!?with_libunwind:--without-libunwind} \ |
371 | --with-sendmail=/usr/lib/sendmail \ | |
ee10671e | 372 | %{?with_posix_shm:--with-shm=posix} \ |
50c61980 | 373 | %{!?with_webkit:--without-webkit} |
6843b505 | 374 | |
8bba970f | 375 | %{__make} |
4fb170e2 | 376 | |
377 | %install | |
378 | rm -rf $RPM_BUILD_ROOT | |
4fb170e2 | 379 | |
861ea416 | 380 | %{__make} install \ |
92ae10a0 | 381 | DESTDIR=$RPM_BUILD_ROOT |
4fb170e2 | 382 | |
d4575fcf | 383 | # Link gimptool to gimptool-2.0.1 |
245195de | 384 | ln -s gimptool-2.0 $RPM_BUILD_ROOT%{_bindir}/gimptool |
d4575fcf | 385 | echo '.so gimptool-2.0.1' > $RPM_BUILD_ROOT%{_mandir}/man1/gimptool.1 |
4490db1c | 386 | |
50c61980 JB |
387 | # obsoleted by pkg-config |
388 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgimp*.la | |
389 | # dynamic modules loaded via gmodule | |
1f31051b | 390 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gimp/%{mver}/modules/*.{a,la} |
0c00a9ba | 391 | %if %{with python} |
1f31051b | 392 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gimp/%{mver}/python/*.{a,la,py} |
0c00a9ba | 393 | %endif |
893e7980 | 394 | |
50c61980 JB |
395 | # don't hide {python,python2,python3} behind /usr/bin/env |
396 | %{__sed} -i -e '1s,/usr/bin/env python,/usr/bin/python,' $RPM_BUILD_ROOT%{_libdir}/gimp/%{mver}/plug-ins/*/*.py | |
397 | ||
f67c6b3a | 398 | %find_lang %{name} --all-name |
399 | ||
e92dedfc | 400 | %clean |
401 | rm -rf $RPM_BUILD_ROOT | |
402 | ||
9a4c7b85 | 403 | %post |
1807b144 | 404 | umask 022 |
e7c50af4 | 405 | [ ! -x %{_bindir}/update-desktop-database ] || %{_bindir}/update-desktop-database >/dev/null 2>&1 ||: |
6f8083d8 | 406 | %update_icon_cache hicolor |
9a4c7b85 | 407 | |
408 | %postun | |
1807b144 | 409 | umask 022 |
e7c50af4 | 410 | [ ! -x %{_bindir}/update-desktop-database ] || %{_bindir}/update-desktop-database >/dev/null 2>&1 |
6f8083d8 | 411 | %update_icon_cache hicolor |
1e34549c | 412 | |
ad809b9e AM |
413 | %post libs -p /sbin/ldconfig |
414 | %postun libs -p /sbin/ldconfig | |
71900306 | 415 | |
270bb890 | 416 | %files -f %{name}.lang |
a070df27 | 417 | %defattr(644,root,root,755) |
9b6bf357 | 418 | %doc AUTHORS ChangeLog LICENSE NEWS README |
ad809b9e | 419 | %doc docs/Wilber* |
0b48eaed | 420 | |
e7c50af4 | 421 | %attr(755,root,root) %{_bindir}/gimp-2.10 |
4707e19d | 422 | %attr(755,root,root) %{_bindir}/gimp |
e7c50af4 | 423 | %attr(755,root,root) %{_bindir}/gimp-console-2.10 |
4ec919fd | 424 | %attr(755,root,root) %{_bindir}/gimp-console |
fd8d318e | 425 | %attr(755,root,root) %{_bindir}/gimp-test-clipboard-2.0 |
e7c50af4 AM |
426 | %attr(755,root,root) %{_libexecdir}/gimp-debug-tool-2.0 |
427 | %{_datadir}/metainfo/gimp-data-extras.metainfo.xml | |
428 | %{_datadir}/metainfo/org.gimp.GIMP.appdata.xml | |
139a4615 | 429 | %{_desktopdir}/gimp.desktop |
50c61980 | 430 | %{_iconsdir}/hicolor/*x*/apps/gimp.png |
e7c50af4 | 431 | %{_mandir}/man1/gimp-2.10.1* |
81599acc | 432 | %{_mandir}/man1/gimp.1* |
e7c50af4 | 433 | %{_mandir}/man1/gimp-console-2.10.1* |
81599acc | 434 | %{_mandir}/man1/gimp-console.1* |
e7c50af4 | 435 | %{_mandir}/man5/gimprc-2.10.5* |
81599acc | 436 | %{_mandir}/man5/gimprc.5* |
4fb170e2 | 437 | |
b1fd7741 | 438 | %dir %{_libdir}/gimp |
439 | %dir %{_libdir}/gimp/%{mver} | |
440 | %dir %{_libdir}/gimp/%{mver}/plug-ins | |
ad809b9e | 441 | %{_libdir}/gimp/%{mver}/interpreters |
f67c6b3a | 442 | %attr(755,root,root) %{_libdir}/gimp/%{mver}/plug-ins/* |
d4575fcf AM |
443 | %{?with_aalib:%exclude %{_libdir}/gimp/%{mver}/plug-ins/file-aa} |
444 | %exclude %{_libdir}/gimp/%{mver}/plug-ins/file-svg | |
f67c6b3a | 445 | |
b1fd7741 | 446 | %dir %{_libdir}/gimp/%{mver}/modules |
447 | %attr(755,root,root) %{_libdir}/gimp/%{mver}/modules/*.so | |
795282aa | 448 | %{_libdir}/gimp/%{mver}/environ |
b1fd7741 | 449 | |
e30886a4 | 450 | %if %{with python} |
5e1b99fc | 451 | %dir %{_libdir}/gimp/%{mver}/python |
452 | %{_libdir}/gimp/%{mver}/python/*.py[co] | |
5f53c47d | 453 | %{_libdir}/gimp/%{mver}/python/*.png |
5e1b99fc | 454 | %attr(755,root,root) %{_libdir}/gimp/%{mver}/python/*.so |
e30886a4 | 455 | %endif |
5e1b99fc | 456 | |
6d30914e | 457 | %dir %{_datadir}/gimp |
b1fd7741 | 458 | %dir %{_datadir}/gimp/%{mver} |
b55100d9 | 459 | %{_datadir}/gimp/%{mver}/gimp-release |
b1fd7741 | 460 | %{_datadir}/gimp/%{mver}/brushes |
0c00a9ba | 461 | %{_datadir}/gimp/%{mver}/dynamics |
e7c50af4 | 462 | %{_datadir}/gimp/%{mver}/file-raw |
b1fd7741 | 463 | %{_datadir}/gimp/%{mver}/fractalexplorer |
464 | %{_datadir}/gimp/%{mver}/gfig | |
465 | %{_datadir}/gimp/%{mver}/gflare | |
466 | %{_datadir}/gimp/%{mver}/gimpressionist | |
467 | %{_datadir}/gimp/%{mver}/gradients | |
e7c50af4 | 468 | %{_datadir}/gimp/%{mver}/icons |
b1fd7741 | 469 | %{_datadir}/gimp/%{mver}/images |
9a4c7b85 | 470 | %{_datadir}/gimp/%{mver}/menus |
b1fd7741 | 471 | %{_datadir}/gimp/%{mver}/palettes |
472 | %{_datadir}/gimp/%{mver}/patterns | |
473 | %{_datadir}/gimp/%{mver}/scripts | |
0c00a9ba | 474 | %{_datadir}/gimp/%{mver}/tags |
b1fd7741 | 475 | %{_datadir}/gimp/%{mver}/themes |
476 | %{_datadir}/gimp/%{mver}/tips | |
0c00a9ba | 477 | %{_datadir}/gimp/%{mver}/tool-presets |
478 | %{_datadir}/gimp/%{mver}/ui | |
b1fd7741 | 479 | |
c2ff8846 | 480 | %dir %{_sysconfdir}/%{name} |
481 | %dir %{_sysconfdir}/%{name}/%{mver} | |
b55100d9 | 482 | %config %verify(not md5 mtime size) %{_sysconfdir}/%{name}/%{mver}/gimprc* |
c2ff8846 | 483 | %config(noreplace) %{_sysconfdir}/%{name}/%{mver}/templaterc |
ad809b9e | 484 | %config %{_sysconfdir}/%{name}/%{mver}/controllerrc |
c2ff8846 | 485 | %config %{_sysconfdir}/%{name}/%{mver}/gtkrc* |
ad809b9e | 486 | %config %{_sysconfdir}/%{name}/%{mver}/menurc |
96930415 | 487 | %config %{_sysconfdir}/%{name}/%{mver}/sessionrc |
b55100d9 | 488 | %config %{_sysconfdir}/%{name}/%{mver}/toolrc |
c2ff8846 | 489 | %config %{_sysconfdir}/%{name}/%{mver}/unitrc |
a2c095ed | 490 | |
ad809b9e AM |
491 | %files libs |
492 | %defattr(644,root,root,755) | |
957f00ca JB |
493 | %attr(755,root,root) %{_libdir}/libgimp-2.0.so.*.*.* |
494 | %attr(755,root,root) %ghost %{_libdir}/libgimp-2.0.so.0 | |
495 | %attr(755,root,root) %{_libdir}/libgimpbase-2.0.so.*.*.* | |
496 | %attr(755,root,root) %ghost %{_libdir}/libgimpbase-2.0.so.0 | |
497 | %attr(755,root,root) %{_libdir}/libgimpcolor-2.0.so.*.*.* | |
498 | %attr(755,root,root) %ghost %{_libdir}/libgimpcolor-2.0.so.0 | |
499 | %attr(755,root,root) %{_libdir}/libgimpconfig-2.0.so.*.*.* | |
500 | %attr(755,root,root) %ghost %{_libdir}/libgimpconfig-2.0.so.0 | |
501 | %attr(755,root,root) %{_libdir}/libgimpmath-2.0.so.*.*.* | |
502 | %attr(755,root,root) %ghost %{_libdir}/libgimpmath-2.0.so.0 | |
503 | %attr(755,root,root) %{_libdir}/libgimpmodule-2.0.so.*.*.* | |
504 | %attr(755,root,root) %ghost %{_libdir}/libgimpmodule-2.0.so.0 | |
505 | %attr(755,root,root) %{_libdir}/libgimpthumb-2.0.so.*.*.* | |
506 | %attr(755,root,root) %ghost %{_libdir}/libgimpthumb-2.0.so.0 | |
507 | %attr(755,root,root) %{_libdir}/libgimpui-2.0.so.*.*.* | |
508 | %attr(755,root,root) %ghost %{_libdir}/libgimpui-2.0.so.0 | |
509 | %attr(755,root,root) %{_libdir}/libgimpwidgets-2.0.so.*.*.* | |
510 | %attr(755,root,root) %ghost %{_libdir}/libgimpwidgets-2.0.so.0 | |
4fb170e2 | 511 | |
512 | %files devel | |
513 | %defattr(644,root,root,755) | |
9a4c7b85 | 514 | %attr(755,root,root) %{_bindir}/gimptool-%{mver} |
4490db1c | 515 | %attr(755,root,root) %{_bindir}/gimptool |
957f00ca JB |
516 | %attr(755,root,root) %{_libdir}/libgimp-2.0.so |
517 | %attr(755,root,root) %{_libdir}/libgimpbase-2.0.so | |
518 | %attr(755,root,root) %{_libdir}/libgimpcolor-2.0.so | |
519 | %attr(755,root,root) %{_libdir}/libgimpconfig-2.0.so | |
520 | %attr(755,root,root) %{_libdir}/libgimpmath-2.0.so | |
521 | %attr(755,root,root) %{_libdir}/libgimpmodule-2.0.so | |
522 | %attr(755,root,root) %{_libdir}/libgimpthumb-2.0.so | |
523 | %attr(755,root,root) %{_libdir}/libgimpui-2.0.so | |
524 | %attr(755,root,root) %{_libdir}/libgimpwidgets-2.0.so | |
957f00ca JB |
525 | %{_pkgconfigdir}/gimp-2.0.pc |
526 | %{_pkgconfigdir}/gimpthumb-2.0.pc | |
527 | %{_pkgconfigdir}/gimpui-2.0.pc | |
9a4c7b85 | 528 | %{_includedir}/gimp-2.0 |
3a9958b6 | 529 | %{_aclocaldir}/gimp-2.0.m4 |
957f00ca | 530 | %{_mandir}/man1/gimptool-%{mver}.1* |
1c8473da | 531 | %{_mandir}/man1/gimptool.1* |
4fb170e2 | 532 | |
533 | %files static | |
dd12c98b | 534 | %defattr(644,root,root,755) |
957f00ca JB |
535 | %{_libdir}/libgimp-2.0.a |
536 | %{_libdir}/libgimpbase-2.0.a | |
537 | %{_libdir}/libgimpcolor-2.0.a | |
538 | %{_libdir}/libgimpconfig-2.0.a | |
539 | %{_libdir}/libgimpmath-2.0.a | |
540 | %{_libdir}/libgimpmodule-2.0.a | |
541 | %{_libdir}/libgimpthumb-2.0.a | |
542 | %{_libdir}/libgimpui-2.0.a | |
543 | %{_libdir}/libgimpwidgets-2.0.a | |
32d149f2 | 544 | |
4ec919fd MB |
545 | %files apidocs |
546 | %defattr(644,root,root,755) | |
957f00ca JB |
547 | %{_gtkdocdir}/libgimp |
548 | %{_gtkdocdir}/libgimpbase | |
549 | %{_gtkdocdir}/libgimpcolor | |
550 | %{_gtkdocdir}/libgimpconfig | |
551 | %{_gtkdocdir}/libgimpmath | |
552 | %{_gtkdocdir}/libgimpmodule | |
553 | %{_gtkdocdir}/libgimpthumb | |
554 | %{_gtkdocdir}/libgimpwidgets | |
4ec919fd | 555 | |
e30886a4 | 556 | %if %{with aalib} |
32d149f2 | 557 | %files aa |
dd12c98b | 558 | %defattr(644,root,root,755) |
d4575fcf | 559 | %attr(755,root,root) %{_libdir}/gimp/%{mver}/plug-ins/file-aa |
579bb1d3 | 560 | %endif |
9e868ea9 | 561 | |
fc9fae14 JB |
562 | %files svg |
563 | %defattr(644,root,root,755) | |
d4575fcf | 564 | %attr(755,root,root) %{_libdir}/gimp/%{mver}/plug-ins/file-svg |