Fix simplejson package for EL7
This commit is contained in:
parent
b6723e66ef
commit
bc88eb4bcf
|
@ -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 <daniel@firewall-services.com> - 3.2.gite889dbc-1
|
||||
* Sun Nov 15 2020 Daniel Berteaud <daniel@firewall-services.com> - 3.2.gite889dbc-1
|
||||
- Build current git for EL7 and EL8
|
||||
|
||||
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.1-18
|
||||
|
|
Loading…
Reference in New Issue