From 50fc3d9fbae91aa6da61c6005405d868ecd750df Mon Sep 17 00:00:00 2001 From: Leigh Scott Date: Tue, 14 Apr 2020 10:21:01 +0100 Subject: [PATCH] Fix FTBFS --- fix_gtkdoc.patch | 37 +++++++++++++++++++++++++++++++++++++ keybinder3.spec | 10 +++++++--- 2 files changed, 44 insertions(+), 3 deletions(-) create mode 100644 fix_gtkdoc.patch diff --git a/fix_gtkdoc.patch b/fix_gtkdoc.patch new file mode 100644 index 0000000..5f8c9a1 --- /dev/null +++ b/fix_gtkdoc.patch @@ -0,0 +1,37 @@ +From 26a9a16d1ed3a1cb41cb01f11e654fe8af2b2c28 Mon Sep 17 00:00:00 2001 +From: max ulidtko +Date: Thu, 19 Sep 2019 11:31:50 +0300 +Subject: [PATCH] Fix gtk-doc 1.31+ build failure + +Since this library doesn't define any gobjects, the generated +xml/object_index.sgml is always empty, and xml/tree_index.sgml is altogether +absent with gtk-doc 1.31+. + +Fix a possible doc build error by not including the tree_index.sgml. + +See GitHub issue kupferlauncher/keybinder#16. +--- + docs/keybinder-docs.sgml | 6 ++---- + 1 file changed, 2 insertions(+), 4 deletions(-) + +diff --git a/docs/keybinder-docs.sgml b/docs/keybinder-docs.sgml +index 8e2ba0c..1b2b266 100644 +--- a/docs/keybinder-docs.sgml ++++ b/docs/keybinder-docs.sgml +@@ -21,14 +21,12 @@ + + + +- +- Object Hierarchy +- +- ++ + + API Index + + ++ + + Index of deprecated API + diff --git a/keybinder3.spec b/keybinder3.spec index 44db260..c95da5b 100644 --- a/keybinder3.spec +++ b/keybinder3.spec @@ -1,10 +1,11 @@ Name: keybinder3 Version: 0.3.2 -Release: 8%{?dist} +Release: 9%{?dist} Summary: A library for registering global keyboard shortcuts License: MIT URL: https://github.com/kupferlauncher/keybinder -Source0: https://github.com/kupferlauncher/keybinder/releases/download/keybinder-3.0-v%{version}/keybinder-3.0-%{version}.tar.gz +Source0: %{url}/releases/download/keybinder-3.0-v%{version}/keybinder-3.0-%{version}.tar.gz +Patch0: %{url}/pull/18.patch#/fix_gtkdoc.patch BuildRequires: pkgconfig(gtk+-3.0), gnome-common, gtk-doc, gobject-introspection-devel @@ -31,7 +32,7 @@ Requires: devhelp This package contains documentation for %{name}. %prep -%setup -qn keybinder-3.0-%{version} +%autosetup -p1 -n keybinder-3.0-%{version} %build %configure --enable-gtk-doc @@ -62,6 +63,9 @@ rm -rf %{buildroot}/%{_libdir}/libkeybinder-3.0.la %{_datadir}/gtk-doc/html/keybinder-3.0/* %changelog +* Tue Apr 14 2020 Leigh Scott - 0.3.2-9 +- Fix FTBFS + * Wed Jan 29 2020 Fedora Release Engineering - 0.3.2-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild