Improve compatibility with new CMake macro

Signed-off-by: Igor Raits <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Raits 2020-07-21 09:17:57 +02:00
parent cac9facb1f
commit 3e33a24873
No known key found for this signature in database
GPG Key ID: 115D5AB89C5C1E1E
1 changed files with 4 additions and 7 deletions

View File

@ -1,3 +1,4 @@
%undefine __cmake_in_source_build
Summary: A viewer for comic book archives
Name: qcomicbook
@ -51,16 +52,12 @@ menu option of QComicBook.
%build
mkdir -p %{_target_platform}
pushd %{_target_platform}
%{cmake} ..
popd
make %{?_smp_mflags} -C %{_target_platform}
%{cmake}
%cmake_build
%install
make install/fast DESTDIR="$RPM_BUILD_ROOT" -C %{_target_platform}
%cmake_install
# Register as an application to be visible in the software center
#