2017-08-17 15:42:15 +00:00
|
|
|
%if 0%{?fedora}
|
|
|
|
%global with_wayland 1
|
|
|
|
%global with_broadway 1
|
|
|
|
%endif
|
|
|
|
|
2020-06-09 07:47:57 +00:00
|
|
|
%global glib2_version 2.63.1
|
|
|
|
%global pango_version 1.45.0
|
2017-08-17 15:42:15 +00:00
|
|
|
%global cairo_version 1.14.0
|
|
|
|
%global gdk_pixbuf_version 2.30.0
|
2020-06-09 07:47:57 +00:00
|
|
|
%global wayland_protocols_version 1.20
|
2018-10-01 14:40:02 +00:00
|
|
|
%global wayland_version 1.14.91
|
|
|
|
%global epoxy_version 1.4
|
2017-08-17 15:42:15 +00:00
|
|
|
|
|
|
|
%global bin_version 4.0.0
|
|
|
|
|
|
|
|
# Filter provides for private modules
|
|
|
|
%global __provides_exclude_from ^%{_libdir}/gtk-4.0
|
|
|
|
|
|
|
|
Name: gtk4
|
2020-08-01 12:10:11 +00:00
|
|
|
Version: 3.99.0
|
2020-08-17 23:25:09 +00:00
|
|
|
Release: 2%{?dist}
|
2019-05-07 04:01:18 +00:00
|
|
|
Summary: GTK graphical user interface library
|
2017-08-17 15:42:15 +00:00
|
|
|
|
|
|
|
License: LGPLv2+
|
2020-02-11 08:49:12 +00:00
|
|
|
URL: https://www.gtk.org
|
2020-08-01 12:10:11 +00:00
|
|
|
Source0: https://download.gnome.org/sources/gtk/3.99/gtk-%{version}.tar.xz
|
2018-10-01 14:40:02 +00:00
|
|
|
|
2017-08-17 15:42:15 +00:00
|
|
|
BuildRequires: cups-devel
|
|
|
|
BuildRequires: desktop-file-utils
|
2020-04-21 07:41:10 +00:00
|
|
|
BuildRequires: docbook-style-xsl
|
2018-10-01 14:40:02 +00:00
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: gcc-c++
|
2020-04-21 07:41:10 +00:00
|
|
|
BuildRequires: gettext
|
2018-10-01 14:40:02 +00:00
|
|
|
BuildRequires: meson
|
2017-08-17 15:42:15 +00:00
|
|
|
BuildRequires: pkgconfig(avahi-gobject)
|
|
|
|
BuildRequires: pkgconfig(cairo) >= %{cairo_version}
|
|
|
|
BuildRequires: pkgconfig(cairo-gobject) >= %{cairo_version}
|
|
|
|
BuildRequires: pkgconfig(colord)
|
|
|
|
BuildRequires: pkgconfig(epoxy)
|
|
|
|
BuildRequires: pkgconfig(gdk-pixbuf-2.0) >= %{gdk_pixbuf_version}
|
|
|
|
BuildRequires: pkgconfig(glib-2.0) >= %{glib2_version}
|
|
|
|
BuildRequires: pkgconfig(gobject-introspection-1.0)
|
|
|
|
BuildRequires: pkgconfig(graphene-gobject-1.0)
|
2018-10-01 14:40:02 +00:00
|
|
|
BuildRequires: pkgconfig(gstreamer-player-1.0)
|
2017-08-17 15:42:15 +00:00
|
|
|
BuildRequires: pkgconfig(json-glib-1.0)
|
|
|
|
BuildRequires: pkgconfig(pango) >= %{pango_version}
|
|
|
|
BuildRequires: pkgconfig(rest-0.7)
|
|
|
|
BuildRequires: pkgconfig(xcomposite)
|
|
|
|
BuildRequires: pkgconfig(xcursor)
|
|
|
|
BuildRequires: pkgconfig(xdamage)
|
|
|
|
BuildRequires: pkgconfig(xfixes)
|
|
|
|
BuildRequires: pkgconfig(xi)
|
|
|
|
BuildRequires: pkgconfig(xinerama)
|
|
|
|
BuildRequires: pkgconfig(xrandr)
|
|
|
|
BuildRequires: pkgconfig(xrender)
|
|
|
|
BuildRequires: pkgconfig(xrender)
|
|
|
|
%if 0%{?with_wayland}
|
|
|
|
BuildRequires: pkgconfig(egl)
|
|
|
|
BuildRequires: pkgconfig(wayland-client) >= %{wayland_version}
|
|
|
|
BuildRequires: pkgconfig(wayland-cursor) >= %{wayland_version}
|
|
|
|
BuildRequires: pkgconfig(wayland-egl) >= %{wayland_version}
|
|
|
|
BuildRequires: pkgconfig(wayland-protocols) >= %{wayland_protocols_version}
|
|
|
|
BuildRequires: pkgconfig(xkbcommon)
|
|
|
|
%endif
|
2020-02-11 08:10:20 +00:00
|
|
|
BuildRequires: sassc
|
2020-04-21 07:41:10 +00:00
|
|
|
BuildRequires: /usr/bin/xsltproc
|
2017-08-17 15:42:15 +00:00
|
|
|
|
|
|
|
# standard icons
|
|
|
|
Requires: adwaita-icon-theme
|
|
|
|
# required for icon theme apis to work
|
|
|
|
Requires: hicolor-icon-theme
|
|
|
|
# split out in a subpackage
|
|
|
|
Requires: gtk-update-icon-cache
|
|
|
|
|
|
|
|
Requires: cairo%{?_isa} >= %{cairo_version}
|
|
|
|
Requires: cairo-gobject%{?_isa} >= %{cairo_version}
|
|
|
|
Requires: glib2%{?_isa} >= %{glib2_version}
|
|
|
|
Requires: libepoxy%{?_isa} >= %{epoxy_version}
|
|
|
|
Requires: pango%{?_isa} >= %{pango_version}
|
|
|
|
%if 0%{?with_wayland}
|
|
|
|
Requires: libwayland-client%{?_isa} >= %{wayland_version}
|
|
|
|
Requires: libwayland-cursor%{?_isa} >= %{wayland_version}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
# required to support all the different image formats
|
|
|
|
Requires: gdk-pixbuf2-modules%{?_isa}
|
|
|
|
|
|
|
|
# make sure we have a reasonable gsettings backend
|
|
|
|
%if 0%{?fedora}
|
|
|
|
Recommends: dconf%{?_isa}
|
|
|
|
%else
|
|
|
|
Requires: dconf%{?_isa}
|
|
|
|
%endif
|
|
|
|
|
2018-10-01 14:40:02 +00:00
|
|
|
# Removed in F29
|
|
|
|
Obsoletes: gtk4-immodules < 3.94.0
|
|
|
|
Obsoletes: gtk4-immodule-xim < 3.94.0
|
|
|
|
|
2019-05-07 04:50:15 +00:00
|
|
|
# Removed in F30
|
|
|
|
Obsoletes: gtk4-tests < 3.96.0
|
2020-04-21 07:41:10 +00:00
|
|
|
# Removed in F32
|
|
|
|
Obsoletes: gtk4-devel-docs < 3.98.3
|
2019-05-07 04:50:15 +00:00
|
|
|
|
2017-08-17 15:42:15 +00:00
|
|
|
%description
|
2019-05-07 04:01:18 +00:00
|
|
|
GTK is a multi-platform toolkit for creating graphical user
|
|
|
|
interfaces. Offering a complete set of widgets, GTK is suitable for
|
2017-08-17 15:42:15 +00:00
|
|
|
projects ranging from small one-off tools to complete application
|
|
|
|
suites.
|
|
|
|
|
2019-05-07 04:01:18 +00:00
|
|
|
This package contains version 4 of GTK.
|
2017-08-17 15:42:15 +00:00
|
|
|
|
|
|
|
%package devel
|
2019-05-07 04:01:18 +00:00
|
|
|
Summary: Development files for GTK
|
2017-08-17 15:42:15 +00:00
|
|
|
Requires: gtk4%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains the libraries and header files that are needed
|
2020-04-21 07:41:10 +00:00
|
|
|
for writing applications with version 4 of the GTK widget toolkit.
|
2017-08-17 15:42:15 +00:00
|
|
|
|
|
|
|
%prep
|
2020-03-12 08:29:48 +00:00
|
|
|
%autosetup -p1 -n gtk-%{version}
|
2017-08-17 15:42:15 +00:00
|
|
|
|
|
|
|
%build
|
2020-08-17 23:25:09 +00:00
|
|
|
# This package has the usual problems with LTO vs NEON on ARM.
|
|
|
|
%ifarch armv7hl
|
|
|
|
%define _lto_cflags %{nil}
|
|
|
|
%endif
|
2017-08-17 15:42:15 +00:00
|
|
|
export CFLAGS='-fno-strict-aliasing %optflags'
|
2017-11-02 14:24:38 +00:00
|
|
|
%meson \
|
2018-10-01 14:40:02 +00:00
|
|
|
-Dx11-backend=true \
|
2017-08-17 15:42:15 +00:00
|
|
|
%if 0%{?with_wayland}
|
2018-10-01 14:40:02 +00:00
|
|
|
-Dwayland-backend=true \
|
2017-08-17 15:42:15 +00:00
|
|
|
%endif
|
|
|
|
%if 0%{?with_broadway}
|
2018-10-01 14:40:02 +00:00
|
|
|
-Dbroadway-backend=true \
|
2017-08-17 15:42:15 +00:00
|
|
|
%endif
|
2018-10-01 14:40:02 +00:00
|
|
|
-Dxinerama=yes \
|
|
|
|
-Dcolord=yes \
|
2020-04-21 07:41:10 +00:00
|
|
|
-Dgtk_doc=false \
|
2017-11-02 14:24:38 +00:00
|
|
|
-Dman-pages=true \
|
2019-05-07 04:50:15 +00:00
|
|
|
-Dinstall-tests=false
|
2017-08-17 15:42:15 +00:00
|
|
|
|
2017-11-02 14:24:38 +00:00
|
|
|
%meson_build
|
2017-08-17 15:42:15 +00:00
|
|
|
|
|
|
|
%install
|
2017-11-02 14:24:38 +00:00
|
|
|
%meson_install
|
2017-08-17 15:42:15 +00:00
|
|
|
|
|
|
|
%find_lang gtk40
|
|
|
|
%find_lang gtk40-properties
|
|
|
|
|
|
|
|
%if !0%{?with_broadway}
|
|
|
|
rm $RPM_BUILD_ROOT%{_mandir}/man1/gtk4-broadwayd.1*
|
|
|
|
%endif
|
|
|
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/gtk-4.0
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_libdir}/gtk-4.0/modules
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_libdir}/gtk-4.0/%{bin_version}/theming-engines
|
|
|
|
|
|
|
|
%check
|
|
|
|
desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop
|
|
|
|
|
2019-01-22 17:39:13 +00:00
|
|
|
%ldconfig_scriptlets
|
2017-08-17 15:42:15 +00:00
|
|
|
|
|
|
|
%files -f gtk40.lang
|
|
|
|
%license COPYING
|
2017-11-02 14:24:38 +00:00
|
|
|
%doc AUTHORS NEWS README.md
|
2017-08-17 15:42:15 +00:00
|
|
|
%{_bindir}/gtk4-launch
|
|
|
|
%{_bindir}/gtk4-update-icon-cache
|
|
|
|
%{_libdir}/libgtk-4.so.*
|
|
|
|
%dir %{_libdir}/gtk-4.0
|
|
|
|
%dir %{_libdir}/gtk-4.0/%{bin_version}
|
2018-10-01 14:40:02 +00:00
|
|
|
%{_libdir}/gtk-4.0/%{bin_version}/media/
|
|
|
|
%{_libdir}/gtk-4.0/%{bin_version}/printbackends/
|
|
|
|
%{_libdir}/gtk-4.0/%{bin_version}/theming-engines/
|
2017-08-17 15:42:15 +00:00
|
|
|
%{_libdir}/gtk-4.0/modules
|
|
|
|
%{_libdir}/girepository-1.0
|
|
|
|
%{_mandir}/man1/gtk4-launch.1*
|
|
|
|
%{_mandir}/man1/gtk4-update-icon-cache.1*
|
2019-05-07 03:59:45 +00:00
|
|
|
%{_datadir}/glib-2.0/schemas/org.gtk.gtk4.Settings.ColorChooser.gschema.xml
|
|
|
|
%{_datadir}/glib-2.0/schemas/org.gtk.gtk4.Settings.Debug.gschema.xml
|
|
|
|
%{_datadir}/glib-2.0/schemas/org.gtk.gtk4.Settings.EmojiChooser.gschema.xml
|
|
|
|
%{_datadir}/glib-2.0/schemas/org.gtk.gtk4.Settings.FileChooser.gschema.xml
|
2017-08-17 15:42:15 +00:00
|
|
|
%if 0%{?with_broadway}
|
|
|
|
%{_bindir}/gtk4-broadwayd
|
|
|
|
%{_mandir}/man1/gtk4-broadwayd.1*
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%files devel -f gtk40-properties.lang
|
|
|
|
%{_libdir}/lib*.so
|
|
|
|
%{_includedir}/*
|
|
|
|
%{_libdir}/pkgconfig/*
|
|
|
|
%{_bindir}/gtk4-builder-tool
|
|
|
|
%{_bindir}/gtk4-demo
|
|
|
|
%{_bindir}/gtk4-encode-symbolic-svg
|
|
|
|
%{_bindir}/gtk4-icon-browser
|
|
|
|
%{_bindir}/gtk4-query-settings
|
2019-05-07 03:59:45 +00:00
|
|
|
%{_datadir}/applications/org.gtk.Demo4.desktop
|
|
|
|
%{_datadir}/applications/org.gtk.IconBrowser4.desktop
|
2020-08-01 12:10:11 +00:00
|
|
|
%{_datadir}/applications/org.gtk.PrintEditor4.desktop
|
2019-05-07 03:59:45 +00:00
|
|
|
%{_datadir}/applications/org.gtk.WidgetFactory4.desktop
|
2020-08-01 12:10:11 +00:00
|
|
|
%{_datadir}/icons/hicolor/*/apps/org.gtk.Demo4*.svg
|
|
|
|
%{_datadir}/icons/hicolor/*/apps/org.gtk.gtk4.NodeEditor*.svg
|
|
|
|
%{_datadir}/icons/hicolor/*/apps/org.gtk.IconBrowser4*.svg
|
|
|
|
%{_datadir}/icons/hicolor/*/apps/org.gtk.PrintEditor4*.svg
|
|
|
|
%{_datadir}/icons/hicolor/*/apps/org.gtk.WidgetFactory4*.svg
|
2017-08-17 15:42:15 +00:00
|
|
|
%{_bindir}/gtk4-demo-application
|
2020-08-01 12:10:11 +00:00
|
|
|
%{_bindir}/gtk4-print-editor
|
2017-08-17 15:42:15 +00:00
|
|
|
%{_bindir}/gtk4-widget-factory
|
|
|
|
%{_datadir}/gettext/
|
|
|
|
%{_datadir}/gir-1.0
|
2019-05-07 03:59:45 +00:00
|
|
|
%{_datadir}/glib-2.0/schemas/org.gtk.Demo4.gschema.xml
|
|
|
|
%dir %{_datadir}/gtk-4.0
|
|
|
|
%{_datadir}/gtk-4.0/gtk4builder.rng
|
2020-03-22 09:07:05 +00:00
|
|
|
%{_datadir}/gtk-4.0/valgrind/
|
2019-05-07 03:59:45 +00:00
|
|
|
%{_datadir}/metainfo/org.gtk.Demo4.appdata.xml
|
2020-08-01 12:10:11 +00:00
|
|
|
%{_datadir}/metainfo/org.gtk.IconBrowser4.appdata.xml
|
|
|
|
%{_datadir}/metainfo/org.gtk.PrintEditor4.appdata.xml
|
2019-05-07 03:59:45 +00:00
|
|
|
%{_datadir}/metainfo/org.gtk.WidgetFactory4.appdata.xml
|
2017-08-17 15:42:15 +00:00
|
|
|
%{_mandir}/man1/gtk4-builder-tool.1*
|
|
|
|
%{_mandir}/man1/gtk4-demo.1*
|
|
|
|
%{_mandir}/man1/gtk4-demo-application.1*
|
|
|
|
%{_mandir}/man1/gtk4-encode-symbolic-svg.1*
|
|
|
|
%{_mandir}/man1/gtk4-icon-browser.1*
|
|
|
|
%{_mandir}/man1/gtk4-query-settings.1*
|
|
|
|
%{_mandir}/man1/gtk4-widget-factory.1*
|
|
|
|
|
|
|
|
%changelog
|
2020-08-17 23:25:09 +00:00
|
|
|
* Mon Aug 17 2020 Jeff Law <law@redhat.com> - 3.99.0-2
|
|
|
|
- Disable LTO on armv7hl
|
|
|
|
|
2020-08-01 12:10:11 +00:00
|
|
|
* Sat Aug 01 2020 Kalev Lember <klember@redhat.com> - 3.99.0-1
|
|
|
|
- Update to 3.99.0
|
|
|
|
|
2020-08-01 03:24:58 +00:00
|
|
|
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.98.5-3
|
|
|
|
- Second attempt - Rebuilt for
|
|
|
|
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-07-28 00:34:49 +00:00
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.98.5-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-06-09 07:47:57 +00:00
|
|
|
* Sun Jun 07 2020 Kalev Lember <klember@redhat.com> - 3.98.5-1
|
|
|
|
- Update to 3.98.5
|
|
|
|
|
2020-05-19 07:35:29 +00:00
|
|
|
* Tue May 19 2020 Kalev Lember <klember@redhat.com> - 3.98.4-1
|
|
|
|
- Update to 3.98.4
|
|
|
|
|
2020-04-21 07:41:10 +00:00
|
|
|
* Tue Apr 21 2020 Kalev Lember <klember@redhat.com> - 3.98.3-1
|
|
|
|
- Update to 3.98.3
|
|
|
|
- Temporarily disable built documentation as we don't have new enough gtk-doc
|
|
|
|
|
2020-04-01 11:35:32 +00:00
|
|
|
* Wed Apr 01 2020 Kalev Lember <klember@redhat.com> - 3.98.2-1
|
|
|
|
- Update to 3.98.2
|
|
|
|
|
2020-03-22 09:07:05 +00:00
|
|
|
* Sun Mar 22 2020 Kalev Lember <klember@redhat.com> - 3.98.1-1
|
|
|
|
- Update to 3.98.1
|
|
|
|
|
2020-03-12 08:29:48 +00:00
|
|
|
* Thu Mar 12 2020 Kalev Lember <klember@redhat.com> - 3.98.0-2
|
|
|
|
- Install missing gtkemojichooser.h (#1806509)
|
|
|
|
|
2020-02-11 08:10:20 +00:00
|
|
|
* Tue Feb 11 2020 Kalev Lember <klember@redhat.com> - 3.98.0-1
|
|
|
|
- Update to 3.98.0
|
2020-02-11 08:49:12 +00:00
|
|
|
- Use https for source URLs
|
2020-02-11 08:10:20 +00:00
|
|
|
|
2020-01-29 03:51:22 +00:00
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.96.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2019-07-25 08:02:19 +00:00
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.96.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-05-07 03:59:45 +00:00
|
|
|
* Tue May 07 2019 Kalev Lember <klember@redhat.com> - 3.96.0-1
|
|
|
|
- Update to 3.96.0
|
2019-05-07 04:01:18 +00:00
|
|
|
- Use GTK instead of GTK+ in descriptions
|
2019-05-07 04:50:15 +00:00
|
|
|
- Don't ship installed tests as they are currently broken
|
2019-05-07 03:59:45 +00:00
|
|
|
|
2019-02-01 01:50:37 +00:00
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.94.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-10-01 14:40:02 +00:00
|
|
|
* Mon Oct 01 2018 Kalev Lember <klember@redhat.com> - 3.94.0-1
|
|
|
|
- Update to 3.94.0
|
|
|
|
- Remove and obsolete immodules subpackages
|
|
|
|
- Build new gstreamer media backend
|
|
|
|
|
2018-07-13 04:42:20 +00:00
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.92.1-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-03-08 01:20:52 +00:00
|
|
|
* Wed Mar 07 2018 Adam Williamson <awilliam@redhat.com> - 3.92.1-3
|
|
|
|
- Rebuild to fix GCC 8 mis-compilation
|
|
|
|
See https://da.gd/YJVwk ("GCC 8 ABI change on x86_64")
|
|
|
|
|
2018-02-07 15:45:42 +00:00
|
|
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.92.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2017-11-02 14:24:38 +00:00
|
|
|
* Thu Nov 02 2017 Kalev Lember <klember@redhat.com> - 3.92.1-1
|
|
|
|
- Update to 3.92.1
|
2017-11-02 14:25:51 +00:00
|
|
|
- Enable installed tests
|
2017-11-02 14:24:38 +00:00
|
|
|
|
2017-08-17 15:42:15 +00:00
|
|
|
* Tue Aug 08 2017 Kalev Lember <klember@redhat.com> - 3.91.2-1
|
|
|
|
- Update to 3.91.2
|
|
|
|
|
|
|
|
* Thu Jul 20 2017 Kalev Lember <klember@redhat.com> - 3.91.1-1
|
|
|
|
- Update to 3.91.1
|
|
|
|
|
|
|
|
* Wed Jun 14 2017 Kalev Lember <klember@redhat.com> - 3.91.0-2
|
|
|
|
- Disable installed tests due to file conflicts between gtk3-tests and
|
|
|
|
gtk4-tests
|
|
|
|
|
|
|
|
* Wed Jun 14 2017 Kalev Lember <klember@redhat.com> - 3.91.0-1
|
|
|
|
- Initial Fedora packaging
|