2022-04-15 18:29:11 +08:00
|
|
|
%global glib2_version 2.66.0
|
|
|
|
|
%global pango_version 1.50.0
|
2021-06-08 20:02:13 +08:00
|
|
|
%global cairo_version 1.14.0
|
|
|
|
|
%global gdk_pixbuf_version 2.30.0
|
2022-04-15 18:29:11 +08:00
|
|
|
%global wayland_protocols_version 1.23
|
|
|
|
|
%global wayland_version 1.20.0
|
2021-06-08 20:02:13 +08:00
|
|
|
%global epoxy_version 1.4
|
|
|
|
|
|
|
|
|
|
%global bin_version 4.0.0
|
|
|
|
|
%global __provides_exclude_from ^%{_libdir}/gtk-4.0
|
|
|
|
|
|
|
|
|
|
Name: gtk4
|
2022-06-25 18:08:50 +08:00
|
|
|
Version: 4.7.0
|
2023-01-19 18:00:30 +08:00
|
|
|
Release: 3
|
2021-06-08 20:02:13 +08:00
|
|
|
Summary: GTK graphical user interface library
|
|
|
|
|
License: LGPLv2+
|
|
|
|
|
URL: https://www.gtk.org
|
2022-06-25 18:08:50 +08:00
|
|
|
Source0: https://download.gnome.org/sources/gtk/4.7/gtk-%{version}.tar.xz
|
2021-06-08 20:02:13 +08:00
|
|
|
|
|
|
|
|
BuildRequires: cups-devel desktop-file-utils docbook-style-xsl gcc
|
|
|
|
|
BuildRequires: sassc libxslt gcc-c++ gettext meson
|
2022-04-15 18:29:11 +08:00
|
|
|
BuildRequires: gi-docgen python3-docutils python3-gobject
|
2021-06-08 20:02:13 +08:00
|
|
|
BuildRequires: pkgconfig(avahi-gobject)
|
|
|
|
|
BuildRequires: pkgconfig(cairo) >= %{cairo_version}
|
|
|
|
|
BuildRequires: pkgconfig(cairo-gobject) >= %{cairo_version}
|
|
|
|
|
BuildRequires: pkgconfig(colord)
|
|
|
|
|
BuildRequires: pkgconfig(egl)
|
|
|
|
|
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)
|
|
|
|
|
BuildRequires: pkgconfig(gstreamer-player-1.0)
|
|
|
|
|
BuildRequires: pkgconfig(json-glib-1.0)
|
2022-04-15 18:29:11 +08:00
|
|
|
BuildRequires: pkgconfig(libjpeg)
|
|
|
|
|
BuildRequires: pkgconfig(libpng)
|
|
|
|
|
BuildRequires: pkgconfig(libtiff-4)
|
2021-06-08 20:02:13 +08:00
|
|
|
BuildRequires: pkgconfig(pango) >= %{pango_version}
|
2023-01-19 18:00:30 +08:00
|
|
|
BuildRequires: pkgconfig(rest-0.7)
|
2022-04-15 18:29:11 +08:00
|
|
|
BuildRequires: pkgconfig(sysprof-4)
|
|
|
|
|
BuildRequires: pkgconfig(sysprof-capture-4)
|
|
|
|
|
BuildRequires: pkgconfig(tracker-sparql-3.0)
|
2021-06-08 20:02:13 +08:00
|
|
|
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(xcomposite)
|
|
|
|
|
BuildRequires: pkgconfig(xcursor)
|
|
|
|
|
BuildRequires: pkgconfig(xdamage)
|
|
|
|
|
BuildRequires: pkgconfig(xfixes)
|
|
|
|
|
BuildRequires: pkgconfig(xi)
|
|
|
|
|
BuildRequires: pkgconfig(xinerama)
|
|
|
|
|
BuildRequires: pkgconfig(xkbcommon)
|
|
|
|
|
BuildRequires: pkgconfig(xrandr)
|
|
|
|
|
BuildRequires: pkgconfig(xrender)
|
|
|
|
|
|
|
|
|
|
Requires: adwaita-icon-theme
|
|
|
|
|
Requires: hicolor-icon-theme
|
|
|
|
|
|
|
|
|
|
Requires: cairo%{?_isa} >= %{cairo_version}
|
2022-04-15 18:29:11 +08:00
|
|
|
Requires: cairo-gobject%{?_isa} >= %{cairo_version}
|
2021-06-08 20:02:13 +08:00
|
|
|
Requires: glib2%{?_isa} >= %{glib2_version}
|
|
|
|
|
Requires: libepoxy%{?_isa} >= %{epoxy_version}
|
|
|
|
|
Requires: wayland%{?_isa} >= %{wayland_version}
|
|
|
|
|
Requires: pango%{?_isa} >= %{pango_version}
|
2022-04-15 18:29:11 +08:00
|
|
|
Requires: gdk-pixbuf2-modules%{?_isa}
|
|
|
|
|
Recommends: dconf%{?_isa}
|
2021-06-08 20:02:13 +08:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
GTK is a multi-platform toolkit for creating graphical user
|
|
|
|
|
interfaces. Offering a complete set of widgets, GTK is suitable for
|
|
|
|
|
projects ranging from small one-off tools to complete application
|
|
|
|
|
suites.
|
|
|
|
|
|
|
|
|
|
This package contains version 4 of GTK.
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Development files for GTK
|
|
|
|
|
Requires: gtk4%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
This package contains the libraries and header files that are needed
|
|
|
|
|
for writing applications with version 4 of the GTK widget toolkit.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -p1 -n gtk-%{version}
|
|
|
|
|
|
|
|
|
|
%build
|
2022-04-15 18:29:11 +08:00
|
|
|
export CFLAGS='-fno-strict-aliasing -DG_DISABLE_CAST_CHECKS -DG_DISABLE_ASSERT %optflags'
|
2021-06-08 20:02:13 +08:00
|
|
|
%meson \
|
|
|
|
|
-Dx11-backend=true \
|
|
|
|
|
-Dwayland-backend=true \
|
2022-04-15 18:29:11 +08:00
|
|
|
-Dbroadway-backend=true \
|
|
|
|
|
-Dsysprof=enabled \
|
|
|
|
|
-Dtracker=enabled \
|
2021-06-08 20:02:13 +08:00
|
|
|
-Dcolord=enabled \
|
|
|
|
|
-Dgtk_doc=false \
|
|
|
|
|
-Dman-pages=true \
|
|
|
|
|
-Dinstall-tests=false \
|
2022-04-15 18:29:11 +08:00
|
|
|
-Dmedia-ffmpeg=disabled
|
2021-06-08 20:02:13 +08:00
|
|
|
|
|
|
|
|
%meson_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%meson_install
|
|
|
|
|
|
|
|
|
|
%find_lang gtk40
|
|
|
|
|
%find_lang gtk40-properties
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
%ldconfig_scriptlets
|
|
|
|
|
|
|
|
|
|
%files -f gtk40.lang
|
|
|
|
|
%license COPYING
|
|
|
|
|
%doc AUTHORS NEWS README.md
|
|
|
|
|
%{_bindir}/gtk4-launch
|
|
|
|
|
%{_bindir}/gtk4-update-icon-cache
|
2022-04-15 18:29:11 +08:00
|
|
|
%{_libdir}/libgtk-4.so.1*
|
2021-06-08 20:02:13 +08:00
|
|
|
%dir %{_libdir}/gtk-4.0
|
|
|
|
|
%dir %{_libdir}/gtk-4.0/%{bin_version}
|
|
|
|
|
%{_libdir}/gtk-4.0/%{bin_version}/media/
|
|
|
|
|
%{_libdir}/gtk-4.0/%{bin_version}/printbackends/
|
|
|
|
|
%{_libdir}/gtk-4.0/modules
|
|
|
|
|
%{_libdir}/girepository-1.0
|
|
|
|
|
%{_mandir}/man1/gtk4-launch.1*
|
|
|
|
|
%{_mandir}/man1/gtk4-update-icon-cache.1*
|
|
|
|
|
%{_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
|
|
|
|
|
%dir %{_datadir}/gtk-4.0
|
|
|
|
|
%{_datadir}/gtk-4.0/emoji/
|
|
|
|
|
%{_bindir}/gtk4-broadwayd
|
|
|
|
|
%{_mandir}/man1/gtk4-broadwayd.1*
|
|
|
|
|
|
|
|
|
|
%files devel -f gtk40-properties.lang
|
2022-04-15 18:29:11 +08:00
|
|
|
%{_libdir}/libgtk-4.so
|
2021-06-08 20:02:13 +08:00
|
|
|
%{_includedir}/*
|
|
|
|
|
%{_libdir}/pkgconfig/*
|
|
|
|
|
%{_bindir}/gtk4-builder-tool
|
|
|
|
|
%{_bindir}/gtk4-encode-symbolic-svg
|
|
|
|
|
%{_bindir}/gtk4-query-settings
|
2022-06-25 18:08:50 +08:00
|
|
|
%{_bindir}/gtk4-node-editor
|
2022-04-15 18:29:11 +08:00
|
|
|
%{_datadir}/gettext/
|
|
|
|
|
%{_datadir}/gir-1.0
|
|
|
|
|
%{_datadir}/gtk-4.0/gtk4builder.rng
|
|
|
|
|
%{_datadir}/gtk-4.0/valgrind/
|
|
|
|
|
%{_mandir}/man1/gtk4-builder-tool.1*
|
|
|
|
|
%{_mandir}/man1/gtk4-encode-symbolic-svg.1*
|
|
|
|
|
%{_mandir}/man1/gtk4-query-settings.1*
|
|
|
|
|
%{_datadir}/doc/gtk4/
|
|
|
|
|
%{_bindir}/gtk4-demo
|
|
|
|
|
%{_bindir}/gtk4-demo-application
|
|
|
|
|
%{_bindir}/gtk4-icon-browser
|
|
|
|
|
%{_bindir}/gtk4-print-editor
|
|
|
|
|
%{_bindir}/gtk4-widget-factory
|
2021-06-08 20:02:13 +08:00
|
|
|
%{_datadir}/applications/org.gtk.Demo4.desktop
|
|
|
|
|
%{_datadir}/applications/org.gtk.IconBrowser4.desktop
|
|
|
|
|
%{_datadir}/applications/org.gtk.PrintEditor4.desktop
|
|
|
|
|
%{_datadir}/applications/org.gtk.WidgetFactory4.desktop
|
2022-06-25 18:08:50 +08:00
|
|
|
%{_datadir}/applications/org.gtk.gtk4.NodeEditor.desktop
|
2021-06-08 20:02:13 +08:00
|
|
|
%{_datadir}/icons/hicolor/*/apps/org.gtk.Demo4*.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
|
2022-06-25 18:08:50 +08:00
|
|
|
%{_datadir}/icons/hicolor/*/apps/org.gtk.gtk4.NodeEditor.Devel.svg
|
|
|
|
|
%{_datadir}/icons/hicolor/*/apps/org.gtk.gtk4.NodeEditor.svg
|
|
|
|
|
%{_datadir}/icons/hicolor/*/apps/org.gtk.gtk4.NodeEditor-symbolic.svg
|
2021-06-08 20:02:13 +08:00
|
|
|
%{_datadir}/glib-2.0/schemas/org.gtk.Demo4.gschema.xml
|
|
|
|
|
%{_datadir}/metainfo/org.gtk.Demo4.appdata.xml
|
|
|
|
|
%{_datadir}/metainfo/org.gtk.IconBrowser4.appdata.xml
|
|
|
|
|
%{_datadir}/metainfo/org.gtk.PrintEditor4.appdata.xml
|
|
|
|
|
%{_datadir}/metainfo/org.gtk.WidgetFactory4.appdata.xml
|
2022-06-25 18:08:50 +08:00
|
|
|
%{_datadir}/metainfo/org.gtk.gtk4.NodeEditor.appdata.xml
|
2021-06-08 20:02:13 +08:00
|
|
|
%{_mandir}/man1/gtk4-demo.1*
|
2022-06-25 18:08:50 +08:00
|
|
|
%{_mandir}/man1/gtk4-node-editor.1*
|
2021-06-08 20:02:13 +08:00
|
|
|
%{_mandir}/man1/gtk4-demo-application.1*
|
|
|
|
|
%{_mandir}/man1/gtk4-icon-browser.1*
|
|
|
|
|
%{_mandir}/man1/gtk4-widget-factory.1*
|
|
|
|
|
|
|
|
|
|
%changelog
|
2023-01-19 18:00:30 +08:00
|
|
|
* Thu Jan 19 2023 yaoxin <yaoxin30@h-partners.com> - 4.7.0-3
|
|
|
|
|
- Fix error pkgconfig(rest-1.0) due to rest revert to 0.8.1
|
|
|
|
|
|
2022-12-02 06:40:25 +00:00
|
|
|
* Fri Dec 2 2022 lin zhang <lin.zhang@turbolinux.com.cn> - 4.7.0-2
|
|
|
|
|
- firx error:BuildRequires :pkgconfig(rest-0.7)
|
|
|
|
|
|
2022-06-25 18:08:50 +08:00
|
|
|
* Sat Jun 25 2022 lin zhang <lin.zhang@turbolinux.com.cn> - 4.7.0-1
|
|
|
|
|
- Upgrade to 4.7.0
|
|
|
|
|
|
|
|
|
|
* Mon Jun 20 2022 lin zhang <lin.zhang@turbolinux.com.cn> - 4.6.5-1
|
2022-06-17 15:38:11 +08:00
|
|
|
- Upgrade to 4.6.5
|
|
|
|
|
|
2022-06-25 18:08:50 +08:00
|
|
|
* Fri Jun 17 2022 liyanan <liyanan32@h-partners.com> - 4.6.2-2
|
2022-06-17 14:55:17 +08:00
|
|
|
- Remove various meson toggles that match with upstream defaults
|
|
|
|
|
|
2022-04-15 18:29:11 +08:00
|
|
|
* Mon Mar 28 2022 lin zhang <lin.zhang@turbolinux.com.cn> - 4.6.2-1
|
|
|
|
|
- Upgrade to 4.6.2
|
|
|
|
|
- Add gtk4.yaml
|
|
|
|
|
|
2021-06-08 20:02:13 +08:00
|
|
|
* Mon May 31 2021 weijin deng <weijin.deng@turbolinux.com.cn> - 4.2.0-1
|
|
|
|
|
- Package gtk4 init with version 4.2.0
|