diff --git a/libsearpc.spec b/libsearpc.spec index 2762150..2354d40 100644 --- a/libsearpc.spec +++ b/libsearpc.spec @@ -1,13 +1,12 @@ Name: libsearpc -Version: 3.1 -Release: 2mamba +Version: 3.2 +Release: 1mamba Summary: A simple C language RPC framework based on GObject system Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://github.com/haiwen/libsearpc -## GITSOURCE https://github.com/haiwen/libsearpc.git v3.0.4 Source: https://github.com/haiwen/libsearpc.git/v%{version}-latest/libsearpc-%{version}.tar.bz2 License: LGPL ## AUTOBUILDREQ-BEGIN @@ -15,9 +14,8 @@ BuildRequires: glibc-devel BuildRequires: libffi-devel BuildRequires: libglib-devel BuildRequires: libjansson-devel -BuildRequires: libpython-devel +BuildRequires: libpython3-devel ## AUTOBUILDREQ-END -BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Searpc is a simple C language RPC framework based on GObject system. Searpc handles the serialization/deserialization part of RPC, the transport part is left to users. @@ -40,14 +38,25 @@ Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description tools This package contains utility applications for %{name}. +%package -n python-searpc +Group: System/Libraries/Python +Summary: Python bindings for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description -n python-searpc +This package contains the python bindings for %{name}. + %debug_package %prep %setup -q +./autogen.sh %build -./autogen.sh -%configure +%configure \ + --with-python3 \ + PYTHON=%{__python3} + %make %install @@ -63,8 +72,6 @@ This package contains utility applications for %{name}. %files %defattr(-,root,root) %{_libdir}/libsearpc.so.* -%dir %{python_sitearch}/pysearpc -%{python_sitearch}/pysearpc/* %doc AUTHORS LICENSE.txt %files devel @@ -81,7 +88,15 @@ This package contains utility applications for %{name}. %defattr(-,root,root) %{_bindir}/searpc-codegen.py +%files -n python-searpc +%defattr(-,root,root) +%dir %{python3_sitearch}/pysearpc +%{python3_sitearch}/pysearpc/* + %changelog +* Thu Dec 31 2020 Silvan Calarco 3.2-1mamba +- update to 3.2 + * Sun Sep 15 2019 Silvan Calarco 3.1-2mamba - rebuild to update libtool static requirements