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