diff --git a/libsearpc.spec b/libsearpc.spec index 37ec29f..f4f7f32 100644 --- a/libsearpc.spec +++ b/libsearpc.spec @@ -14,8 +14,12 @@ BuildRequires: automake BuildRequires: libtool BuildRequires: glib2-devel BuildRequires: jansson-devel -BuildRequires: python3-simplejson BuildRequires: python3-devel +%if 0%{?rhel} > 7 +BuildRequires: python3-simplejson +%else +BuildRequires: python36-simplejson +%endif %description @@ -37,7 +41,7 @@ applications that use %{name}. %prep -%setup -qn libsearpc-python3 +%setup -qn libsearpc-master sed -i -e /\(DESTDIR\)/d %{name}.pc.in sed -i 's@/usr/bin/env python@/usr/bin/env python3@' ./lib/searpc-codegen.py ./pysearpc/test_pysearpc.py ./tests/generate.py sed -i 's@/usr/bin/python@/usr/bin/python3@' ./pysearpc/pygencode.py @@ -80,7 +84,7 @@ find %{buildroot} -name '*.la' -exec rm -f {} ';' %changelog -* Sat Nov 15 2020 Daniel Berteaud - 3.2.gite889dbc-1 +* Sun Nov 15 2020 Daniel Berteaud - 3.2.gite889dbc-1 - Build current git for EL7 and EL8 * Tue Jul 28 2020 Fedora Release Engineering - 3.1-18