diff --git a/README.md b/README.md index 8dbf066..6b86842 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libsearpc +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. + diff --git a/libsearpc.spec b/libsearpc.spec new file mode 100644 index 0000000..b3898af --- /dev/null +++ b/libsearpc.spec @@ -0,0 +1,90 @@ +Name: libsearpc +Version: 3.0.4 +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}/libsearpc-%{version}.tar.bz2 +License: LGPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libffi-devel +BuildRequires: libglib-devel +BuildRequires: libjansson-devel +BuildRequires: libpython-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. + +%package devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: pkg-config + +%description devel +This package contains libraries and header files for developing applications that use %{name}. + +%package tools +Group: Development/Tools +Summary: Utility applications for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description tools +This package contains utility applications for %{name}. + +%debug_package + +%prep +%setup -q + +%build +./autogen.sh +%configure +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_libdir}/libsearpc.so.* +%dir %{python_sitearch}/pysearpc +%{python_sitearch}/pysearpc/__init__.py* +%{python_sitearch}/pysearpc/client.py* +%{python_sitearch}/pysearpc/common.py* +%{python_sitearch}/pysearpc/server.py* +%doc AUTHORS COPYING + +%files devel +%defattr(-,root,root) +%{_includedir}/searpc-client.h +%{_includedir}/searpc-server.h +%{_includedir}/searpc-utils.h +%{_includedir}/searpc.h +%{_libdir}/libsearpc.a +%{_libdir}/libsearpc.la +%{_libdir}/libsearpc.so +%{_libdir}/pkgconfig/libsearpc.pc +%doc README.markdown + +%files tools +%defattr(-,root,root) +%{_bindir}/searpc-codegen.py + +%changelog +* Tue Aug 05 2014 Silvan Calarco 3.0.4-1mamba +- package created using the webbuild interface