SHA256
1
0
forked from pool/jurand
Fridrich Strba 2023-11-15 18:07:49 +00:00 committed by Git OBS Bridge
parent 7ac8e4e66e
commit 1b46cca607
2 changed files with 17 additions and 9 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Nov 15 18:07:06 UTC 2023 - Fridrich Strba <fstrba@suse.com>
- Use the %%gcc_version macro
-------------------------------------------------------------------
Wed Sep 27 07:04:00 UTC 2023 - Fridrich Strba <fstrba@suse.com>

View File

@ -18,6 +18,9 @@
%{!?_rpmmacrodir:%global _rpmmacrodir %{_rpmconfigdir}/macros.d}
%{!?make_build:%global make_build make %{?_smp_mflags}}
%if 0%{?gcc_version} < 11
%define with_gcc 11
%endif
Name: jurand
Version: 1.3.1
Release: 0
@ -31,10 +34,10 @@ BuildRequires: asciidoc
BuildRequires: diffutils
BuildRequires: make
BuildRequires: xmlto
%if 0%{?suse_version} > 1599
BuildRequires: gcc-c++
%if 0%{?with_gcc:1}
BuildRequires: gcc%{with_gcc}-c++
%else
BuildRequires: gcc11-c++
BuildRequires: gcc-c++
%endif
%description
@ -48,9 +51,9 @@ rather than applying simple regular expressions on the source code.
%build
%if 0%{?suse_version} <= 1599
export CXX=g++-11
export CC=gcc-11
%if 0%{?with_gcc:1}
export CXX=g++-%{with_gcc}
export CC=gcc-%{with_gcc}
%endif
%make_build test-compile manpages
@ -63,9 +66,9 @@ export mandir=%{_mandir}/man7
./install.sh
%check
%if 0%{?suse_version} <= 1599
export CXX=g++-11
export CC=gcc-11
%if 0%{?with_gcc:1}
export CXX=g++-%{with_gcc}
export CC=gcc-%{with_gcc}
%endif
%make_build test