From 8d0823f81e1c2a474227a97f957e9a34c707f624 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Aug 12 2017 18:07:10 +0000 Subject: Fix build When the docs are unpacked as a separate directory, debugsources generation fails. Simply moving it one level down fixes the issue. --- diff --git a/abiword.spec b/abiword.spec index d7d4d33..6bb11aa 100644 --- a/abiword.spec +++ b/abiword.spec @@ -102,7 +102,7 @@ Python bindings for developing with libabiword %prep # setup abiword -%setup -q +%setup -q -a 1 # patch abiword %patch1 -p1 -b .desktop @@ -111,7 +111,7 @@ Python bindings for developing with libabiword %patch4 -p1 -b .black # setup abiword documentation -%setup -q -T -b 1 -n abiword-docs-3.0.1 +cd abiword-docs-3.0.1 %patch0 -p1 -b .windowshelppaths %build @@ -125,7 +125,7 @@ autoreconf -vif make %{?_smp_mflags} V=1 # build the documentation -cd $RPM_BUILD_DIR/abiword-docs-3.0.1 +cd abiword-docs-3.0.1 ABI_DOC_PROG=$(pwd)/../%{name}-%{version}/src/abiword ./make-html.sh %install @@ -178,7 +178,7 @@ SentUpstream: 2014-09-17 EOF # install the documentation -cd $RPM_BUILD_DIR/abiword-docs-3.0.1 +cd abiword-docs-3.0.1 mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{name}-%{majorversion}.%{minorversion}/AbiWord/help cp -rp help/* $RPM_BUILD_ROOT/%{_datadir}/%{name}-%{majorversion}.%{minorversion}/AbiWord/help/ # some of the help dirs have bad perms (#109261)