Fix FTBFS

This commit is contained in:
Leigh Scott 2020-04-14 10:21:01 +01:00
parent 8497b51c9a
commit 50fc3d9fba
2 changed files with 44 additions and 3 deletions

37
fix_gtkdoc.patch Normal file
View File

@ -0,0 +1,37 @@
From 26a9a16d1ed3a1cb41cb01f11e654fe8af2b2c28 Mon Sep 17 00:00:00 2001
From: max ulidtko <ulidtko@gmail.com>
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 @@
<xi:include href="xml/keybinder.xml"/>
</chapter>
- <chapter id="object-tree">
- <title>Object Hierarchy</title>
- <xi:include href="xml/tree_index.sgml"/>
- </chapter>
+
<index id="api-index-full">
<title>API Index</title>
<xi:include href="xml/api-index-full.xml"><xi:fallback /></xi:include>
</index>
+
<index id="deprecated-api-index" role="deprecated">
<title>Index of deprecated API</title>
<xi:include href="xml/api-index-deprecated.xml"><xi:fallback /></xi:include>

View File

@ -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 <leigh123linux@gmail.com> - 0.3.2-9
- Fix FTBFS
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.2-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild