diff --git a/debian/control b/debian/control index 00ab417..a181356 100644 --- a/debian/control +++ b/debian/control @@ -19,7 +19,6 @@ Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, - ${python:Depends} Conflicts: seafile Description: SeaRPC library for Seafile client SeaRPC is a simple C language RPC framework based on GObject system. @@ -33,7 +32,8 @@ Depends: ${misc:Depends}, python2 (>= 2.7) | python (>= 2.7), python2 (<< 2.8) | python (<< 2.8), - libsearpc1 (= ${binary:Version}) + libsearpc1 (= ${binary:Version}), + python-searpc (>= ${source:Version}), Conflicts: seafile Description: Development files for the libsearpc1 package. This package contains the development files for the libsearpc1 package. @@ -46,3 +46,16 @@ Depends: ${misc:Depends}, Description: Debugging symbols for the libsearpc1 package. This package contains the debugging symbols for the libsearpc1 package. + +Package: python-searpc +Section: python +Multi-Arch: foreign +Architecture: all +Depends: ${python:Depends}, + ${shlibs:Depends}, + ${misc:Depends} +Description: simple and easy-to-use C language RPC framework + Searpc handles the serialization/deserialization part of RPC, the + transport part is left to users. + . + This package contains Python bindings to Searpc. diff --git a/debian/libsearpc-dev.install b/debian/libsearpc-dev.install index 9c9181c..f674c32 100644 --- a/debian/libsearpc-dev.install +++ b/debian/libsearpc-dev.install @@ -3,4 +3,3 @@ usr/lib/pkgconfig usr/lib/libsearpc.a usr/lib/libsearpc.la usr/lib/libsearpc.so -usr/bin/searpc-codegen.py diff --git a/debian/libsearpc1.install b/debian/libsearpc1.install index 6810c76..093956b 100644 --- a/debian/libsearpc1.install +++ b/debian/libsearpc1.install @@ -1,2 +1 @@ usr/lib/*.so.* -usr/lib/python2.7/dist-packages/pysearpc/*.py diff --git a/debian/python-searpc.install b/debian/python-searpc.install new file mode 100644 index 0000000..8e7973f --- /dev/null +++ b/debian/python-searpc.install @@ -0,0 +1,2 @@ +usr/bin/searpc-codegen.py +usr/lib/python*/dist-packages/pysearpc/*.py diff --git a/debian/python-searpc.lintian-overrides b/debian/python-searpc.lintian-overrides new file mode 100644 index 0000000..87cdebb --- /dev/null +++ b/debian/python-searpc.lintian-overrides @@ -0,0 +1,2 @@ +library-package-name-for-application usr/bin/searpc-codegen.py +application-in-library-section python usr/bin/searpc-codegen.py