|
@@ -1,4 +1,5 @@
|
|
|
%bcond_with gtk_update_icon_cache
|
|
|
+%bcond_with docs
|
|
|
|
|
|
# biarch support
|
|
|
%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
|
|
@@ -10,7 +11,7 @@
|
|
|
Summary: GTK graphical user interface library
|
|
|
Summary(ja): GTK GUI ライブラリ
|
|
|
Name: gtk4
|
|
|
-Version: 4.0.3
|
|
|
+Version: 4.2.0
|
|
|
Release: 1%{?_dist_release}
|
|
|
Group: system
|
|
|
Vendor: Project Vine
|
|
@@ -69,6 +70,9 @@ Requires: libXrandr >= 1.3.0
|
|
|
# enable when GTK4 becomes standard version.
|
|
|
Provides: gtk-update-icon-cache = %{version}-%{release}
|
|
|
%endif
|
|
|
+%if ! %{with docs}
|
|
|
+Obsoletes: gtk4-docs < %{version}-%{release}
|
|
|
+%endif
|
|
|
|
|
|
%description
|
|
|
GTK is a multi-platform toolkit for creating graphical user
|
|
@@ -96,6 +100,7 @@ The gtk4-devel package contains the header files and developer
|
|
|
docs for the GTK widget toolkit.
|
|
|
|
|
|
|
|
|
+%if %{with docs}
|
|
|
%package docs
|
|
|
Summary: Developer documentation for GTK
|
|
|
Summary(ja): GTK による開発のドキュメント
|
|
@@ -105,6 +110,7 @@ Requires: gtk4 = %{version}-%{release}
|
|
|
%description docs
|
|
|
This package contains developer documentation for version 4 of the GTK
|
|
|
widget toolkit.
|
|
|
+%endif
|
|
|
|
|
|
|
|
|
#######################################################################
|
|
@@ -112,7 +118,7 @@ widget toolkit.
|
|
|
%package -n compat32-%{name}
|
|
|
Summary: GTK graphical user interface library
|
|
|
Summary(ja): GTK GUI ライブラリ
|
|
|
-Group: system
|
|
|
+Group: system,legacy
|
|
|
Requires: compat32-libXrandr >= 1.3.0
|
|
|
|
|
|
%description -n compat32-%{name}
|
|
@@ -124,7 +130,7 @@ suites.
|
|
|
%package -n compat32-%{name}-devel
|
|
|
Summary: Development tools for GTK applications.
|
|
|
Summary(ja): GTK アプリケーション開発ツール
|
|
|
-Group: programming
|
|
|
+Group: programming,legacy
|
|
|
Requires: compat32-%{name} = %{version}-%{release}
|
|
|
Requires: %{name}-devel = %{version}
|
|
|
Requires: compat32-libX11-devel, compat32-libXcursor-devel, compat32-libXinerama-devel
|
|
@@ -156,12 +162,18 @@ export CFLAGS='-fno-strict-aliasing -DG_DISABLE_CAST_CHECKS -DG_DISABLE_ASSERT %
|
|
|
-Dxinerama=enabled \
|
|
|
-Dcolord=enabled \
|
|
|
-Dsassc=disabled \
|
|
|
+%if %{with docs}
|
|
|
-Dgtk_doc=true \
|
|
|
+%else
|
|
|
+ -Dgtk_doc=false \
|
|
|
+%endif
|
|
|
-Dman-pages=true \
|
|
|
-Dinstall-tests=false
|
|
|
%meson_build
|
|
|
+%if %{with docs}
|
|
|
# Workaround for https://github.com/mesonbuild/meson/issues/8117
|
|
|
%meson_build gtk4-doc:custom
|
|
|
+%endif
|
|
|
|
|
|
|
|
|
%install
|
|
@@ -178,6 +190,7 @@ mkdir -p $RPM_BUILD_ROOT%{_libdir}/gtk-4.0/%{bin_version}/theming-engines
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_libdir}/gtk-4.0/%{bin_version}/immodules
|
|
|
|
|
|
|
|
|
+%if %{with gtk_update_icon_cache}
|
|
|
%post
|
|
|
if [ $1 = 1 ]; then
|
|
|
update-alternatives \
|
|
@@ -198,6 +211,7 @@ if [ ! -L %{_bindir}/gtk-update-icon-cache ]; then
|
|
|
--install %{_bindir}/gtk-update-icon-cache gtk-update-icon-cache \
|
|
|
%{_bindir}/gtk4-update-icon-cache 40
|
|
|
fi
|
|
|
+%endif
|
|
|
|
|
|
|
|
|
%files -f gtk40.lang
|
|
@@ -263,8 +277,10 @@ fi
|
|
|
%{_mandir}/man1/gtk4-query-settings.1*
|
|
|
%{_mandir}/man1/gtk4-widget-factory.1*
|
|
|
|
|
|
+%if %{with docs}
|
|
|
%files docs
|
|
|
%{_datadir}/gtk-doc
|
|
|
+%endif
|
|
|
|
|
|
# compat32
|
|
|
%if %{build_compat32}
|
|
@@ -286,6 +302,9 @@ fi
|
|
|
%endif
|
|
|
|
|
|
%changelog
|
|
|
+* Sat Apr 10 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.2.0-1
|
|
|
+- new upstream release.
|
|
|
+
|
|
|
* Sun Mar 28 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.0.3-1
|
|
|
- new upstream release.
|
|
|
|