From 1144adb7f126cbd2f94b534402fc7bcd80aa18f6 Mon Sep 17 00:00:00 2001 From: Nik Reist Date: Fri, 24 May 2024 10:54:16 -0400 Subject: Add clang compile support - Add check for installed compiler, remove BuildRequires - Add platform option for clang when the default symlink resolves to it - Add OpenMandriva specific checks for required files removed during packaging - Comment missing docs, install, and headers during packaging process - Increment version number to latest stable release - Replace symlink for build-examples with the actual file, install dereferences - Add missing translation file for "tr" - Fix lib prefixes for dependencies needed in MDK/OMV for 64 bit Signed-off-by: Nik Reist --- redhat/dependencies/tqt3/tqt3.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'redhat/dependencies/tqt3/tqt3.spec') diff --git a/redhat/dependencies/tqt3/tqt3.spec b/redhat/dependencies/tqt3/tqt3.spec index 1944faf47..2d5182c7d 100644 --- a/redhat/dependencies/tqt3/tqt3.spec +++ b/redhat/dependencies/tqt3/tqt3.spec @@ -51,7 +51,6 @@ Source1: build-examples.sh Source2: trinity-tqt3-rpmlintrc BuildRequires: glibc-devel -BuildRequires: gcc-c++ BuildRequires: make BuildRequires: desktop-file-utils @@ -1313,10 +1312,14 @@ echo yes | ./configure \ -shared \ -fast \ -no-exceptions \ +%if "%{?c_compiler}" == "clang" + -platform linux-clang \ +%else %if "%{_lib}" == "lib64" -platform linux-g++-64 \ %else -platform linux-g++ \ +%endif %endif \ %{?with_nis:-nis} %{?!with_nis:-no-nis} \ -- cgit v1.2.1