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