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:
parent
c9557237cf
commit
bbb6a773fb
4
dist/clementine.spec.in
vendored
4
dist/clementine.spec.in
vendored
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user