gcc7 not necessarily needed

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/libmfx?expand=0&rev=9
This commit is contained in:
Stefan Dirsch 2019-06-10 10:40:42 +00:00 committed by Git OBS Bridge
parent 09ff880fdb
commit 2a419d02de
2 changed files with 2 additions and 9 deletions

View File

@ -3,7 +3,6 @@ Fri Jun 7 14:26:01 UTC 2019 - Stefan Dirsch <sndirsch@suse.com>
- cmake-sle12.patch
* needed for cmake 3.5.2 on sle12-sp5
- specfile: sle12-sp5 needs gcc7
-------------------------------------------------------------------
Thu Jun 6 12:22:00 UTC 2019 - Stefan Dirsch <sndirsch@suse.com>

View File

@ -26,11 +26,7 @@ Url: https://github.com/Intel-Media-SDK/MediaSDK
Source0: https://github.com/Intel-Media-SDK/MediaSDK/archive/intel-mediasdk-%{version}.tar.gz
Patch0: cmake-sle12.patch
BuildRequires: cmake
%if 0%{?suse_version} < 1500
BuildRequires: gcc7-c++
%else
BuildRequires: gcc-c++
%endif
BuildRequires: pkgconfig
BuildRequires: pkgconfig(libva)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -70,10 +66,8 @@ the Intel® Media SDK.
%build
mkdir -p build
pushd build
cmake -DCMAKE_INSTALL_PREFIX=/usr \
%if 0%{?suse_version} < 1500
-DCMAKE_CXX_COMPILER=/usr/bin/g++-7 \
%endif
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
..
make %{?_smp_mflags}
popd