--- /dev/null
+--- mpp-release_20171218/CMakeLists.txt.orig 2017-12-19 12:46:36.000000000 +0100
++++ mpp-release_20171218/CMakeLists.txt 2019-04-25 19:46:31.935110835 +0200
+@@ -192,10 +192,6 @@
+ elseif(ARMEABI_V7A_HARDFP)
+ add_definitions(-march=armv7-a -mfloat-abi=hard -mfpu=neon)
+ endif()
+- else()
+- if(X86 AND NOT X64)
+- add_definitions(-march=i686)
+- endif()
+ endif()
+
+ if($(CMAKE_BUILD_TYPE) MATCHES "Release")
#Source0Download: https://github.com/rockchip-linux/mpp/releases
Source0: https://github.com/rockchip-linux/mpp/archive/release_%{version}/mpp-%{version}.tar.gz
# Source0-md5: 6c2c941ebc506e6a3bd7d911dd8dc184
+Patch0: %{name}-no-march.patch
URL: http://opensource.rock-chips.com/wiki_Mpp
BuildRequires: cmake >= 2.8.8
BuildRequires: libstdc++-devel
%prep
%setup -q -n mpp-release_%{version}
+%patch0 -p1
%build
# "build" directory is already occupied, so use "builddir"