forked from pool/jurand
This commit is contained in:
parent
7ac8e4e66e
commit
1b46cca607
@ -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>
|
Wed Sep 27 07:04:00 UTC 2023 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
21
jurand.spec
21
jurand.spec
@ -18,6 +18,9 @@
|
|||||||
|
|
||||||
%{!?_rpmmacrodir:%global _rpmmacrodir %{_rpmconfigdir}/macros.d}
|
%{!?_rpmmacrodir:%global _rpmmacrodir %{_rpmconfigdir}/macros.d}
|
||||||
%{!?make_build:%global make_build make %{?_smp_mflags}}
|
%{!?make_build:%global make_build make %{?_smp_mflags}}
|
||||||
|
%if 0%{?gcc_version} < 11
|
||||||
|
%define with_gcc 11
|
||||||
|
%endif
|
||||||
Name: jurand
|
Name: jurand
|
||||||
Version: 1.3.1
|
Version: 1.3.1
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -31,10 +34,10 @@ BuildRequires: asciidoc
|
|||||||
BuildRequires: diffutils
|
BuildRequires: diffutils
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
BuildRequires: xmlto
|
BuildRequires: xmlto
|
||||||
%if 0%{?suse_version} > 1599
|
%if 0%{?with_gcc:1}
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc%{with_gcc}-c++
|
||||||
%else
|
%else
|
||||||
BuildRequires: gcc11-c++
|
BuildRequires: gcc-c++
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -48,9 +51,9 @@ rather than applying simple regular expressions on the source code.
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
%if 0%{?suse_version} <= 1599
|
%if 0%{?with_gcc:1}
|
||||||
export CXX=g++-11
|
export CXX=g++-%{with_gcc}
|
||||||
export CC=gcc-11
|
export CC=gcc-%{with_gcc}
|
||||||
%endif
|
%endif
|
||||||
%make_build test-compile manpages
|
%make_build test-compile manpages
|
||||||
|
|
||||||
@ -63,9 +66,9 @@ export mandir=%{_mandir}/man7
|
|||||||
./install.sh
|
./install.sh
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%if 0%{?suse_version} <= 1599
|
%if 0%{?with_gcc:1}
|
||||||
export CXX=g++-11
|
export CXX=g++-%{with_gcc}
|
||||||
export CC=gcc-11
|
export CC=gcc-%{with_gcc}
|
||||||
%endif
|
%endif
|
||||||
%make_build test
|
%make_build test
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user