SHA256
8
0
forked from pool/doxygen

2 Commits

Author SHA256 Message Date
fad5943941 Accepting request 1296037 from devel:tools
Restore build on openSUSE 15.6 and SLE15 SP6/SP7

On Leap15/SLE15 a newer GCC is needed to build against Qt6. On SLE15 the default clang7 is too old for doxygen with libclang support, use clang17 instead. (forwarded request 1295341 from fsirl)

OBS-URL: https://build.opensuse.org/request/show/1296037
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/doxygen?expand=0&rev=106
2025-07-30 09:41:03 +00:00
a9eac76c1c Restore build on openSUSE 15.6 and SLE15 SP6/SP7
On Leap15/SLE15 a newer GCC is needed to build against Qt6. On SLE15 the default clang7 is too old for doxygen with libclang support, use clang17 instead.

OBS-URL: https://build.opensuse.org/package/show/devel:tools/doxygen?expand=0&rev=222
2025-07-28 06:17:19 +00:00
3 changed files with 25 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jul 23 12:39:02 UTC 2025 - Franz Sirl <franz.sirl-obs@lauterbach.com>
- Restore build on openSUSE 15.6 and SLE15 SP6/SP7
-------------------------------------------------------------------
Thu May 29 14:07:05 UTC 2025 - Christoph G <foss@grueninger.de>

View File

@@ -30,8 +30,16 @@ Patch2: reproducible.patch
BuildRequires: bison
BuildRequires: cmake >= 3.14
BuildRequires: flex
%if 0%{?suse_version} && 0%{?suse_version} < 1600
BuildRequires: gcc14-c++
%else
BuildRequires: gcc-c++
%endif
%if 0%{?is_opensuse} || 0%{?suse_version} >= 1600
BuildRequires: llvm-clang-devel
%else
BuildRequires: clang17-devel
%endif
BuildRequires: python3-base
BuildRequires: python3-xml
# Do not bother building documentation with latex since it is present on the
@@ -58,6 +66,10 @@ language VHDL.
-Dbuild_search=OFF \
-Dbuild_wizard=OFF \
-Duse_libclang=ON \
%if 0%{?suse_version} && 0%{?suse_version} < 1600
-DCMAKE_C_COMPILER=gcc-14 \
-DCMAKE_CXX_COMPILER=g++-14 \
%endif
-DCMAKE_EXE_LINKER_FLAGS="-Wl,--as-needed -Wl,-z,relro,-z,now" \
-DCMAKE_MODULE_LINKER_FLAGS="-Wl,--as-needed -Wl,-z,relro,-z,now" \
-DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed -Wl,-z,relro,-z,now" \

View File

@@ -29,7 +29,11 @@ Source1: doxywizard.desktop
BuildRequires: bison
BuildRequires: cmake >= 3.14
BuildRequires: flex
%if 0%{?suse_version} && 0%{?suse_version} < 1600
BuildRequires: gcc14-c++
%else
BuildRequires: gcc-c++
%endif
BuildRequires: libjpeg-devel
BuildRequires: pkgconfig
BuildRequires: python3-base
@@ -54,6 +58,10 @@ configuration files.
%build
%cmake \
-Dbuild_wizard=ON \
%if 0%{?suse_version} && 0%{?suse_version} < 1600
-DCMAKE_C_COMPILER=gcc-14 \
-DCMAKE_CXX_COMPILER=g++-14 \
%endif
-DCMAKE_EXE_LINKER_FLAGS="-Wl,--as-needed -Wl,-z,relro,-z,now" \
-DCMAKE_MODULE_LINKER_FLAGS="-Wl,--as-needed -Wl,-z,relro,-z,now" \
-DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed -Wl,-z,relro,-z,now" \