diff --git a/lpcnetfreedv.spec b/lpcnetfreedv.spec index 37e26e5..07b763b 100644 --- a/lpcnetfreedv.spec +++ b/lpcnetfreedv.spec @@ -35,9 +35,9 @@ Summary: Development files and tools for LPCNet %build -mkdir build && pushd build # Add model data archive to the build directory so CMake finds it. -cp %{SOURCE1} . +mkdir -p %{_vpath_builddir} +cp %{SOURCE1} %{_vpath_builddir}/ # We need to force optimizations to specific values since the build system and # host system will likely be different. @@ -52,13 +52,12 @@ cp %{SOURCE1} . %global _cpuopt "" %endif -%cmake -DDISABLE_CPU_OPTIMIZATION=TRUE %{_cpuopt} ../ -%make_build +%cmake -DDISABLE_CPU_OPTIMIZATION=TRUE %{_cpuopt} +%cmake_build %install -pushd build -%make_install +%cmake_install %files