[packages/game-music-emu] - disable UBSAN in non-debug builds; release 2

qboosh qboosh at pld-linux.org
Sat Dec 12 10:47:46 CET 2020


commit fc7318ebfd3b36c5d8346071289459ae46f00383
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Dec 12 10:48:17 2020 +0100

    - disable UBSAN in non-debug builds; release 2

 game-music-emu.spec | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/game-music-emu.spec b/game-music-emu.spec
index a535298..2238e3e 100644
--- a/game-music-emu.spec
+++ b/game-music-emu.spec
@@ -2,7 +2,7 @@ Summary:	Collection of video game music file emulators
 Summary(pl.UTF-8):	Zbiór emulatorów do odtwarzania muzyki z gier
 Name:		game-music-emu
 Version:	0.6.3
-Release:	1
+Release:	2
 License:	LGPL v2.1+
 Group:		Libraries
 #Source0Download: https://bitbucket.org/mpyne/game-music-emu/downloads
@@ -11,7 +11,7 @@ Source0:	https://bitbucket.org/mpyne/game-music-emu/downloads/%{name}-%{version}
 URL:		https://bitbucket.org/mpyne/game-music-emu/wiki/Home
 BuildRequires:	cmake >= 2.6
 BuildRequires:	libstdc++-devel
-BuildRequires:	libubsan-devel
+%{?debug:BuildRequires:	libubsan-devel}
 BuildRequires:	rpmbuild(macros) >= 1.605
 BuildRequires:	tar >= 1:1.22
 BuildRequires:	xz
@@ -70,7 +70,8 @@ wykorzystujących bibliotekę game-music-emu.
 %build
 install -d build
 cd build
-%cmake ..
+%cmake .. \
+	%{!?debug:-DENABLE_UBSAN=OFF}
 
 %{__make}
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/game-music-emu.git/commitdiff/fc7318ebfd3b36c5d8346071289459ae46f00383



More information about the pld-cvs-commit mailing list