Improve compatibility with new CMake macro

Signed-off-by: Igor Raits <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Raits 2020-07-05 21:08:30 +02:00
parent f0e2d1e174
commit e829ef7849
No known key found for this signature in database
GPG Key ID: 115D5AB89C5C1E1E

View File

@ -1,3 +1,5 @@
%undefine __cmake_in_source_build
Name: wpebackend-fdo Name: wpebackend-fdo
Version: 1.6.1 Version: 1.6.1
Release: 1%{?dist} Release: 1%{?dist}
@ -30,16 +32,11 @@ files for developing applications that use %{name}.
%autosetup -p1 -n %{name}-%{version} %autosetup -p1 -n %{name}-%{version}
%build %build
mkdir -p %{_target_platform} %cmake
pushd %{_target_platform} %cmake_build
%cmake \
..
popd
%make_build -C %{_target_platform}
%install %install
%make_install -C %{_target_platform} %cmake_install
%files %files
%license COPYING %license COPYING