!12 Support specifying compiler

From: @mdLUbG 
Reviewed-by: @leeffo 
Signed-off-by: @leeffo
This commit is contained in:
openeuler-ci-bot 2023-09-26 09:51:41 +00:00 committed by Gitee
commit 1144dcbcee
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,6 +1,6 @@
Name: openbox Name: openbox
Version: 3.6.1 Version: 3.6.1
Release: 13 Release: 14
Summary: Windowmanager based on the original blackbox-code Summary: Windowmanager based on the original blackbox-code
License: GPLv2+ License: GPLv2+
URL: http://openbox.org URL: http://openbox.org
@ -63,7 +63,11 @@ sed -ie 's|^hardcode_libdir_flag_spec=.*$|hardcode_libdir_flag_spec=""|g' libtoo
sed -ie 's|^runpath_var=LD_RUN_PATH$|runpath_var=DIE_RPATH_DIE|g' libtool sed -ie 's|^runpath_var=LD_RUN_PATH$|runpath_var=DIE_RPATH_DIE|g' libtool
%make_build %make_build
gcc $RPM_OPT_FLAGS $RPM_LD_FLAGS -o setlayout %{SOURCE1} -lX11 %if "%toolchain" == "clang"
clang $RPM_OPT_FLAGS $RPM_LD_FLAGS -o setlayout %{SOURCE1} -lX11
%else
gcc $RPM_OPT_FLAGS $RPM_LD_FLAGS -o setlayout %{SOURCE1} -lX11
%endif
%install %install
%make_install %make_install
@ -117,6 +121,9 @@ install -m644 -D data/gnome-session/openbox-gnome-fallback.session \
%{_mandir}/man1/* %{_mandir}/man1/*
%changelog %changelog
* Tue Jun 20 2023 yoo <sunyuechi@iscas.ac.cn> - 3.6.1-14
- fix clang build error
* Tue Jun 08 2021 sunguoshuai <sunguoshuai@huawei.com> - 3.6.1-13 * Tue Jun 08 2021 sunguoshuai <sunguoshuai@huawei.com> - 3.6.1-13
- Del useless deps for openbox-kde - Del useless deps for openbox-kde