]>
Commit | Line | Data |
---|---|---|
fcef663f | 1 | # |
df6da6cb | 2 | # Conditional build: |
6f014dd4 | 3 | %bcond_without apidocs # gtk-doc build |
ee442e22 JB |
4 | %bcond_without cloudprint # cloudprint print backend |
5 | %bcond_without cups # CUPS print backend | |
6 | %bcond_without papi # PAPI print backend | |
6f014dd4 | 7 | %bcond_without broadway # Broadway target |
bf4574b0 | 8 | %bcond_with sysprof # sysprof profiler support |
3be571ff | 9 | %bcond_with typeahead # Typeahead in open dialog |
6f014dd4 | 10 | %bcond_without wayland # Wayland target |
e9da199f | 11 | %bcond_with cloudproviders # libcloudproviders integration |
6f014dd4 | 12 | %bcond_without static_libs # static library build |
41d59618 | 13 | |
df6da6cb MB |
14 | Summary: The GIMP Toolkit |
15 | Summary(cs.UTF-8): Sada nástrojů pro GIMP | |
16 | Summary(de.UTF-8): Der GIMP-Toolkit | |
17 | Summary(fi.UTF-8): GIMP-työkalukokoelma | |
18 | Summary(fr.UTF-8): Le toolkit de GIMP | |
19 | Summary(it.UTF-8): Il toolkit per GIMP | |
20 | Summary(pl.UTF-8): GIMP Toolkit | |
21 | Summary(tr.UTF-8): GIMP ToolKit arayüz kitaplığı | |
22 | Name: gtk+3 | |
9cbc60a1 | 23 | Version: 3.24.23 |
dafcff72 | 24 | Release: 1 |
df6da6cb MB |
25 | License: LGPL v2+ |
26 | Group: X11/Libraries | |
7fc82876 | 27 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gtk+/3.24/gtk+-%{version}.tar.xz |
9cbc60a1 | 28 | # Source0-md5: fb383236280fb272ad5eb819f80ceb17 |
2b9b05b4 | 29 | Patch0: %{name}-papi.patch |
3be571ff | 30 | Patch1: typeahead.patch |
1f5ff9c1 | 31 | Patch2: %{name}-cloudproviders.patch |
bf4574b0 | 32 | URL: https://www.gtk.org/ |
bdc89444 | 33 | BuildRequires: at-spi2-atk-devel >= 2.6.0 |
4e9dc432 | 34 | BuildRequires: atk-devel >= 1:2.16.0 |
df6da6cb MB |
35 | BuildRequires: autoconf >= 2.62 |
36 | BuildRequires: automake >= 1:1.11 | |
0d45598e | 37 | # cairo-gobject + cairo-pdf,cairo-ps,cairo-svg |
4e9dc432 | 38 | BuildRequires: cairo-gobject-devel >= 1.14.0 |
381c593f | 39 | BuildRequires: colord-devel >= 0.1.9 |
2b9b05b4 | 40 | %if %{with cups} || %{with papi} |
23d30dd7 | 41 | BuildRequires: cups-devel >= 1:1.7 |
2b9b05b4 | 42 | %endif |
df6da6cb | 43 | BuildRequires: docbook-dtd412-xml |
74093dc4 | 44 | BuildRequires: docbook-style-xsl-nons |
f09aac54 | 45 | BuildRequires: fontconfig-devel |
bf4574b0 | 46 | BuildRequires: fribidi-devel >= 0.19.7 |
c3ba6aef | 47 | BuildRequires: gdk-pixbuf2-devel >= 2.31.0 |
cd2d5c9a | 48 | BuildRequires: gettext-tools >= 0.19.7 |
e36fd24d | 49 | BuildRequires: glib2-devel >= 1:2.57.2 |
4b55f7b7 | 50 | BuildRequires: gobject-introspection-devel >= 1.39.0 |
0409c8bb | 51 | %if %{with apidocs} |
4b55f7b7 ŁK |
52 | BuildRequires: gtk-doc >= 1.20 |
53 | BuildRequires: gtk-doc-automake >= 1.20 | |
0409c8bb | 54 | %endif |
64eff0b7 | 55 | BuildRequires: harfbuzz-devel >= 0.9 |
f09aac54 | 56 | BuildRequires: iso-codes |
ee442e22 | 57 | %{?with_cloudprint:BuildRequires: json-glib-devel >= 1.0} |
e9da199f | 58 | %{?with_cloudproviders:BuildRequires: libcloudproviders-devel >= 0.2.5} |
f09aac54 | 59 | BuildRequires: libepoxy-devel >= 1.4 |
0ab1241b | 60 | BuildRequires: libstdc++-devel |
d96ac102 | 61 | BuildRequires: libtool >= 2:2.2.6 |
df6da6cb MB |
62 | BuildRequires: libxml2-progs >= 1:2.6.31 |
63 | BuildRequires: libxslt-progs >= 1.1.20 | |
f09aac54 | 64 | BuildRequires: pango-devel >= 1:1.41.0 |
2b9b05b4 | 65 | %{?with_papi:BuildRequires: papi-devel} |
df6da6cb MB |
66 | BuildRequires: perl-base |
67 | BuildRequires: pkgconfig | |
ee442e22 | 68 | %{?with_cloudprint:BuildRequires: rest-devel >= 0.7} |
df6da6cb | 69 | BuildRequires: rpm-pythonprov |
93de6ff7 | 70 | BuildRequires: rpmbuild(macros) >= 1.592 |
337aa9ac | 71 | BuildRequires: sed >= 4.0 |
0ab1241b | 72 | BuildRequires: sqlite3-devel |
bf4574b0 | 73 | %{?with_sysprof:BuildRequires: sysprof-devel >= 3.33.2} |
0ab1241b | 74 | BuildRequires: tar >= 1:1.22 |
41d59618 | 75 | BuildRequires: xorg-lib-libX11-devel >= 1.5.0 |
df6da6cb MB |
76 | BuildRequires: xorg-lib-libXcomposite-devel |
77 | BuildRequires: xorg-lib-libXcursor-devel | |
78 | BuildRequires: xorg-lib-libXdamage-devel | |
79 | BuildRequires: xorg-lib-libXext-devel | |
80 | BuildRequires: xorg-lib-libXfixes-devel | |
81 | BuildRequires: xorg-lib-libXft-devel | |
82 | BuildRequires: xorg-lib-libXi-devel | |
83 | BuildRequires: xorg-lib-libXinerama-devel | |
cd2d5c9a | 84 | BuildRequires: xorg-lib-libXrandr-devel >= 1.5.0 |
df6da6cb | 85 | BuildRequires: xorg-lib-libXrender-devel |
381c593f | 86 | BuildRequires: xz |
6f014dd4 JB |
87 | %{?with_broadway:BuildRequires: zlib-devel} |
88 | %if %{with wayland} | |
0d45598e | 89 | # wayland-client, wayland-cursor, wayland-scanner |
bf4574b0 | 90 | BuildRequires: wayland-devel >= 1.14.91 |
67b2ca83 | 91 | BuildRequires: wayland-egl-devel |
bf4574b0 | 92 | BuildRequires: wayland-protocols >= 1.14 |
6f014dd4 JB |
93 | BuildRequires: xorg-lib-libxkbcommon-devel >= 0.2.0 |
94 | %endif | |
41d59618 | 95 | Requires: xorg-lib-libX11 >= 1.5.0 |
e36fd24d | 96 | Requires(post,postun): glib2 >= 1:2.57.2 |
4e9dc432 MB |
97 | Requires: atk >= 1:2.16.0 |
98 | Requires: cairo-gobject >= 1.14.0 | |
bf4574b0 | 99 | Requires: fribidi >= 0.19.7 |
c3ba6aef | 100 | Requires: gdk-pixbuf2 >= 2.31.0 |
e36fd24d | 101 | Requires: glib2 >= 1:2.57.2 |
e9da199f | 102 | %{?with_cloudproviders:Requires: libcloudproviders >= 0.2.5} |
f09aac54 JB |
103 | Requires: libepoxy >= 1.4 |
104 | Requires: pango >= 1:1.41.0 | |
bf4574b0 | 105 | %{?with_sysprof:Requires: sysprof >= 3.33.2} |
baa99f47 | 106 | Requires: xorg-lib-libXi >= 1.3.0 |
cd2d5c9a | 107 | Requires: xorg-lib-libXrandr >= 1.5.0 |
6f014dd4 | 108 | %if %{with wayland} |
bf4574b0 | 109 | Requires: wayland >= 1.14.91 |
6f014dd4 JB |
110 | Requires: xorg-lib-libxkbcommon >= 0.2.0 |
111 | %endif | |
e5dca4b8 AF |
112 | # evince is used as gtk-print-preview-command by default |
113 | Suggests: evince-backend-pdf | |
df6da6cb MB |
114 | %if %{with cups} |
115 | # cups is used by default if gtk+ is built with cups | |
116 | Suggests: %{name}-cups = %{version}-%{release} | |
117 | %endif | |
118 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
119 | ||
120 | %define abivers 3.0.0 | |
121 | ||
122 | %if "%{_lib}" != "lib" | |
123 | %define libext %(lib="%{_lib}"; echo ${lib#lib}) | |
df6da6cb MB |
124 | %define pqext -%{libext} |
125 | %else | |
df6da6cb MB |
126 | %define pqext %{nil} |
127 | %endif | |
128 | ||
129 | %description | |
130 | GTK+, which stands for the GIMP ToolKit, is a library for creating | |
131 | graphical user interfaces for the X Window System. It is designed to | |
132 | be small, efficient, and flexible. GTK+ is written in C with a very | |
133 | object-oriented approach. GDK (part of GTK+) is a drawing toolkit | |
134 | which provides a thin layer over Xlib to help automate things like | |
135 | dealing with different color depths, and GTK is a widget set for | |
136 | creating user interfaces. | |
137 | ||
138 | %description -l cs.UTF-8 | |
139 | Knihovny X původně psané pro GIMP, které nyní používá také řada jiných | |
140 | programů. | |
141 | ||
142 | %description -l da.UTF-8 | |
143 | X biblioteker, oprindeligt udviklet til GIMP, men anvendes nu af flere | |
144 | forskellige programmer. | |
145 | ||
146 | %description -l de.UTF-8 | |
147 | Die X-Libraries, die ursprünglich für GIMP geschrieben wurden und | |
148 | mittlerweile für eine ganze Reihe anderer Programme benutzt werden. | |
149 | ||
150 | %description -l fr.UTF-8 | |
151 | X-kirjastot, jotka alunperin kirjoitettiin GIMP:lle, mutta joita | |
152 | käytetään nyt myös useissa muissakin ohjelmissa. | |
153 | ||
154 | %description -l it.UTF-8 | |
155 | Libreria X scritta per GIMP. Viene usata da diversi programmi. | |
156 | ||
157 | %description -l pl.UTF-8 | |
158 | GTK+, która to biblioteka stała się podstawą programu GIMP, zawiera | |
159 | funkcje do tworzenia graficznego interfejsu użytkownika pod X Window. | |
160 | Była tworzona z założeniem żeby była mała, efektywna i wygodna. GTK+ | |
161 | jest napisane w C z podejściem zorientowanym bardzo obiektowo. GDK | |
162 | (część GTK+) jest warstwą pośrednią pomiędzy Xlib a właściwym GTK | |
163 | zapewniającą pracę niezależnie od głębi koloru (ilości bitów na | |
164 | piksel). GTK (druga część GTK+) jest natomiast już zbiorem różnego | |
165 | rodzaju kontrolek służących do tworzenia interfejsu użytkownika. | |
166 | ||
167 | %description -l tr.UTF-8 | |
168 | Başlangıçta GIMP için yazılmış X kitaplıkları. Şu anda başka | |
169 | programlarca da kullanılmaktadır. | |
170 | ||
f908a1eb | 171 | %package -n gtk-update-icon-cache |
fcef663f JB |
172 | Summary: Utility to update icon cache used by GTK+ library |
173 | Summary(pl.UTF-8): Narzędzie do uaktualniania cache'a ikon używanego przez bibliotekę GTK+ | |
f908a1eb | 174 | Group: Applications/System |
c3ba6aef | 175 | Requires: gdk-pixbuf2 >= 2.31.0 |
e36fd24d | 176 | Requires: glib2 >= 1:2.57.2 |
f908a1eb AF |
177 | |
178 | %description -n gtk-update-icon-cache | |
fcef663f JB |
179 | Utility to update icon cache used by GTK+ library. |
180 | ||
181 | %description -n gtk-update-icon-cache -l pl.UTF-8 | |
182 | Narzędzie do uaktualniania cache'a ikon używanego przez bibliotekę | |
183 | GTK+. | |
f908a1eb | 184 | |
df6da6cb MB |
185 | %package devel |
186 | Summary: GTK+ header files and development documentation | |
187 | Summary(cs.UTF-8): Sada nástrojů GIMP a kreslící kit GIMP | |
188 | Summary(da.UTF-8): GIMP Toolkit og GIMP Tegnings-værktøj | |
189 | Summary(de.UTF-8): GIMP Toolkit und GIMP Drawing Kit | |
190 | Summary(fi.UTF-8): Gimp-työkalukokoelma ja Gimp-piirtotyökalut | |
191 | Summary(fr.UTF-8): Toolkit de GIMP (GTK) et Kit de dessin de GIMP (GDK) | |
192 | Summary(it.UTF-8): GIMP Toolkit and GIMP Drawing Kit | |
193 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do GTK+ | |
194 | Summary(tr.UTF-8): GIMP araç takımı ve çizim takımı | |
195 | Group: X11/Development/Libraries | |
196 | Requires: %{name} = %{version}-%{release} | |
bdc89444 | 197 | Requires: at-spi2-atk-devel >= 2.6.0 |
4e9dc432 MB |
198 | Requires: atk-devel >= 1:2.16.0 |
199 | Requires: cairo-gobject-devel >= 1.14.0 | |
bf4574b0 | 200 | Requires: fribidi-devel >= 0.19.7 |
c3ba6aef | 201 | Requires: gdk-pixbuf2-devel >= 2.31.0 |
e36fd24d | 202 | Requires: glib2-devel >= 1:2.57.2 |
f09aac54 | 203 | Requires: pango-devel >= 1:1.41.0 |
df6da6cb | 204 | Requires: shared-mime-info |
bf4574b0 JB |
205 | %{?with_sysprof:Requires: sysprof-devel >= 3.33.2} |
206 | %if %{with wayland} | |
207 | Requires: wayland-devel >= 1.14.91 | |
208 | Requires: wayland-egl-devel | |
209 | Requires: wayland-protocols >= 1.14 | |
210 | Requires: xorg-lib-libxkbcommon-devel >= 0.2.0 | |
211 | %endif | |
df6da6cb MB |
212 | |
213 | %description devel | |
214 | Header files and development documentation for the GTK+ libraries. | |
215 | ||
216 | %description devel -l pl.UTF-8 | |
217 | Pliki nagłówkowe i dokumentacja do bibliotek GTK+. | |
218 | ||
219 | %package static | |
220 | Summary: GTK+ static libraries | |
221 | Summary(pl.UTF-8): Biblioteki statyczne GTK+ | |
222 | Group: X11/Development/Libraries | |
223 | Requires: %{name}-devel = %{version}-%{release} | |
224 | ||
225 | %description static | |
226 | GTK+ static libraries. | |
227 | ||
228 | %description static -l pl.UTF-8 | |
229 | Biblioteki statyczne GTK+ | |
230 | ||
231 | %package apidocs | |
232 | Summary: GTK+ API documentation | |
233 | Summary(pl.UTF-8): Dokumentacja API GTK+ | |
234 | Group: Documentation | |
235 | Requires: gtk-doc-common | |
483e4247 ER |
236 | %if "%{_rpmversion}" >= "5" |
237 | BuildArch: noarch | |
238 | %endif | |
df6da6cb MB |
239 | |
240 | %description apidocs | |
241 | GTK+ API documentation. | |
242 | ||
243 | %description apidocs -l pl.UTF-8 | |
244 | Dokumentacja API GTK+. | |
245 | ||
246 | %package examples | |
247 | Summary: GTK+ - example programs | |
248 | Summary(pl.UTF-8): GTK+ - programy przykładowe | |
249 | Group: X11/Development/Libraries | |
e36fd24d | 250 | Requires(post,postun): glib2 >= 1:2.57.2 |
df6da6cb MB |
251 | Requires: %{name}-devel = %{version}-%{release} |
252 | ||
253 | %description examples | |
254 | GTK+ - example programs. | |
255 | ||
256 | %description examples -l pl.UTF-8 | |
257 | GTK+ - przykładowe programy. | |
258 | ||
ee442e22 JB |
259 | %package cloudprint |
260 | Summary: Cloudprint printing module for GTK+ | |
261 | Summary(pl.UTF-8): Moduł GTK+ do drukowania przez Cloudprint | |
262 | Group: X11/Libraries | |
263 | Requires: %{name} = %{version}-%{release} | |
264 | ||
265 | %description cloudprint | |
266 | Cloudprint printing module for GTK+. | |
267 | ||
268 | %description cloudprint -l pl.UTF-8 | |
269 | Moduł GTK+ do drukowania przez Cloudprint. | |
270 | ||
df6da6cb MB |
271 | %package cups |
272 | Summary: CUPS printing module for GTK+ | |
273 | Summary(pl.UTF-8): Moduł GTK+ do drukowania przez CUPS | |
274 | Group: X11/Libraries | |
275 | Requires: %{name} = %{version}-%{release} | |
276 | ||
277 | %description cups | |
278 | CUPS printing module for GTK+. | |
279 | ||
280 | %description cups -l pl.UTF-8 | |
281 | Moduł GTK+ do drukowania przez CUPS. | |
282 | ||
2b9b05b4 JB |
283 | %package papi |
284 | Summary: PAPI printing module for GTK+ | |
285 | Summary(pl.UTF-8): Moduł GTK+ do drukowania przez PAPI | |
286 | Group: X11/Libraries | |
287 | Requires: %{name} = %{version}-%{release} | |
288 | Requires: papi | |
289 | ||
290 | %description papi | |
291 | PAPI printing module for GTK+. | |
292 | ||
293 | %description papi -l pl.UTF-8 | |
294 | Moduł GTK+ do drukowania przez PAPI. | |
295 | ||
df6da6cb MB |
296 | %prep |
297 | %setup -q -n gtk+-%{version} | |
2b9b05b4 | 298 | %patch0 -p1 |
3be571ff JP |
299 | %if %{with typeahead} |
300 | %patch1 -p1 | |
301 | %endif | |
e9da199f | 302 | %patch2 -p1 |
d2a64c75 | 303 | |
337aa9ac JP |
304 | %{__sed} -i -e '1s|#!/usr/bin/env python3$|#!%{__python3}|' demos/gtk-demo/geninclude.py |
305 | ||
f4528c41 ER |
306 | # for packaging clean examples |
307 | # TODO: add am patch to do it like demos/gtk-demo via some configurable dir | |
308 | # NOTE: make install so far installs only demos/gtk-demo | |
309 | install -d _examples | |
310 | cp -a demos examples _examples | |
311 | ||
a26c4a23 JB |
312 | # upstream used too new wayland for make dist in 3.10.6 - force regeneration |
313 | touch gdk/wayland/protocol/gtk-shell.xml | |
314 | ||
df6da6cb | 315 | %build |
2b9b05b4 | 316 | CPPFLAGS="%{rpmcppflags}%{?with_papi: -I/usr/include/papi}" |
df6da6cb MB |
317 | %{?with_apidocs:%{__gtkdocize}} |
318 | %{__libtoolize} | |
319 | %{__aclocal} -I m4 | |
df6da6cb | 320 | %{__autoconf} |
d96ac102 | 321 | %{__autoheader} |
df6da6cb MB |
322 | %{__automake} |
323 | %configure \ | |
b53848b1 | 324 | --disable-silent-rules \ |
ee442e22 | 325 | %{!?with_cloudprint:--disable-cloudprint} \ |
f908a1eb | 326 | %{__disable cups} \ |
2b9b05b4 | 327 | %{!?with_papi:--disable-papi} \ |
e9da199f JB |
328 | %{?with_cloudproviders:--enable-cloudproviders} \ |
329 | %{?debug:--enable-debug} \ | |
f908a1eb | 330 | %{__enable_disable apidocs gtk-doc} \ |
df6da6cb | 331 | --enable-man \ |
f908a1eb | 332 | %{__enable_disable static_libs static} \ |
6f014dd4 | 333 | %{?with_broadway:--enable-broadway-backend} \ |
bf4574b0 | 334 | %{?with_sysprof:--enable-profiler} \ |
6f014dd4 | 335 | %{?with_wayland:--enable-wayland-backend} \ |
f908a1eb | 336 | --enable-x11-backend \ |
6f014dd4 | 337 | --enable-xinerama \ |
f908a1eb | 338 | --enable-xkb \ |
03882d3a MK |
339 | --with-html-dir=%{_gtkdocdir} |
340 | ||
f4528c41 ER |
341 | %{__make} \ |
342 | democodedir=%{_examplesdir}/%{name}-%{version}/demos/gtk-demo | |
df6da6cb MB |
343 | |
344 | %install | |
345 | rm -rf $RPM_BUILD_ROOT | |
1da74c1d | 346 | install -d $RPM_BUILD_ROOT%{_libdir}/gtk-3.0/%{abivers}/engines |
2c40d76a | 347 | install -d $RPM_BUILD_ROOT%{_libdir}/gtk-3.0/%{abivers}/theming-engines |
df6da6cb MB |
348 | |
349 | %{__make} install \ | |
f4528c41 | 350 | democodedir=%{_examplesdir}/%{name}-%{version}/demos/gtk-demo \ |
df6da6cb MB |
351 | DESTDIR=$RPM_BUILD_ROOT |
352 | ||
e155be9a | 353 | touch $RPM_BUILD_ROOT%{_libdir}/gtk-3.0/%{abivers}/gtk.immodules |
381c593f | 354 | install -d $RPM_BUILD_ROOT%{_libdir}/gtk-3.0/modules |
df6da6cb | 355 | |
f4528c41 ER |
356 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
357 | cp -a _examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
df6da6cb MB |
358 | |
359 | # shut up check-files (static modules and *.la for modules) | |
c115efa5 JP |
360 | %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/gtk-3.0/%{abivers}/*/*.la \ |
361 | %{?with_static_libs:$RPM_BUILD_ROOT%{_libdir}/gtk-3.0/%{abivers}/*/*.a} | |
df6da6cb MB |
362 | |
363 | %if "%{_lib}" != "lib" | |
364 | # We need to have 32-bit and 64-bit binaries as they have hardcoded LIBDIR. | |
365 | # (needed when multilib is used) | |
df6da6cb MB |
366 | mv $RPM_BUILD_ROOT%{_bindir}/gtk-query-immodules-3.0{,%{pqext}} |
367 | %endif | |
368 | ||
8c232071 | 369 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{sr@ije,sr@ijekavian} |
df6da6cb | 370 | # unsupported by glibc |
fb533c6d | 371 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/io |
df6da6cb | 372 | |
007e46e9 AF |
373 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
374 | ||
df6da6cb MB |
375 | %find_lang %{name} --all-name |
376 | ||
327b1559 | 377 | %{!?with_apidocs:%{__rm} -r $RPM_BUILD_ROOT%{_gtkdocdir}/{gdk3,gtk3}} |
df6da6cb MB |
378 | |
379 | %clean | |
380 | rm -rf $RPM_BUILD_ROOT | |
381 | ||
382 | %post | |
383 | /sbin/ldconfig | |
93de6ff7 | 384 | %glib_compile_schemas |
df6da6cb | 385 | umask 022 |
e155be9a | 386 | %{_bindir}/gtk-query-immodules-3.0%{pqext} --update-cache |
df6da6cb MB |
387 | exit 0 |
388 | ||
389 | %postun | |
390 | /sbin/ldconfig | |
391 | if [ "$1" != "0" ]; then | |
392 | umask 022 | |
e155be9a | 393 | %{_bindir}/gtk-query-immodules-3.0%{pqext} --update-cache |
b53848b1 | 394 | else |
93de6ff7 | 395 | %glib_compile_schemas |
df6da6cb MB |
396 | fi |
397 | exit 0 | |
398 | ||
0ab1241b MB |
399 | %post examples |
400 | %glib_compile_schemas | |
401 | ||
402 | %postun examples | |
403 | %glib_compile_schemas | |
404 | ||
df6da6cb MB |
405 | %files -f %{name}.lang |
406 | %defattr(644,root,root,755) | |
407 | %doc AUTHORS NEWS README | |
6f014dd4 | 408 | %{?with_broadway:%attr(755,root,root) %{_bindir}/broadwayd} |
0409c8bb | 409 | %attr(755,root,root) %{_bindir}/gtk-launch |
df6da6cb | 410 | %attr(755,root,root) %{_bindir}/gtk-query-immodules-3.0%{pqext} |
d2a64c75 MB |
411 | %attr(755,root,root) %{_libdir}/libgailutil-3.so.*.*.* |
412 | %attr(755,root,root) %ghost %{_libdir}/libgailutil-3.so.0 | |
413 | %attr(755,root,root) %{_libdir}/libgdk-3.so.*.*.* | |
414 | %attr(755,root,root) %ghost %{_libdir}/libgdk-3.so.0 | |
415 | %attr(755,root,root) %{_libdir}/libgtk-3.so.*.*.* | |
416 | %attr(755,root,root) %ghost %{_libdir}/libgtk-3.so.0 | |
df6da6cb MB |
417 | |
418 | %dir %{_libdir}/gtk-3.0 | |
419 | %dir %{_libdir}/gtk-3.0/modules | |
420 | %dir %{_libdir}/gtk-3.0/%{abivers} | |
1da74c1d | 421 | %dir %{_libdir}/gtk-3.0/%{abivers}/engines |
2c40d76a | 422 | %dir %{_libdir}/gtk-3.0/%{abivers}/theming-engines |
df6da6cb | 423 | %dir %{_libdir}/gtk-3.0/%{abivers}/immodules |
df6da6cb | 424 | %dir %{_libdir}/gtk-3.0/%{abivers}/printbackends |
e155be9a | 425 | %ghost %{_libdir}/gtk-3.0/%{abivers}/gtk.immodules |
df6da6cb MB |
426 | %attr(755,root,root) %{_libdir}/gtk-3.0/%{abivers}/printbackends/libprintbackend-file.so |
427 | %attr(755,root,root) %{_libdir}/gtk-3.0/%{abivers}/printbackends/libprintbackend-lpr.so | |
2200cba6 | 428 | %attr(755,root,root) %{_libdir}/gtk-3.0/%{abivers}/immodules/im-am-et.so |
4b55f7b7 | 429 | %{?with_broadway:%attr(755,root,root) %{_libdir}/gtk-3.0/%{abivers}/immodules/im-broadway.so} |
2200cba6 AF |
430 | %attr(755,root,root) %{_libdir}/gtk-3.0/%{abivers}/immodules/im-cedilla.so |
431 | %attr(755,root,root) %{_libdir}/gtk-3.0/%{abivers}/immodules/im-cyrillic-translit.so | |
432 | %attr(755,root,root) %{_libdir}/gtk-3.0/%{abivers}/immodules/im-inuktitut.so | |
433 | %attr(755,root,root) %{_libdir}/gtk-3.0/%{abivers}/immodules/im-ipa.so | |
434 | %attr(755,root,root) %{_libdir}/gtk-3.0/%{abivers}/immodules/im-multipress.so | |
435 | %attr(755,root,root) %{_libdir}/gtk-3.0/%{abivers}/immodules/im-thai.so | |
436 | %attr(755,root,root) %{_libdir}/gtk-3.0/%{abivers}/immodules/im-ti-er.so | |
437 | %attr(755,root,root) %{_libdir}/gtk-3.0/%{abivers}/immodules/im-ti-et.so | |
438 | %attr(755,root,root) %{_libdir}/gtk-3.0/%{abivers}/immodules/im-viqr.so | |
7fc82876 JP |
439 | %if %{with wayland} |
440 | %attr(755,root,root) %{_libdir}/gtk-3.0/%{abivers}/immodules/im-wayland.so | |
441 | %attr(755,root,root) %{_libdir}/gtk-3.0/%{abivers}/immodules/im-waylandgtk.so | |
442 | %endif | |
2200cba6 | 443 | %attr(755,root,root) %{_libdir}/gtk-3.0/%{abivers}/immodules/im-xim.so |
fcef663f JB |
444 | %{_libdir}/girepository-1.0/Gdk-3.0.typelib |
445 | %{_libdir}/girepository-1.0/GdkX11-3.0.typelib | |
446 | %{_libdir}/girepository-1.0/Gtk-3.0.typelib | |
df6da6cb | 447 | |
e155be9a MB |
448 | %dir %{_sysconfdir}/gtk-3.0 |
449 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gtk-3.0/im-multipress.conf | |
0ab1241b | 450 | %{_datadir}/glib-2.0/schemas/org.gtk.Settings.ColorChooser.gschema.xml |
c3ba6aef | 451 | %{_datadir}/glib-2.0/schemas/org.gtk.Settings.Debug.gschema.xml |
4ec01b67 | 452 | %{_datadir}/glib-2.0/schemas/org.gtk.Settings.EmojiChooser.gschema.xml |
b53848b1 | 453 | %{_datadir}/glib-2.0/schemas/org.gtk.Settings.FileChooser.gschema.xml |
2200cba6 AF |
454 | %dir %{_datadir}/themes/Default/gtk-3.0 |
455 | %{_datadir}/themes/Default/gtk-3.0/gtk-keys.css | |
df6da6cb | 456 | %dir %{_datadir}/themes/Emacs |
2200cba6 AF |
457 | %dir %{_datadir}/themes/Emacs/gtk-3.0 |
458 | %{_datadir}/themes/Emacs/gtk-3.0/gtk-keys.css | |
6f014dd4 | 459 | %{?with_broadway:%{_mandir}/man1/broadwayd.1*} |
0409c8bb | 460 | %{_mandir}/man1/gtk-launch.1* |
df6da6cb | 461 | %{_mandir}/man1/gtk-query-immodules-3.0.1* |
f908a1eb AF |
462 | |
463 | %files -n gtk-update-icon-cache | |
464 | %defattr(644,root,root,755) | |
5e14eb23 | 465 | %attr(755,root,root) %{_bindir}/gtk-encode-symbolic-svg |
f908a1eb | 466 | %attr(755,root,root) %{_bindir}/gtk-update-icon-cache |
5e14eb23 | 467 | %{_mandir}/man1/gtk-encode-symbolic-svg.1* |
f908a1eb | 468 | %{_mandir}/man1/gtk-update-icon-cache.1* |
df6da6cb MB |
469 | |
470 | %files devel | |
471 | %defattr(644,root,root,755) | |
472 | %doc ChangeLog | |
1af9573a | 473 | %attr(755,root,root) %{_bindir}/gtk-builder-tool |
57dec5b8 | 474 | %attr(755,root,root) %{_bindir}/gtk-query-settings |
d2a64c75 MB |
475 | %attr(755,root,root) %{_libdir}/libgailutil-3.so |
476 | %attr(755,root,root) %{_libdir}/libgdk-3.so | |
477 | %attr(755,root,root) %{_libdir}/libgtk-3.so | |
df6da6cb MB |
478 | %{_includedir}/gail-3.0 |
479 | %{_includedir}/gtk-3.0 | |
e155be9a | 480 | %{_aclocaldir}/gtk-3.0.m4 |
df6da6cb MB |
481 | %{_pkgconfigdir}/gail-3.0.pc |
482 | %{_pkgconfigdir}/gdk-3.0.pc | |
f908a1eb | 483 | %{_pkgconfigdir}/gdk-x11-3.0.pc |
df6da6cb MB |
484 | %{_pkgconfigdir}/gtk+-3.0.pc |
485 | %{_pkgconfigdir}/gtk+-unix-print-3.0.pc | |
486 | %{_pkgconfigdir}/gtk+-x11-3.0.pc | |
6f014dd4 JB |
487 | %if %{with broadway} |
488 | %{_pkgconfigdir}/gdk-broadway-3.0.pc | |
489 | %{_pkgconfigdir}/gtk+-broadway-3.0.pc | |
490 | %endif | |
491 | %if %{with wayland} | |
492 | %{_pkgconfigdir}/gdk-wayland-3.0.pc | |
493 | %{_pkgconfigdir}/gtk+-wayland-3.0.pc | |
494 | %endif | |
57dec5b8 MB |
495 | %{_datadir}/gettext/its/gtkbuilder.its |
496 | %{_datadir}/gettext/its/gtkbuilder.loc | |
0ab1241b | 497 | %{_datadir}/gtk-3.0 |
df6da6cb | 498 | %{_datadir}/gir-1.0/Gdk-3.0.gir |
e155be9a | 499 | %{_datadir}/gir-1.0/GdkX11-3.0.gir |
df6da6cb | 500 | %{_datadir}/gir-1.0/Gtk-3.0.gir |
1af9573a | 501 | %{_mandir}/man1/gtk-builder-tool.1* |
57dec5b8 | 502 | %{_mandir}/man1/gtk-query-settings.1* |
df6da6cb MB |
503 | |
504 | %if %{with static_libs} | |
505 | %files static | |
506 | %defattr(644,root,root,755) | |
d2a64c75 MB |
507 | %{_libdir}/libgailutil-3.a |
508 | %{_libdir}/libgdk-3.a | |
509 | %{_libdir}/libgtk-3.a | |
df6da6cb MB |
510 | %endif |
511 | ||
512 | %if %{with apidocs} | |
513 | %files apidocs | |
514 | %defattr(644,root,root,755) | |
515 | %{_gtkdocdir}/gail-libgail-util3 | |
516 | %{_gtkdocdir}/gdk3 | |
df6da6cb MB |
517 | %{_gtkdocdir}/gtk3 |
518 | %endif | |
519 | ||
520 | %files examples | |
521 | %defattr(644,root,root,755) | |
f4528c41 | 522 | %attr(755,root,root) %{_bindir}/gtk3-demo |
0ab1241b | 523 | %attr(755,root,root) %{_bindir}/gtk3-demo-application |
c3ba6aef | 524 | %attr(755,root,root) %{_bindir}/gtk3-icon-browser |
0ab1241b MB |
525 | %attr(755,root,root) %{_bindir}/gtk3-widget-factory |
526 | %{_datadir}/glib-2.0/schemas/org.gtk.Demo.gschema.xml | |
b3594a95 | 527 | %{_datadir}/glib-2.0/schemas/org.gtk.exampleapp.gschema.xml |
4b55f7b7 | 528 | %{_desktopdir}/gtk3-demo.desktop |
c3ba6aef | 529 | %{_desktopdir}/gtk3-icon-browser.desktop |
4b55f7b7 | 530 | %{_desktopdir}/gtk3-widget-factory.desktop |
4e9dc432 | 531 | %{_iconsdir}/hicolor/*/apps/gtk3-demo-symbolic.symbolic.png |
4b55f7b7 | 532 | %{_iconsdir}/hicolor/*/apps/gtk3-demo.png |
4e9dc432 | 533 | %{_iconsdir}/hicolor/*/apps/gtk3-widget-factory-symbolic.symbolic.png |
4b55f7b7 | 534 | %{_iconsdir}/hicolor/*/apps/gtk3-widget-factory.png |
c3ba6aef | 535 | %{_mandir}/man1/gtk3-demo.1* |
4e9dc432 | 536 | %{_mandir}/man1/gtk3-demo-application.1* |
c3ba6aef ŁK |
537 | %{_mandir}/man1/gtk3-icon-browser.1* |
538 | %{_mandir}/man1/gtk3-widget-factory.1* | |
df6da6cb MB |
539 | %{_examplesdir}/%{name}-%{version} |
540 | ||
ee442e22 JB |
541 | %if %{with cloudprint} |
542 | %files cloudprint | |
543 | %defattr(644,root,root,755) | |
544 | %attr(755,root,root) %{_libdir}/gtk-3.0/%{abivers}/printbackends/libprintbackend-cloudprint.so | |
545 | %endif | |
546 | ||
df6da6cb MB |
547 | %if %{with cups} |
548 | %files cups | |
549 | %defattr(644,root,root,755) | |
550 | %attr(755,root,root) %{_libdir}/gtk-3.0/%{abivers}/printbackends/libprintbackend-cups.so | |
551 | %endif | |
2b9b05b4 JB |
552 | |
553 | %if %{with papi} | |
554 | %files papi | |
555 | %defattr(644,root,root,755) | |
556 | %attr(755,root,root) %{_libdir}/gtk-3.0/%{abivers}/printbackends/libprintbackend-papi.so | |
557 | %endif |