diff --git a/.gitignore b/.gitignore index b6376ed..2a4aea8 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /v3.0.7.tar.gz /v3.1-latest.tar.gz /3.1-latest-dec-2018.tar.gz +/libsearpc-python3.tar.gz diff --git a/libsearpc.spec b/libsearpc.spec index e389ef0..b7d4bfc 100644 --- a/libsearpc.spec +++ b/libsearpc.spec @@ -2,21 +2,20 @@ Name: libsearpc Version: 3.1 -Release: 13%{?dist} +Release: 14%{?dist} Summary: A simple and easy-to-use C language RPC framework License: LGPLv3 URL: https://github.com/haiwen/%{name} -Source0: https://github.com/haiwen/%{name}/archive/%{version}/%{version}-latest-dec-2018.tar.gz +Source0: https://github.com/haiwen/libsearpc/archive/python3/libsearpc-python3.tar.gz BuildRequires: autoconf BuildRequires: automake BuildRequires: libtool BuildRequires: glib2-devel BuildRequires: jansson-devel -BuildRequires: pygobject2 -BuildRequires: python2-simplejson -BuildRequires: python2-devel +BuildRequires: python3-simplejson +BuildRequires: python3-devel %description @@ -38,14 +37,14 @@ applications that use %{name}. %prep -%setup -qn %{name}-%{version}-latest +%setup -qn libsearpc-python3 sed -i -e /\(DESTDIR\)/d %{name}.pc.in sed -i 's@/usr/bin/env python@/usr/bin/env python2@' ./lib/searpc-codegen.py %build ./autogen.sh -%configure --disable-static --disable-compile-demo +%configure --disable-static --disable-compile-demo PYTHON=/usr/bin/python3 %{__make} %{?_smp_mflags} CFLAGS="%{optflags}" @@ -70,7 +69,7 @@ find %{buildroot} -name '*.la' -exec rm -f {} ';' %license LICENSE.txt %{_libdir}/%{name}.so.* %{_bindir}/searpc-codegen.py -%{python2_sitearch}/pysearpc/ +%{python3_sitearch}/pysearpc/ %files devel %license LICENSE.txt @@ -80,6 +79,9 @@ find %{buildroot} -name '*.la' -exec rm -f {} ';' %changelog +* Sun Nov 03 2019 Julien Enselme - 3.1-14 +- Make this package compatible with Python3 + * Wed Sep 11 2019 Julien Enselme - 3.1-13 - Update latest tag to latest version. diff --git a/sources b/sources index 5e6c7f8..608fde3 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (3.1-latest-dec-2018.tar.gz) = 4dfb14601819c634078f7bd538da13e70d6c714297c777bd2af07521d8fefd6c71a0f00bf135349f2efb3e809a27500b459af727471915bd47d8b351e069e120 +SHA512 (libsearpc-python3.tar.gz) = beb462262d64cb7dd1df709bc724b85fba3615842da47eb0c9c73708836f15e7393380d0c3548078bf2d2b7300cd46352ef7e839804a967758e64d4d6ca5ceb1