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