icu71: ability to build for el7
This commit is contained in:
parent
bedae087c8
commit
9351b10c3d
@ -48,14 +48,19 @@ BuildRequires: python38
|
||||
BuildRequires: python3
|
||||
%endif
|
||||
|
||||
BuildRequires: doxygen, autoconf2.69
|
||||
%if 0%{?rhel} <= 7
|
||||
BuildRequires: doxygen
|
||||
%if 0%{?rhel} == 7
|
||||
%global dtsenable source /opt/rh/devtoolset-8/enable
|
||||
BuildRequires: devtoolset-8-gcc devtoolset-8-gcc-c++
|
||||
%else
|
||||
BuildRequires: gcc
|
||||
BuildRequires: gcc-c++
|
||||
%endif
|
||||
%if 0%{?rhel} < 7
|
||||
BuildRequires: autoconf2.69
|
||||
%else
|
||||
BuildRequires: autoconf
|
||||
%endif
|
||||
BuildRequires: make
|
||||
|
||||
Requires: lib%{name}%{?_isa} = %{version}-%{release}
|
||||
@ -141,16 +146,25 @@ popd
|
||||
gcc --version
|
||||
|
||||
pushd source
|
||||
%if 0%{?rhel} < 7
|
||||
autoconf-2.69
|
||||
%else
|
||||
autoconf
|
||||
%endif
|
||||
|
||||
CFLAGS='%optflags -fno-strict-aliasing'
|
||||
CXXFLAGS='%optflags -fno-strict-aliasing'
|
||||
%if 0
|
||||
CPPFLAGS='-DU_IS_BIG_ENDIAN=1'
|
||||
%endif
|
||||
|
||||
%if 0%{?rhel} < 7
|
||||
export PYTHON=/usr/bin/python3.8
|
||||
|
||||
%global __python /usr/bin/python3.8
|
||||
%else
|
||||
export PYTHON=/usr/bin/python3
|
||||
%global __python /usr/bin/python3
|
||||
%endif
|
||||
|
||||
#rhbz856594 do not use --disable-renaming or cope with the mess
|
||||
OPTIONS='--with-data-packaging=library --disable-samples'
|
||||
|
Loading…
x
Reference in New Issue
Block a user