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