Fix build

When the docs are unpacked as a separate directory, debugsources generation
fails. Simply moving it one level down fixes the issue.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2017-08-12 14:07:10 -04:00
parent 04a3df8538
commit 8d0823f81e
1 changed files with 4 additions and 4 deletions

View File

@ -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)