]>
Commit | Line | Data |
---|---|---|
fcef663f | 1 | # |
df6da6cb | 2 | # Conditional build: |
081860cb | 3 | %bcond_without apidocs # gi-docgen based API documentation |
6f014dd4 JB |
4 | %bcond_without broadway # Broadway target |
5 | %bcond_without wayland # Wayland target | |
f9725670 | 6 | %bcond_without vulkan # Vulkan graphics support |
4b737ac8 | 7 | %bcond_without ffmpeg # FFmpeg media backend |
f9725670 | 8 | %bcond_without gstreamer # GStreamer media backend |
f9725670 JB |
9 | %bcond_without cloudprint # cloudprint print backend |
10 | %bcond_without cups # CUPS print backend | |
4b737ac8 | 11 | %bcond_without cloudproviders # cloudproviders support |
081860cb | 12 | %bcond_without static_libs # static library |
4b737ac8 JB |
13 | %bcond_with sysprof # sysprof tracing support |
14 | %bcond_with tracker # Tracker3 filechooser search | |
41d59618 | 15 | |
df6da6cb MB |
16 | Summary: The GIMP Toolkit |
17 | Summary(cs.UTF-8): Sada nástrojů pro GIMP | |
18 | Summary(de.UTF-8): Der GIMP-Toolkit | |
19 | Summary(fi.UTF-8): GIMP-työkalukokoelma | |
20 | Summary(fr.UTF-8): Le toolkit de GIMP | |
21 | Summary(it.UTF-8): Il toolkit per GIMP | |
22 | Summary(pl.UTF-8): GIMP Toolkit | |
23 | Summary(tr.UTF-8): GIMP ToolKit arayüz kitaplığı | |
840fbf40 | 24 | Name: gtk4 |
ba6e1709 | 25 | Version: 4.2.1 |
840fbf40 | 26 | Release: 1 |
df6da6cb MB |
27 | License: LGPL v2+ |
28 | Group: X11/Libraries | |
081860cb | 29 | Source0: https://download.gnome.org/sources/gtk/4.2/gtk-%{version}.tar.xz |
ba6e1709 | 30 | # Source0-md5: 7854bd017e0016db76d17be9d4deb02e |
f9725670 | 31 | Patch0: %{name}-lpr.patch |
840fbf40 JB |
32 | URL: https://www.gtk.org/ |
33 | %{?with_vulkan:BuildRequires: Vulkan-Loader-devel} | |
0d45598e | 34 | # cairo-gobject + cairo-pdf,cairo-ps,cairo-svg |
4e9dc432 | 35 | BuildRequires: cairo-gobject-devel >= 1.14.0 |
381c593f | 36 | BuildRequires: colord-devel >= 0.1.9 |
f9725670 | 37 | %if %{with cups} |
840fbf40 | 38 | BuildRequires: cups-devel >= 1:2.0 |
2b9b05b4 | 39 | %endif |
df6da6cb MB |
40 | BuildRequires: docbook-dtd412-xml |
41 | BuildRequires: docbook-style-xsl | |
014e6deb | 42 | BuildRequires: fontconfig-devel |
f9725670 JB |
43 | # libavfilter >= 6.47.100, libavformat >= 57.41.100, libavcodec >= 57.48.101, libavutil >= 55.28.100, libswscale >= 4.6.100 |
44 | %{?with_ffmpeg:BuildRequires: ffmpeg-devel >= 3.1.1} | |
45 | BuildRequires: freetype-devel >= 1:2.7.1 | |
840fbf40 | 46 | BuildRequires: fribidi-devel >= 0.19.7 |
c3ba6aef | 47 | BuildRequires: gdk-pixbuf2-devel >= 2.31.0 |
cd2d5c9a | 48 | BuildRequires: gettext-tools >= 0.19.7 |
081860cb JB |
49 | %{?with_apidocs:BuildRequires: gi-docgen >= 2021.1} |
50 | BuildRequires: glib2-devel >= 1:2.66.0 | |
4b55f7b7 | 51 | BuildRequires: gobject-introspection-devel >= 1.39.0 |
840fbf40 | 52 | BuildRequires: graphene-devel >= 1.9.1 |
f9725670 | 53 | %{?with_gstreamer:BuildRequires: gstreamer-devel >= 1.12.3} |
64eff0b7 | 54 | BuildRequires: harfbuzz-devel >= 0.9 |
081860cb | 55 | BuildRequires: iso-codes |
ee442e22 | 56 | %{?with_cloudprint:BuildRequires: json-glib-devel >= 1.0} |
8ad7c423 | 57 | %{?with_cloudproviders:BuildRequires: libcloudproviders-devel >= 0.3.1} |
f9725670 | 58 | BuildRequires: libepoxy-devel >= 1.4 |
0ab1241b | 59 | BuildRequires: libstdc++-devel |
d96ac102 | 60 | BuildRequires: libtool >= 2:2.2.6 |
df6da6cb MB |
61 | BuildRequires: libxml2-progs >= 1:2.6.31 |
62 | BuildRequires: libxslt-progs >= 1.1.20 | |
4b737ac8 | 63 | BuildRequires: meson >= 0.54 |
840fbf40 | 64 | BuildRequires: ninja >= 1.5 |
4b737ac8 | 65 | BuildRequires: pango-devel >= 1:1.47.0 |
df6da6cb MB |
66 | BuildRequires: perl-base |
67 | BuildRequires: pkgconfig | |
ee442e22 | 68 | %{?with_cloudprint:BuildRequires: rest-devel >= 0.7} |
df6da6cb | 69 | BuildRequires: rpm-pythonprov |
081860cb | 70 | BuildRequires: rpm-build >= 4.6 |
4b737ac8 | 71 | BuildRequires: rpmbuild(macros) >= 1.752 |
014e6deb | 72 | # glslc required to rebuild some files from source |
e2e10e3b | 73 | %{?with_vulkan:BuildRequires: shaderc} |
0ab1241b | 74 | BuildRequires: sqlite3-devel |
4b737ac8 | 75 | %{?with_sysprof:BuildRequires: sysprof-devel >= 3.38.0} |
0ab1241b | 76 | BuildRequires: tar >= 1:1.22 |
4b737ac8 | 77 | %{?with_tracker:BuildRequires: tracker3-devel >= 3.0} |
41d59618 | 78 | BuildRequires: xorg-lib-libX11-devel >= 1.5.0 |
df6da6cb MB |
79 | BuildRequires: xorg-lib-libXcomposite-devel |
80 | BuildRequires: xorg-lib-libXcursor-devel | |
81 | BuildRequires: xorg-lib-libXdamage-devel | |
82 | BuildRequires: xorg-lib-libXext-devel | |
83 | BuildRequires: xorg-lib-libXfixes-devel | |
84 | BuildRequires: xorg-lib-libXft-devel | |
85 | BuildRequires: xorg-lib-libXi-devel | |
86 | BuildRequires: xorg-lib-libXinerama-devel | |
cd2d5c9a | 87 | BuildRequires: xorg-lib-libXrandr-devel >= 1.5.0 |
df6da6cb | 88 | BuildRequires: xorg-lib-libXrender-devel |
381c593f | 89 | BuildRequires: xz |
6f014dd4 JB |
90 | %{?with_broadway:BuildRequires: zlib-devel} |
91 | %if %{with wayland} | |
0d45598e | 92 | # wayland-client, wayland-cursor, wayland-scanner |
f9725670 JB |
93 | BuildRequires: wayland-devel >= 1.14.91 |
94 | BuildRequires: wayland-egl-devel | |
8ad7c423 | 95 | BuildRequires: wayland-protocols >= 1.20 |
6f014dd4 JB |
96 | BuildRequires: xorg-lib-libxkbcommon-devel >= 0.2.0 |
97 | %endif | |
41d59618 | 98 | Requires: xorg-lib-libX11 >= 1.5.0 |
081860cb | 99 | Requires(post,postun): glib2 >= 1:2.66.0 |
4e9dc432 | 100 | Requires: cairo-gobject >= 1.14.0 |
f9725670 | 101 | Requires: freetype >= 1:2.7.1 |
c3ba6aef | 102 | Requires: gdk-pixbuf2 >= 2.31.0 |
081860cb | 103 | Requires: glib2 >= 1:2.66.0 |
840fbf40 | 104 | Requires: graphene >= 1.9.1 |
081860cb | 105 | Requires: iso-codes |
8ad7c423 | 106 | %{?with_cloudproviders:Requires: libcloudproviders >= 0.3.1} |
f9725670 | 107 | Requires: libepoxy >= 1.4 |
4b737ac8 | 108 | Requires: pango >= 1:1.47.0 |
baa99f47 | 109 | Requires: xorg-lib-libXi >= 1.3.0 |
cd2d5c9a | 110 | Requires: xorg-lib-libXrandr >= 1.5.0 |
6f014dd4 | 111 | %if %{with wayland} |
f9725670 | 112 | Requires: wayland >= 1.14.91 |
6f014dd4 JB |
113 | Requires: xorg-lib-libxkbcommon >= 0.2.0 |
114 | %endif | |
e5dca4b8 AF |
115 | # evince is used as gtk-print-preview-command by default |
116 | Suggests: evince-backend-pdf | |
df6da6cb | 117 | %if %{with cups} |
840fbf40 | 118 | # cups is used by default if gtk is built with cups |
df6da6cb MB |
119 | Suggests: %{name}-cups = %{version}-%{release} |
120 | %endif | |
840fbf40 | 121 | Obsoletes: gtk+4 < 3.95 |
081860cb | 122 | Obsoletes: gtk+4-papi < 3.94 |
df6da6cb MB |
123 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
124 | ||
775e774e | 125 | %define abivers 4.0.0 |
df6da6cb MB |
126 | |
127 | %if "%{_lib}" != "lib" | |
128 | %define libext %(lib="%{_lib}"; echo ${lib#lib}) | |
df6da6cb MB |
129 | %define pqext -%{libext} |
130 | %else | |
df6da6cb MB |
131 | %define pqext %{nil} |
132 | %endif | |
133 | ||
134 | %description | |
4b737ac8 | 135 | GTK, which stands for the GIMP ToolKit, is a library for creating |
df6da6cb | 136 | graphical user interfaces for the X Window System. It is designed to |
4b737ac8 JB |
137 | be small, efficient, and flexible. GTK is written in C with a very |
138 | object-oriented approach. GDK (part of GTK) is a drawing toolkit | |
df6da6cb MB |
139 | which provides a thin layer over Xlib to help automate things like |
140 | dealing with different color depths, and GTK is a widget set for | |
141 | creating user interfaces. | |
142 | ||
143 | %description -l cs.UTF-8 | |
144 | Knihovny X původně psané pro GIMP, které nyní používá také řada jiných | |
145 | programů. | |
146 | ||
147 | %description -l da.UTF-8 | |
148 | X biblioteker, oprindeligt udviklet til GIMP, men anvendes nu af flere | |
149 | forskellige programmer. | |
150 | ||
151 | %description -l de.UTF-8 | |
152 | Die X-Libraries, die ursprünglich für GIMP geschrieben wurden und | |
153 | mittlerweile für eine ganze Reihe anderer Programme benutzt werden. | |
154 | ||
155 | %description -l fr.UTF-8 | |
156 | X-kirjastot, jotka alunperin kirjoitettiin GIMP:lle, mutta joita | |
157 | käytetään nyt myös useissa muissakin ohjelmissa. | |
158 | ||
159 | %description -l it.UTF-8 | |
160 | Libreria X scritta per GIMP. Viene usata da diversi programmi. | |
161 | ||
162 | %description -l pl.UTF-8 | |
4b737ac8 | 163 | GTK, która to biblioteka stała się podstawą programu GIMP, zawiera |
df6da6cb | 164 | funkcje do tworzenia graficznego interfejsu użytkownika pod X Window. |
4b737ac8 | 165 | Była tworzona z założeniem żeby była mała, efektywna i wygodna. GTK |
df6da6cb | 166 | jest napisane w C z podejściem zorientowanym bardzo obiektowo. GDK |
4b737ac8 | 167 | (część GTK) jest warstwą pośrednią pomiędzy Xlib a właściwym GTK |
df6da6cb | 168 | zapewniającą pracę niezależnie od głębi koloru (ilości bitów na |
4b737ac8 | 169 | piksel). GTK (druga część GTK) jest natomiast już zbiorem różnego |
df6da6cb MB |
170 | rodzaju kontrolek służących do tworzenia interfejsu użytkownika. |
171 | ||
172 | %description -l tr.UTF-8 | |
173 | Başlangıçta GIMP için yazılmış X kitaplıkları. Şu anda başka | |
174 | programlarca da kullanılmaktadır. | |
175 | ||
775e774e | 176 | %package update-icon-cache |
4b737ac8 JB |
177 | Summary: Utility to update icon cache used by GTK library |
178 | Summary(pl.UTF-8): Narzędzie do uaktualniania cache'a ikon używanego przez bibliotekę GTK | |
f908a1eb | 179 | Group: Applications/System |
c3ba6aef | 180 | Requires: gdk-pixbuf2 >= 2.31.0 |
081860cb | 181 | Requires: glib2 >= 1:2.66.0 |
840fbf40 | 182 | Obsoletes: gtk+4-update-icon-cache < 3.95 |
f908a1eb | 183 | |
775e774e | 184 | %description update-icon-cache |
4b737ac8 | 185 | Utility to update icon cache used by GTK library. |
fcef663f | 186 | |
775e774e | 187 | %description update-icon-cache -l pl.UTF-8 |
fcef663f | 188 | Narzędzie do uaktualniania cache'a ikon używanego przez bibliotekę |
4b737ac8 | 189 | GTK. |
f908a1eb | 190 | |
df6da6cb | 191 | %package devel |
4b737ac8 | 192 | Summary: GTK header files and development documentation |
df6da6cb MB |
193 | Summary(cs.UTF-8): Sada nástrojů GIMP a kreslící kit GIMP |
194 | Summary(da.UTF-8): GIMP Toolkit og GIMP Tegnings-værktøj | |
195 | Summary(de.UTF-8): GIMP Toolkit und GIMP Drawing Kit | |
196 | Summary(fi.UTF-8): Gimp-työkalukokoelma ja Gimp-piirtotyökalut | |
197 | Summary(fr.UTF-8): Toolkit de GIMP (GTK) et Kit de dessin de GIMP (GDK) | |
198 | Summary(it.UTF-8): GIMP Toolkit and GIMP Drawing Kit | |
4b737ac8 | 199 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do GTK |
df6da6cb MB |
200 | Summary(tr.UTF-8): GIMP araç takımı ve çizim takımı |
201 | Group: X11/Development/Libraries | |
202 | Requires: %{name} = %{version}-%{release} | |
840fbf40 | 203 | %{?with_vulkan:Requires: Vulkan-Loader-devel} |
4e9dc432 | 204 | Requires: cairo-gobject-devel >= 1.14.0 |
014e6deb | 205 | Requires: fontconfig-devel |
c3ba6aef | 206 | Requires: gdk-pixbuf2-devel >= 2.31.0 |
2d637060 | 207 | Requires: glib2-devel >= 1:2.65.0 |
840fbf40 | 208 | Requires: graphene-devel >= 1.9.1 |
f9725670 | 209 | Requires: libepoxy-devel >= 1.4 |
4b737ac8 | 210 | Requires: pango-devel >= 1:1.47.0 |
df6da6cb | 211 | Requires: shared-mime-info |
014e6deb JB |
212 | Requires: xorg-lib-libX11-devel >= 1.5.0 |
213 | Requires: xorg-lib-libXcomposite-devel | |
214 | Requires: xorg-lib-libXcursor-devel | |
215 | Requires: xorg-lib-libXdamage-devel | |
216 | Requires: xorg-lib-libXext-devel | |
217 | Requires: xorg-lib-libXfixes-devel | |
218 | Requires: xorg-lib-libXi-devel | |
219 | Requires: xorg-lib-libXinerama-devel | |
840fbf40 | 220 | Requires: xorg-lib-libXrandr-devel >= 1.5.0 |
014e6deb | 221 | %if %{with wayland} |
f9725670 JB |
222 | Requires: wayland-devel >= 1.14.91 |
223 | Requires: wayland-egl-devel | |
8ad7c423 | 224 | Requires: wayland-protocols >= 1.20 |
014e6deb JB |
225 | Requires: xorg-lib-libxkbcommon-devel >= 0.2.0 |
226 | %endif | |
840fbf40 JB |
227 | Requires: zlib-devel |
228 | Obsoletes: gtk+4-devel < 3.95 | |
df6da6cb MB |
229 | |
230 | %description devel | |
4b737ac8 | 231 | Header files and development documentation for the GTK libraries. |
df6da6cb MB |
232 | |
233 | %description devel -l pl.UTF-8 | |
4b737ac8 | 234 | Pliki nagłówkowe i dokumentacja do bibliotek GTK. |
df6da6cb MB |
235 | |
236 | %package static | |
4b737ac8 JB |
237 | Summary: GTK static libraries |
238 | Summary(pl.UTF-8): Biblioteki statyczne GTK | |
df6da6cb MB |
239 | Group: X11/Development/Libraries |
240 | Requires: %{name}-devel = %{version}-%{release} | |
840fbf40 | 241 | Obsoletes: gtk+4-static < 3.95 |
df6da6cb MB |
242 | |
243 | %description static | |
4b737ac8 | 244 | GTK static libraries. |
df6da6cb MB |
245 | |
246 | %description static -l pl.UTF-8 | |
4b737ac8 | 247 | Biblioteki statyczne GTK |
df6da6cb MB |
248 | |
249 | %package apidocs | |
4b737ac8 JB |
250 | Summary: GTK API documentation |
251 | Summary(pl.UTF-8): Dokumentacja API GTK | |
df6da6cb MB |
252 | Group: Documentation |
253 | Requires: gtk-doc-common | |
840fbf40 | 254 | Obsoletes: gtk+4-apidocs < 3.95 |
7b68a5bf | 255 | BuildArch: noarch |
df6da6cb MB |
256 | |
257 | %description apidocs | |
4b737ac8 | 258 | GTK API documentation. |
df6da6cb MB |
259 | |
260 | %description apidocs -l pl.UTF-8 | |
4b737ac8 | 261 | Dokumentacja API GTK. |
df6da6cb MB |
262 | |
263 | %package examples | |
4b737ac8 JB |
264 | Summary: GTK - example programs |
265 | Summary(pl.UTF-8): GTK - programy przykładowe | |
df6da6cb | 266 | Group: X11/Development/Libraries |
2d637060 | 267 | Requires(post,postun): glib2 >= 1:2.65.0 |
df6da6cb | 268 | Requires: %{name}-devel = %{version}-%{release} |
840fbf40 | 269 | Obsoletes: gtk+4-examples < 3.95 |
df6da6cb MB |
270 | |
271 | %description examples | |
4b737ac8 | 272 | GTK - example programs. |
df6da6cb MB |
273 | |
274 | %description examples -l pl.UTF-8 | |
4b737ac8 | 275 | GTK - przykładowe programy. |
df6da6cb | 276 | |
ee442e22 | 277 | %package cloudprint |
4b737ac8 JB |
278 | Summary: Cloudprint printing module for GTK |
279 | Summary(pl.UTF-8): Moduł GTK do drukowania przez Cloudprint | |
ee442e22 JB |
280 | Group: X11/Libraries |
281 | Requires: %{name} = %{version}-%{release} | |
840fbf40 | 282 | Obsoletes: gtk+4-cloudprint < 3.95 |
ee442e22 JB |
283 | |
284 | %description cloudprint | |
4b737ac8 | 285 | Cloudprint printing module for GTK. |
ee442e22 JB |
286 | |
287 | %description cloudprint -l pl.UTF-8 | |
4b737ac8 JB |
288 | Moduł GTK do drukowania przez Cloudprint. |
289 | ||
290 | %package media-ffmpeg | |
291 | Summary: FFmpeg media backend for GTK | |
292 | Summary(pl.UTF-8): Backend multimedialny FFmpeg dla GTK | |
293 | Group: X11/Libraries | |
294 | Requires: %{name} = %{version}-%{release} | |
295 | Requires: ffmpeg-libs >= 3.1.1 | |
296 | ||
297 | %description media-ffmpeg | |
298 | FFmpeg media backend for GTK. | |
299 | ||
300 | %description media-ffmpeg -l pl.UTF-8 | |
301 | Backend multimedialny FFmpeg dla GTK. | |
302 | ||
303 | %package media-gstreamer | |
304 | Summary: GStreamer media backend for GTK | |
305 | Summary(pl.UTF-8): Backend multimedialny GStreamer dla GTK | |
306 | Group: X11/Libraries | |
307 | Requires: %{name} = %{version}-%{release} | |
308 | Requires: gstreamer >= 1.12.3 | |
309 | ||
310 | %description media-gstreamer | |
311 | GStreamer media backend for GTK. | |
312 | ||
313 | %description media-gstreamer -l pl.UTF-8 | |
314 | Backend multimedialny GStreamer dla GTK. | |
ee442e22 | 315 | |
df6da6cb | 316 | %package cups |
4b737ac8 JB |
317 | Summary: CUPS printing module for GTK |
318 | Summary(pl.UTF-8): Moduł GTK do drukowania przez CUPS | |
df6da6cb MB |
319 | Group: X11/Libraries |
320 | Requires: %{name} = %{version}-%{release} | |
840fbf40 JB |
321 | Requires: cups-lib >= 2.0 |
322 | Obsoletes: gtk+4-cups < 3.95 | |
df6da6cb MB |
323 | |
324 | %description cups | |
4b737ac8 | 325 | CUPS printing module for GTK. |
df6da6cb MB |
326 | |
327 | %description cups -l pl.UTF-8 | |
4b737ac8 | 328 | Moduł GTK do drukowania przez CUPS. |
df6da6cb MB |
329 | |
330 | %prep | |
840fbf40 | 331 | %setup -q -n gtk-%{version} |
2b9b05b4 | 332 | %patch0 -p1 |
840fbf40 JB |
333 | |
334 | %{__sed} -i -e '1s,/usr/bin/env python3,%{__python3},' demos/gtk-demo/geninclude.py | |
d2a64c75 | 335 | |
081860cb JB |
336 | %if %{with static_libs} |
337 | %{__sed} -i -e '/^libgtk = / s/shared_library/library/' gtk/meson.build | |
338 | %endif | |
339 | ||
ba6e1709 JB |
340 | # FIXME: common location for gi-docgen generated docs |
341 | %{__sed} -i -e "/^docs_dir =/ s,gtk_datadir / 'doc','%{_gtkdocdir}'," docs/reference/meson.build | |
342 | ||
df6da6cb | 343 | %build |
f9725670 | 344 | %meson build \ |
f9725670 | 345 | %{?with_broadway:-Dbroadway-backend=true} \ |
2d637060 JB |
346 | %{?with_cloudproviders:-Dcloudproviders=enabled} \ |
347 | -Dcolord=enabled \ | |
840fbf40 | 348 | %{?with_apidocs:-Dgtk_doc=true} \ |
f9725670 JB |
349 | -Dinstall-tests=false \ |
350 | -Dman-pages=true \ | |
4b737ac8 JB |
351 | %{!?with_ffmpeg:-Dmedia-ffmpeg=disabled} \ |
352 | %{!?with_gstreamer:-Dmedia-gstreamer=disabled} \ | |
353 | %{!?with_cloudprint:-Dprint-cloudprint=disabled} \ | |
354 | %{!?with_cups:-Dprint-cups=disabled} \ | |
355 | -Dprint-lpr=true \ | |
356 | %{?with_sysprof:-Dsysprof=enabled} \ | |
357 | %{?with_tracker:-Dtracker=enabled} \ | |
358 | %{!?with_vulkan:-Dvulkan=disabled} \ | |
2d637060 | 359 | %{!?with_wayland:-Dwayland-backend=false} |
f9725670 | 360 | |
840fbf40 | 361 | %ninja_build -C build |
df6da6cb MB |
362 | |
363 | %install | |
364 | rm -rf $RPM_BUILD_ROOT | |
df6da6cb | 365 | |
840fbf40 | 366 | %ninja_install -C build |
df6da6cb | 367 | |
f9725670 | 368 | install -d $RPM_BUILD_ROOT%{_libdir}/gtk-4.0/%{abivers}/{immodules,inspector} |
df6da6cb | 369 | |
f4528c41 | 370 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
f9725670 | 371 | cp -a demos examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
df6da6cb | 372 | |
8c232071 | 373 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{sr@ije,sr@ijekavian} |
df6da6cb | 374 | # unsupported by glibc |
fb533c6d | 375 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/io |
df6da6cb | 376 | |
f9725670 | 377 | # gtk40 and gtk40-properties domains |
df6da6cb MB |
378 | %find_lang %{name} --all-name |
379 | ||
df6da6cb MB |
380 | %clean |
381 | rm -rf $RPM_BUILD_ROOT | |
382 | ||
383 | %post | |
384 | /sbin/ldconfig | |
93de6ff7 | 385 | %glib_compile_schemas |
df6da6cb | 386 | umask 022 |
f9725670 JB |
387 | gio-querymodules %{_libdir}/gtk-4.0/%{abivers}/immodules |
388 | gio-querymodules %{_libdir}/gtk-4.0/%{abivers}/printbackends | |
df6da6cb MB |
389 | exit 0 |
390 | ||
391 | %postun | |
392 | /sbin/ldconfig | |
393 | if [ "$1" != "0" ]; then | |
394 | umask 022 | |
f9725670 JB |
395 | gio-querymodules %{_libdir}/gtk-4.0/%{abivers}/immodules |
396 | gio-querymodules %{_libdir}/gtk-4.0/%{abivers}/printbackends | |
b53848b1 | 397 | else |
93de6ff7 | 398 | %glib_compile_schemas |
df6da6cb MB |
399 | fi |
400 | exit 0 | |
401 | ||
0ab1241b MB |
402 | %post examples |
403 | %glib_compile_schemas | |
f9725670 JB |
404 | %update_desktop_database |
405 | %update_icon_cache hicolor | |
0ab1241b MB |
406 | |
407 | %postun examples | |
408 | %glib_compile_schemas | |
f9725670 JB |
409 | %update_desktop_database |
410 | %update_icon_cache hicolor | |
411 | ||
412 | %post cloudprint | |
413 | umask 022 | |
414 | gio-querymodules %{_libdir}/gtk-4.0/%{abivers}/printbackends | |
415 | ||
416 | %postun cloudprint | |
417 | if [ "$1" != "0" ]; then | |
418 | umask 022 | |
419 | gio-querymodules %{_libdir}/gtk-4.0/%{abivers}/printbackends | |
420 | fi | |
421 | exit 0 | |
422 | ||
423 | %post cups | |
424 | umask 022 | |
425 | gio-querymodules %{_libdir}/gtk-4.0/%{abivers}/printbackends | |
426 | ||
427 | %postun cups | |
428 | if [ "$1" != "0" ]; then | |
429 | umask 022 | |
430 | gio-querymodules %{_libdir}/gtk-4.0/%{abivers}/printbackends | |
431 | fi | |
432 | exit 0 | |
0ab1241b | 433 | |
df6da6cb MB |
434 | %files -f %{name}.lang |
435 | %defattr(644,root,root,755) | |
f9725670 | 436 | %doc AUTHORS NEWS README.md |
775e774e JB |
437 | %{?with_broadway:%attr(755,root,root) %{_bindir}/gtk4-broadwayd} |
438 | %attr(755,root,root) %{_bindir}/gtk4-launch | |
2a6f5550 | 439 | %attr(755,root,root) %{_libdir}/libgtk-4.so.*.*.* |
389c6af1 | 440 | %attr(755,root,root) %ghost %{_libdir}/libgtk-4.so.1 |
775e774e JB |
441 | |
442 | %dir %{_libdir}/gtk-4.0 | |
775e774e | 443 | %dir %{_libdir}/gtk-4.0/%{abivers} |
775e774e | 444 | %dir %{_libdir}/gtk-4.0/%{abivers}/immodules |
f9725670 JB |
445 | %dir %{_libdir}/gtk-4.0/%{abivers}/inspector |
446 | %dir %{_libdir}/gtk-4.0/%{abivers}/media | |
775e774e | 447 | %dir %{_libdir}/gtk-4.0/%{abivers}/printbackends |
775e774e JB |
448 | %attr(755,root,root) %{_libdir}/gtk-4.0/%{abivers}/printbackends/libprintbackend-file.so |
449 | %attr(755,root,root) %{_libdir}/gtk-4.0/%{abivers}/printbackends/libprintbackend-lpr.so | |
775e774e | 450 | %{_libdir}/girepository-1.0/Gdk-4.0.typelib |
4b737ac8 JB |
451 | %if %{with wayland} |
452 | %{_libdir}/girepository-1.0/GdkWayland-4.0.typelib | |
453 | %endif | |
775e774e JB |
454 | %{_libdir}/girepository-1.0/GdkX11-4.0.typelib |
455 | %{_libdir}/girepository-1.0/Gsk-4.0.typelib | |
456 | %{_libdir}/girepository-1.0/Gtk-4.0.typelib | |
457 | ||
840fbf40 JB |
458 | %{_datadir}/glib-2.0/schemas/org.gtk.gtk4.Settings.ColorChooser.gschema.xml |
459 | %{_datadir}/glib-2.0/schemas/org.gtk.gtk4.Settings.Debug.gschema.xml | |
460 | %{_datadir}/glib-2.0/schemas/org.gtk.gtk4.Settings.EmojiChooser.gschema.xml | |
461 | %{_datadir}/glib-2.0/schemas/org.gtk.gtk4.Settings.FileChooser.gschema.xml | |
775e774e JB |
462 | %{?with_broadway:%{_mandir}/man1/gtk4-broadwayd.1*} |
463 | %{_mandir}/man1/gtk4-launch.1* | |
f908a1eb | 464 | |
775e774e | 465 | %files update-icon-cache |
f908a1eb | 466 | %defattr(644,root,root,755) |
775e774e JB |
467 | %attr(755,root,root) %{_bindir}/gtk4-encode-symbolic-svg |
468 | %attr(755,root,root) %{_bindir}/gtk4-update-icon-cache | |
469 | %{_mandir}/man1/gtk4-encode-symbolic-svg.1* | |
470 | %{_mandir}/man1/gtk4-update-icon-cache.1* | |
df6da6cb MB |
471 | |
472 | %files devel | |
473 | %defattr(644,root,root,755) | |
775e774e JB |
474 | %attr(755,root,root) %{_bindir}/gtk4-builder-tool |
475 | %attr(755,root,root) %{_bindir}/gtk4-query-settings | |
476 | %attr(755,root,root) %{_libdir}/libgtk-4.so | |
477 | %{_includedir}/gtk-4.0 | |
840fbf40 JB |
478 | %{_pkgconfigdir}/gtk4.pc |
479 | %{_pkgconfigdir}/gtk4-unix-print.pc | |
480 | %{_pkgconfigdir}/gtk4-x11.pc | |
6f014dd4 | 481 | %if %{with broadway} |
840fbf40 | 482 | %{_pkgconfigdir}/gtk4-broadway.pc |
6f014dd4 JB |
483 | %endif |
484 | %if %{with wayland} | |
840fbf40 | 485 | %{_pkgconfigdir}/gtk4-wayland.pc |
6f014dd4 | 486 | %endif |
840fbf40 JB |
487 | %{_datadir}/gettext/its/gtk4builder.its |
488 | %{_datadir}/gettext/its/gtk4builder.loc | |
775e774e JB |
489 | %{_datadir}/gtk-4.0 |
490 | %{_datadir}/gir-1.0/Gdk-4.0.gir | |
4b737ac8 JB |
491 | %if %{with wayland} |
492 | %{_datadir}/gir-1.0/GdkWayland-4.0.gir | |
493 | %endif | |
775e774e JB |
494 | %{_datadir}/gir-1.0/GdkX11-4.0.gir |
495 | %{_datadir}/gir-1.0/Gsk-4.0.gir | |
496 | %{_datadir}/gir-1.0/Gtk-4.0.gir | |
497 | %{_mandir}/man1/gtk4-builder-tool.1* | |
498 | %{_mandir}/man1/gtk4-query-settings.1* | |
df6da6cb | 499 | |
081860cb | 500 | %if %{with static_libs} |
840fbf40 JB |
501 | %files static |
502 | %defattr(644,root,root,755) | |
503 | %{_libdir}/libgtk-4.a | |
081860cb | 504 | %endif |
840fbf40 | 505 | |
df6da6cb MB |
506 | %if %{with apidocs} |
507 | %files apidocs | |
508 | %defattr(644,root,root,755) | |
775e774e | 509 | %{_gtkdocdir}/gdk4 |
081860cb JB |
510 | %{_gtkdocdir}/gdk4-wayland |
511 | %{_gtkdocdir}/gdk4-x11 | |
775e774e JB |
512 | %{_gtkdocdir}/gsk4 |
513 | %{_gtkdocdir}/gtk4 | |
df6da6cb MB |
514 | %endif |
515 | ||
516 | %files examples | |
517 | %defattr(644,root,root,755) | |
775e774e JB |
518 | %attr(755,root,root) %{_bindir}/gtk4-demo |
519 | %attr(755,root,root) %{_bindir}/gtk4-demo-application | |
520 | %attr(755,root,root) %{_bindir}/gtk4-icon-browser | |
8ad7c423 | 521 | %attr(755,root,root) %{_bindir}/gtk4-print-editor |
775e774e | 522 | %attr(755,root,root) %{_bindir}/gtk4-widget-factory |
840fbf40 JB |
523 | %{_datadir}/glib-2.0/schemas/org.gtk.Demo4.gschema.xml |
524 | %{_datadir}/metainfo/org.gtk.Demo4.appdata.xml | |
8ad7c423 JB |
525 | %{_datadir}/metainfo/org.gtk.IconBrowser4.appdata.xml |
526 | %{_datadir}/metainfo/org.gtk.PrintEditor4.appdata.xml | |
840fbf40 JB |
527 | %{_datadir}/metainfo/org.gtk.WidgetFactory4.appdata.xml |
528 | %{_desktopdir}/org.gtk.Demo4.desktop | |
529 | %{_desktopdir}/org.gtk.IconBrowser4.desktop | |
8ad7c423 | 530 | %{_desktopdir}/org.gtk.PrintEditor4.desktop |
840fbf40 JB |
531 | %{_desktopdir}/org.gtk.WidgetFactory4.desktop |
532 | %{_iconsdir}/hicolor/scalable/apps/org.gtk.Demo4.svg | |
533 | %{_iconsdir}/hicolor/scalable/apps/org.gtk.IconBrowser4.svg | |
8ad7c423 JB |
534 | %{_iconsdir}/hicolor/scalable/apps/org.gtk.PrintEditor4.svg |
535 | %{_iconsdir}/hicolor/scalable/apps/org.gtk.PrintEditor4.Devel.svg | |
840fbf40 JB |
536 | %{_iconsdir}/hicolor/scalable/apps/org.gtk.WidgetFactory4.svg |
537 | %{_iconsdir}/hicolor/symbolic/apps/org.gtk.Demo4-symbolic.svg | |
538 | %{_iconsdir}/hicolor/symbolic/apps/org.gtk.IconBrowser4-symbolic.svg | |
8ad7c423 | 539 | %{_iconsdir}/hicolor/symbolic/apps/org.gtk.PrintEditor4-symbolic.svg |
840fbf40 | 540 | %{_iconsdir}/hicolor/symbolic/apps/org.gtk.WidgetFactory4-symbolic.svg |
775e774e JB |
541 | %{_mandir}/man1/gtk4-demo.1* |
542 | %{_mandir}/man1/gtk4-demo-application.1* | |
543 | %{_mandir}/man1/gtk4-icon-browser.1* | |
544 | %{_mandir}/man1/gtk4-widget-factory.1* | |
df6da6cb MB |
545 | %{_examplesdir}/%{name}-%{version} |
546 | ||
4b737ac8 JB |
547 | %if %{with ffmpeg} |
548 | %files media-ffmpeg | |
549 | %defattr(644,root,root,755) | |
550 | %attr(755,root,root) %{_libdir}/gtk-4.0/%{abivers}/media/libmedia-ffmpeg.so | |
551 | %endif | |
552 | ||
553 | %if %{with gstreamer} | |
554 | %files media-gstreamer | |
555 | %defattr(644,root,root,755) | |
556 | %attr(755,root,root) %{_libdir}/gtk-4.0/%{abivers}/media/libmedia-gstreamer.so | |
557 | %endif | |
558 | ||
ee442e22 JB |
559 | %if %{with cloudprint} |
560 | %files cloudprint | |
561 | %defattr(644,root,root,755) | |
775e774e | 562 | %attr(755,root,root) %{_libdir}/gtk-4.0/%{abivers}/printbackends/libprintbackend-cloudprint.so |
ee442e22 JB |
563 | %endif |
564 | ||
df6da6cb MB |
565 | %if %{with cups} |
566 | %files cups | |
567 | %defattr(644,root,root,755) | |
775e774e | 568 | %attr(755,root,root) %{_libdir}/gtk-4.0/%{abivers}/printbackends/libprintbackend-cups.so |
df6da6cb | 569 | %endif |