[packages/dx] - build at most in C++14 mode; release 25

qboosh qboosh at pld-linux.org
Sun Dec 3 19:49:36 CET 2023


commit 54b2dfa8c059ddc43579a6f9ac46ba1a94c09aac
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Dec 3 19:29:35 2023 +0100

    - build at most in C++14 mode; release 25

 dx.spec | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/dx.spec b/dx.spec
index 3c2ba51..4c5e932 100644
--- a/dx.spec
+++ b/dx.spec
@@ -2,7 +2,7 @@ Summary:	Excellent tool for making visualization of data
 Summary(pl.UTF-8):	Doskonałe narzędzie do wizualizacji danych
 Name:		dx
 Version:	4.4.4
-Release:	24
+Release:	25
 License:	IPL
 Group:		Applications/Science
 Source0:	http://opendx.npaci.edu/source/%{name}-%{version}.tar.gz
@@ -145,6 +145,10 @@ Przykłady dla OpenDX.
 %patch11 -p1
 
 %build
+%if "%{_ver_ge '%{cxx_version}' '11.0'}" == "1"
+# lower C++ standard because C++17 std::byte conflicts with local "byte" define
+export CXXFLAGS="%{rpmcxxflags} -std=c++14"
+%endif
 %{__libtoolize}
 %{__aclocal} -I m4
 %{__autoheader}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/dx.git/commitdiff/54b2dfa8c059ddc43579a6f9ac46ba1a94c09aac



More information about the pld-cvs-commit mailing list