Fix eln builds

This commit is contained in:
Antonio Trande 2021-05-23 20:10:14 +02:00
parent bb66a57f60
commit bf296d89ce

View File

@ -7,7 +7,7 @@
%bcond_with debug
# Package documentation files
%if 0%{?el7} || 0%{?fedora}
%if 0%{?el7} || 0%{?fedora} || 0%{?eln}
%bcond_without doc
%else
%bcond_with doc
@ -62,7 +62,7 @@ Scons documentation.
%package -n python3-%{name}
Summary: An Open Source software construction tool
%if 0%{?el7} || 0%{?fedora}
%if 0%{?el7} || 0%{?fedora} || 0%{?eln}
BuildRequires: python3-devel
BuildRequires: python3-lxml
BuildRequires: python3-wheel
@ -145,7 +145,7 @@ for file in %{name}-%{version}/src/*.txt; do
mv $file.new $file
done
%if 0%{?el7} || 0%{?fedora}
%if 0%{?el7} || 0%{?fedora} || 0%{?eln}
pathfix.py -i %{__python3} -pn %{name}-%{version}/scripts/scons.py
%else
pathfix3.8.py -i %{__python3} -pn %{name}-%{version}/scripts/scons.py
@ -157,7 +157,7 @@ pathfix.py -i %{__python3_other} -pn %{name}-%{version}-py%{python3_other_pkgver
%endif
%build
%if 0%{?el7} || 0%{?fedora}
%if 0%{?el7} || 0%{?fedora} || 0%{?eln}
%{__python3} scripts/scons.py --include-dir= -j1 \
%else
%{_bindir}/python3.8 scripts/scons.py --include-dir= -j1 \
@ -179,7 +179,7 @@ popd
%install
export LDFLAGS="%{build_ldflags}"
export CFLAGS="%{build_cflags}"
%if 0%{?el7} || 0%{?fedora}
%if 0%{?el7} || 0%{?fedora} || 0%{?eln}
%{__python3} setup.py install -O1 --skip-build --root %{buildroot} \
--install-scripts=%{_bindir} \
--install-data=%{_datadir}