[packages/libsearpc] new, version 3.0.7
glen
glen at pld-linux.org
Tue Jun 7 22:04:16 CEST 2016
commit 81bd3fdfc91767d97b53391b954d01bc89f62571
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Tue Jun 7 23:03:51 2016 +0300
new, version 3.0.7
based on fedora package, 9406e9d
libsearpc.spec | 90 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 90 insertions(+)
---
diff --git a/libsearpc.spec b/libsearpc.spec
new file mode 100644
index 0000000..6b69922
--- /dev/null
+++ b/libsearpc.spec
@@ -0,0 +1,90 @@
+#
+# Conditional build:
+%bcond_without tests # build without tests
+
+Summary: A simple and easy-to-use C language RPC framework
+Name: libsearpc
+Version: 3.0.7
+Release: 1
+License: LGPL v3
+Group: Libraries
+Source0: https://github.com/haiwen/libsearpc/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: 1d20e93e0fb39f98c907e633d9f1b11b
+URL: https://github.com/haiwen/libsearpc
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: glib2-devel
+BuildRequires: jansson-devel
+BuildRequires: libtool
+BuildRequires: python-pygobject
+BuildRequires: python-simplejson
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%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.
+
+%package devel
+Summary: Development files for %{name}
+Requires: %{name} = %{version}-%{release}
+Requires: glib2-devel
+Requires: jansson-devel >= 2.2.1
+
+%description devel
+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
+
+%build
+%{__aclocal} -I m4
+%{__libtoolize}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure \
+ --disable-compile-demo \
+ --disable-static
+
+%{__make}
+%if %{with tests}
+%{__make} check
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libsearpc.la
+
+mv $RPM_BUILD_ROOT%{_bindir}/searpc-codegen{.py,}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc README.markdown AUTHORS COPYING
+%attr(755,root,root) %{_libdir}/libsearpc.so.*.*.*
+%ghost %{_libdir}/libsearpc.so.1
+%attr(755,root,root) %{_bindir}/searpc-codegen
+%{py_sitedir}/pysearpc
+
+%files devel
+%defattr(644,root,root,755)
+%doc COPYING
+%{_includedir}/searpc-client.h
+%{_includedir}/searpc-server.h
+%{_includedir}/searpc-utils.h
+%{_includedir}/searpc.h
+%{_libdir}/libsearpc.so
+%{_pkgconfigdir}/libsearpc.pc
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libsearpc.git/commitdiff/81bd3fdfc91767d97b53391b954d01bc89f62571
More information about the pld-cvs-commit
mailing list