RPM: cd into build dir in openSUSE.

This step is needed because of the differences in the %cmake macro
between Fedora/Centos and openSUSE.

Change-Id: I7ac94e560b4c298934f78e96036a814f3eadc4a5
Reviewed-on: https://code.wireshark.org/review/26924
Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
Dario Lombardo 2018-04-12 17:55:22 +02:00 committed by Anders Broman
parent 5f145d4bf7
commit 63ee1a962e
1 changed files with 6 additions and 0 deletions

View File

@ -283,6 +283,9 @@ make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
%if 0%{?suse_version}
cd build
%endif
%if %{with ninja}
NINJA=$(which ninja || which ninja-build)
DESTDIR=$RPM_BUILD_ROOT $NINJA install
@ -295,6 +298,9 @@ make DESTDIR=$RPM_BUILD_ROOT install
make DESTDIR=$RPM_BUILD_ROOT install_guides
%endif
%endif
%if 0%{?suse_version}
cd -
%endif
# If we're being installed in an unusual prefix tell the loader where
# to find our libraries.