[packages/liblastfm] - use __ON_OFF macro

qboosh qboosh at pld-linux.org
Sun Mar 15 10:06:14 CET 2026


commit 33d42d56132c1a82a46e90a7bfaa1aebffd0a1f8
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Mar 15 10:03:43 2026 +0100

    - use __ON_OFF macro

 liblastfm.spec | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/liblastfm.spec b/liblastfm.spec
index fe80562..e99274a 100644
--- a/liblastfm.spec
+++ b/liblastfm.spec
@@ -20,7 +20,7 @@ Patch0:		%{name}-cxx17.patch
 URL:		https://github.com/lastfm/liblastfm
 BuildRequires:	cmake >= 2.8.6
 BuildRequires:	libstdc++-devel
-BuildRequires:	sed >= 4.0
+BuildRequires:	rpmbuild(macros) >= 2.047
 %if %{with fingerprint}
 BuildRequires:	fftw3-single-devel
 BuildRequires:	libsamplerate-devel
@@ -129,7 +129,7 @@ install -d build-qt4
 cd build-qt4
 %cmake \
 	-DBUILD_WITH_QT4:BOOL=ON \
-	-DBUILD_FINGERPRINT:BOOL=%{?with_fingerprint:ON}%{!?with_fingerprint:OFF} \
+	-DBUILD_FINGERPRINT:BOOL=%{__ON_OFF fingerprint} \
 	..
 %{__make}
 cd ..
@@ -140,7 +140,7 @@ install -d build-qt5
 cd build-qt5
 %cmake \
 	-DBUILD_WITH_QT4:BOOL=OFF \
-	-DBUILD_FINGERPRINT:BOOL=%{?with_fingerprint:ON}%{!?with_fingerprint:OFF} \
+	-DBUILD_FINGERPRINT:BOOL=%{__ON_OFF fingerprint} \
 	..
 %{__make}
 cd ..
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/liblastfm.git/commitdiff/9f002b2e4f237e72bbbfc3634fc519417b12c7cf



More information about the pld-cvs-commit mailing list