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