[packages/gtk+3] up to 3.24.36
atler
atler at pld-linux.org
Sat Dec 24 23:55:55 CET 2022
commit 83e95fed1feeb458e23809da722a3d917a521535
Author: Jan Palus <atler at pld-linux.org>
Date: Sat Dec 24 23:54:30 2022 +0100
up to 3.24.36
- upstream dropped autotools, uses meson exlusively
gtk+3-cloudproviders.patch | 34 +++++++++++------------
gtk+3.spec | 67 +++++++++++++---------------------------------
2 files changed, 34 insertions(+), 67 deletions(-)
---
diff --git a/gtk+3.spec b/gtk+3.spec
index c2080a7..3b119c6 100644
--- a/gtk+3.spec
+++ b/gtk+3.spec
@@ -19,20 +19,18 @@ Summary(it.UTF-8): Il toolkit per GIMP
Summary(pl.UTF-8): GIMP Toolkit
Summary(tr.UTF-8): GIMP ToolKit arayüz kitaplığı
Name: gtk+3
-Version: 3.24.35
+Version: 3.24.36
Release: 1
License: LGPL v2+
Group: X11/Libraries
Source0: https://download.gnome.org/sources/gtk+/3.24/gtk+-%{version}.tar.xz
-# Source0-md5: d65e5664d2798b18806742ecd0fb8cd7
+# Source0-md5: fd4571a112ffaa2fbbb9d25de8f5b6c0
Patch0: %{name}-papi.patch
Patch1: typeahead.patch
Patch2: %{name}-cloudproviders.patch
URL: https://www.gtk.org/
BuildRequires: at-spi2-atk-devel >= 2.6.0
BuildRequires: atk-devel >= 1:2.16.0
-BuildRequires: autoconf >= 2.62
-BuildRequires: automake >= 1:1.11
# cairo-gobject + cairo-pdf,cairo-ps,cairo-svg
BuildRequires: cairo-gobject-devel >= 1.14.0
BuildRequires: colord-devel >= 0.1.9
@@ -49,16 +47,16 @@ BuildRequires: glib2-devel >= 1:2.57.2
BuildRequires: gobject-introspection-devel >= 1.39.0
%if %{with apidocs}
BuildRequires: gtk-doc >= 1.20
-BuildRequires: gtk-doc-automake >= 1.20
%endif
BuildRequires: harfbuzz-devel >= 0.9
BuildRequires: iso-codes
%{?with_cloudproviders:BuildRequires: libcloudproviders-devel >= 0.2.5}
BuildRequires: libepoxy-devel >= 1.4
BuildRequires: libstdc++-devel
-BuildRequires: libtool >= 2:2.2.6
BuildRequires: libxml2-progs >= 1:2.6.31
BuildRequires: libxslt-progs >= 1.1.20
+BuildRequires: meson
+BuildRequires: ninja
BuildRequires: pango-devel >= 1:1.41.0
%{?with_papi:BuildRequires: papi-devel}
BuildRequires: perl-base
@@ -294,49 +292,27 @@ Moduł GTK+ do drukowania przez PAPI.
install -d _examples
cp -a demos examples _examples
-# upstream used too new wayland for make dist in 3.10.6 - force regeneration
-touch gdk/wayland/protocol/gtk-shell.xml
-
-# workaround for https://gitlab.gnome.org/GNOME/gtk/-/issues/5355
-# remove if it fails
-test ! -f gtk/gtkresources.c && %{__rm} testsuite/gtk/gtkresources.c
-
%build
CPPFLAGS="%{rpmcppflags}%{?with_papi: -I/usr/include/papi}"
-%{?with_apidocs:%{__gtkdocize}}
-%{__libtoolize}
-%{__aclocal} -I m4
-%{__autoconf}
-%{__autoheader}
-%{__automake}
-%configure \
- --disable-silent-rules \
- %{__disable cups} \
- %{!?with_papi:--disable-papi} \
- %{?with_cloudproviders:--enable-cloudproviders} \
- %{?debug:--enable-debug} \
- %{__enable_disable apidocs gtk-doc} \
- --enable-man \
- %{__enable_disable static_libs static} \
- %{?with_broadway:--enable-broadway-backend} \
- %{?with_sysprof:--enable-profiler} \
- %{?with_wayland:--enable-wayland-backend} \
- --enable-x11-backend \
- --enable-xinerama \
- --enable-xkb \
- --with-html-dir=%{_gtkdocdir}
-
-%{__make} \
- democodedir=%{_examplesdir}/%{name}-%{version}/demos/gtk-demo
+%meson build \
+ -Dprint_backends=file,lpr%{?with_cups:,cups}%{?with_papi:,papi} \
+ -Dcloudproviders=%{__true_false cloudproviders} \
+ -Dgtk_doc=%{__true_false apidocs} \
+ -Dman=true \
+ -Dbroadway_backend=%{__true_false broadway} \
+ -Dprofiler=%{__true_false sysprof} \
+ -Dwayland_backend=%{__true_false wayland} \
+ -Dx11_backend=true \
+ -Dxinerama=yes
+
+%ninja_build -C build
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_libdir}/gtk-3.0/%{abivers}/engines
install -d $RPM_BUILD_ROOT%{_libdir}/gtk-3.0/%{abivers}/theming-engines
-%{__make} install \
- democodedir=%{_examplesdir}/%{name}-%{version}/demos/gtk-demo \
- DESTDIR=$RPM_BUILD_ROOT
+%ninja_install -C build
touch $RPM_BUILD_ROOT%{_libdir}/gtk-3.0/%{abivers}/gtk.immodules
install -d $RPM_BUILD_ROOT%{_libdir}/gtk-3.0/modules
@@ -344,10 +320,6 @@ install -d $RPM_BUILD_ROOT%{_libdir}/gtk-3.0/modules
install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
cp -a _examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
-# shut up check-files (static modules and *.la for modules)
-%{__rm} -r $RPM_BUILD_ROOT%{_libdir}/gtk-3.0/%{abivers}/*/*.la \
- %{?with_static_libs:$RPM_BUILD_ROOT%{_libdir}/gtk-3.0/%{abivers}/*/*.a}
-
%if "%{_lib}" != "lib"
# We need to have 32-bit and 64-bit binaries as they have hardcoded LIBDIR.
# (needed when multilib is used)
@@ -358,8 +330,6 @@ mv $RPM_BUILD_ROOT%{_bindir}/gtk-query-immodules-3.0{,%{pqext}}
# unsupported by glibc
%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/io
-%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
-
%find_lang %{name} --all-name
%{!?with_apidocs:%{__rm} -r $RPM_BUILD_ROOT%{_gtkdocdir}/{gdk3,gtk3}}
@@ -392,7 +362,7 @@ exit 0
%files -f %{name}.lang
%defattr(644,root,root,755)
-%doc AUTHORS NEWS README
+%doc NEWS README.md
%{?with_broadway:%attr(755,root,root) %{_bindir}/broadwayd}
%attr(755,root,root) %{_bindir}/gtk-launch
%attr(755,root,root) %{_bindir}/gtk-query-immodules-3.0%{pqext}
@@ -457,7 +427,6 @@ exit 0
%files devel
%defattr(644,root,root,755)
-%doc ChangeLog
%attr(755,root,root) %{_bindir}/gtk-builder-tool
%attr(755,root,root) %{_bindir}/gtk-query-settings
%attr(755,root,root) %{_libdir}/libgailutil-3.so
diff --git a/gtk+3-cloudproviders.patch b/gtk+3-cloudproviders.patch
index e042043..f5c6065 100644
--- a/gtk+3-cloudproviders.patch
+++ b/gtk+3-cloudproviders.patch
@@ -1,21 +1,19 @@
-diff -urN gtk+-3.24.7.orig/configure.ac gtk+-3.24.7/configure.ac
---- gtk+-3.24.7.orig/configure.ac 2019-03-13 23:01:14.537215653 +0100
-+++ gtk+-3.24.7/configure.ac 2019-03-13 23:02:04.326913648 +0100
-@@ -1377,7 +1377,7 @@
- LDFLAGS="$saved_ldflags"
+--- gtk+-3.24.36/meson.build.orig 2022-12-24 22:25:03.301902858 +0100
++++ gtk+-3.24.36/meson.build 2022-12-24 22:26:43.555542218 +0100
+@@ -914,7 +914,7 @@
- GDK_PACKAGES="$PANGO_PACKAGES gdk-pixbuf-2.0 >= gdk_pixbuf_required_version cairo >= cairo_required_version cairo-gobject >= cairo_required_version"
--GDK_PRIVATE_PACKAGES="$GDK_GIO_PACKAGE $X_PACKAGES $WAYLAND_PACKAGES $cairo_backends epoxy >= epoxy_required_version $CLOUDPROVIDER_PACKAGES $PROFILER_PACKAGES fribidi >= fribidi_required_version"
-+GDK_PRIVATE_PACKAGES="$GDK_GIO_PACKAGE $X_PACKAGES $WAYLAND_PACKAGES $cairo_backends epoxy >= epoxy_required_version $PROFILER_PACKAGES fribidi >= fribidi_required_version"
+ pkgconf.set('GDK_PRIVATE_PACKAGES',
+ ' '.join(gio_packages + x11_pkgs + wayland_pkgs + cairo_backends +
+- ['epoxy', epoxy_req] + cloudproviders_packages +
++ ['epoxy', epoxy_req] +
+ ['fribidi', fribidi_req]))
- PKG_CHECK_MODULES(GDK_DEP, $GDK_PACKAGES $GDK_PRIVATE_PACKAGES)
- GDK_DEP_LIBS="$GDK_EXTRA_LIBS $GDK_DEP_LIBS $MATH_LIB"
-@@ -1411,7 +1411,7 @@
- PKG_CHECK_MODULES(ATK, $ATK_PACKAGES)
+ gtk_packages = ' '.join([
+@@ -933,6 +933,7 @@
+ gtk_private_packages += ['pangoft2']
+ endif
+ gtk_private_packages += gio_packages
++gtk_private_packages += cloudproviders_packages
+
+ pkgconf.set('GTK_PRIVATE_PACKAGES', ' '.join(gtk_private_packages))
- GTK_PACKAGES="atk >= atk_required_version cairo >= cairo_required_version cairo-gobject >= cairo_required_version gdk-pixbuf-2.0 >= gdk_pixbuf_required_version gio-2.0 >= glib_required_version"
--GTK_PRIVATE_PACKAGES="$ATK_PACKAGES $WAYLAND_PACKAGES epoxy >= epoxy_required_version fribidi >= fribidi_required_version"
-+GTK_PRIVATE_PACKAGES="$ATK_PACKAGES $WAYLAND_PACKAGES epoxy >= epoxy_required_version fribidi >= fribidi_required_version $CLOUDPROVIDER_PACKAGES"
- if test "x$enable_x11_backend" = xyes -o "x$enable_wayland_backend" = xyes; then
- GTK_PRIVATE_PACKAGES="$GTK_PRIVATE_PACKAGES pangoft2"
- fi
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/gtk+3.git/commitdiff/83e95fed1feeb458e23809da722a3d917a521535
More information about the pld-cvs-commit
mailing list