[packages/libsearpc] Up to 3.3-latest

arekm arekm at pld-linux.org
Thu Nov 26 08:36:37 CET 2026


commit 2cf2b56196958943285fe6415939ca3ea95b69a2
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu Nov 26 08:35:35 2026 +0100

    Up to 3.3-latest

 libsearpc-python3-shebang.patch |  8 ++++++++
 libsearpc.spec                  | 32 ++++++++++++++++----------------
 2 files changed, 24 insertions(+), 16 deletions(-)
---
diff --git a/libsearpc.spec b/libsearpc.spec
index 4eb126b..f25882c 100644
--- a/libsearpc.spec
+++ b/libsearpc.spec
@@ -2,23 +2,24 @@
 # Conditional build:
 %bcond_without	tests		# build without tests
 
+%define		tag	3.3-latest
 Summary:	A simple and easy-to-use C language RPC framework
 Name:		libsearpc
-Version:	3.1.0
-Release:	1
-License:	LGPL v3
+Version:	3.3
+Release:	2
+License:	Apache v2.0
 Group:		Libraries
-Source0:	https://github.com/haiwen/libsearpc/archive/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5:	5b4191620d7a49a46fd4e07736dd4c88
+Source0:	https://github.com/haiwen/libsearpc/archive/v%{tag}/%{name}-%{tag}.tar.gz
+# Source0-md5:	66f5caf072825723bde063cb9a4681ff
+Patch0:		%{name}-python3-shebang.patch
 URL:		https://github.com/haiwen/libsearpc
 BuildRequires:	autoconf
 BuildRequires:	automake
-BuildRequires:	glib2-devel
-BuildRequires:	jansson-devel
+BuildRequires:	glib2-devel >= 1:2.26.0
+BuildRequires:	jansson-devel >= 2.2.1
 BuildRequires:	libtool
 BuildRequires:	pkgconfig
-BuildRequires:	python-pygobject
-BuildRequires:	python-simplejson
+BuildRequires:	python3-devel
 BuildRequires:	rpm-pythonprov
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -30,7 +31,7 @@ transport part is left to users.
 %package devel
 Summary:	Development files for %{name}
 Requires:	%{name} = %{version}-%{release}
-Requires:	glib2-devel
+Requires:	glib2-devel >= 1:2.26.0
 Requires:	jansson-devel >= 2.2.1
 
 %description devel
@@ -38,10 +39,8 @@ The %{name}-devel package contains libraries and header files for
 developing applications that use %{name}.
 
 %prep
-%setup -qn %{name}-%{version}
-
-# meh is this?
-sed -i -e 's/(DESTDIR)//' %{name}.pc.in
+%setup -qn %{name}-%{tag}
+%patch -P0 -p1
 
 %build
 %{__aclocal} -I m4
@@ -51,7 +50,8 @@ sed -i -e 's/(DESTDIR)//' %{name}.pc.in
 %{__automake}
 %configure \
 	--disable-compile-demo \
-	--disable-static
+	--disable-static \
+	--with-python3
 
 %{__make}
 %if %{with tests}
@@ -79,7 +79,7 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_libdir}/libsearpc.so.*.*.*
 %ghost %{_libdir}/libsearpc.so.1
 %attr(755,root,root) %{_bindir}/searpc-codegen
-%{py_sitedir}/pysearpc
+%{py3_sitedir}/pysearpc
 
 %files devel
 %defattr(644,root,root,755)
diff --git a/libsearpc-python3-shebang.patch b/libsearpc-python3-shebang.patch
new file mode 100644
index 0000000..c940ca6
--- /dev/null
+++ b/libsearpc-python3-shebang.patch
@@ -0,0 +1,8 @@
+--- libsearpc-3.3-latest/lib/searpc-codegen.py.orig	2025-03-03 10:04:23.000000000 +0100
++++ libsearpc-3.3-latest/lib/searpc-codegen.py	2025-03-03 10:04:23.000000000 +0100
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/python3
+
+ """
+ Generate function define macros.
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libsearpc.git/commitdiff/2cf2b56196958943285fe6415939ca3ea95b69a2



More information about the pld-cvs-commit mailing list