build: Use cmake build and install macros in rpm spec

Starting with fedora 33, the cmake macro macro uses the cmake -B flag for
out-of-source builds. Additional cmake_build and cmake_install macros
were created and backported to support this migration.

https://fedoraproject.org/wiki/Changes/CMake_to_do_out-of-source_builds
This commit is contained in:
Jim Broadus 2020-12-15 21:29:43 -08:00 committed by John Maguire
parent c9557237cf
commit bbb6a773fb
1 changed files with 2 additions and 2 deletions

View File

@ -98,11 +98,11 @@ Features include:
%build
cd bin
%{cmake} .. -DUSE_INSTALL_PREFIX=OFF -DBUNDLE_PROJECTM_PRESETS=ON -DCMAKE_POSITION_INDEPENDENT_CODE=ON
make %{?_smp_mflags}
%{cmake_build}
%install
cd bin
make install DESTDIR=$RPM_BUILD_ROOT
%{cmake_install}
rm -f $RPM_BUILD_ROOT/usr/share/icons/ubuntu-mono-{dark,light}/apps/24/clementine-panel*.png