1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-30 11:31:19 +01:00

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

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