[packaging] Package binder-list and binder-ping tools. JB#42956

Package those as a separate package which won't be getting installed
by default, but will be easy enough to pull in, if needed. They are
quite useful as development tools.
This commit is contained in:
Slava Monich
2020-07-31 00:51:24 +03:00
parent 544b8181e5
commit 9a1781765b
8 changed files with 61 additions and 3 deletions

6
.gitignore vendored
View File

@@ -1,11 +1,13 @@
*~
debian/files
debian/libgbinder-dev
debian/libgbinder
debian/libgbinder-dev
debian/libgbinder-tools
debian/*.debhelper.log
debian/*.debhelper
debian/*.substvars
debian/*.install
debian/libgbinder.install
debian/libgbinder-dev.install
debian/tmp
documentation.list
installroot

View File

@@ -231,7 +231,7 @@ clean:
rm -fr debian/tmp debian/libgbinder debian/libgbinder-dev
rm -f documentation.list debian/files debian/*.substvars
rm -f debian/*.debhelper.log debian/*.debhelper debian/*~
rm -f debian/*.install
rm -f debian/libgbinder.install debian/libgbinder-dev.install
test:
make -C unit test

6
debian/control vendored
View File

@@ -16,3 +16,9 @@ Section: libdevel
Architecture: any
Depends: libgbinder (= ${binary:Version}), ${misc:Depends}
Description: Development files for libgbinder
Package: libgbinder-tools
Section: utils
Architecture: any
Depends: libgbinder, ${misc:Depends}
Description: Binder command line utilities

1
debian/libgbinder-tools.install vendored Normal file
View File

@@ -0,0 +1 @@
debian/tmp/usr/bin/* usr/bin

4
debian/rules vendored
View File

@@ -8,9 +8,13 @@ LIBDIR=usr/lib/$(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
override_dh_auto_build:
dh_auto_build -- LIBDIR=$(LIBDIR) release pkgconfig debian/libgbinder.install debian/libgbinder-dev.install
dh_auto_build -- -C test/binder-list release
dh_auto_build -- -C test/binder-ping release
override_dh_auto_install:
dh_auto_install -- LIBDIR=$(LIBDIR) install-dev
dh_auto_install -- -C test/binder-list
dh_auto_install -- -C test/binder-ping
%:
dh $@

View File

@@ -30,10 +30,14 @@ This package contains the development library for %{name}.
%build
make LIBDIR=%{_libdir} KEEP_SYMBOLS=1 release pkgconfig
make -C test/binder-list release
make -C test/binder-ping release
%install
rm -rf %{buildroot}
make LIBDIR=%{_libdir} DESTDIR=%{buildroot} install-dev
make -C test/binder-list DESTDIR=%{buildroot} install
make -C test/binder-ping DESTDIR=%{buildroot} install
%check
make -C unit test
@@ -51,3 +55,16 @@ make -C unit test
%{_libdir}/pkgconfig/*.pc
%{_libdir}/%{name}.so
%{_includedir}/gbinder/*.h
# Tools
%package tools
Summary: Binder tools
%description tools
Binder command line utilities
%files tools
%defattr(-,root,root,-)
%{_bindir}/binder-list
%{_bindir}/binder-ping

View File

@@ -138,3 +138,17 @@ libgbinder-debug:
libgbinder-release:
@make $(SUBMAKE_OPTS) -C $(LIB_DIR) $(RELEASE_SO_FILE) $(RELEASE_LINK_FILE)
#
# Install
#
INSTALL = install
INSTALL_BIN_DIR = $(DESTDIR)/usr/bin
install: release $(INSTALL_BIN_DIR)
$(INSTALL) -m 755 $(RELEASE_EXE) $(INSTALL_BIN_DIR)
$(INSTALL_BIN_DIR):
$(INSTALL) -d $@

View File

@@ -138,3 +138,17 @@ libgbinder-debug:
libgbinder-release:
@make $(SUBMAKE_OPTS) -C $(LIB_DIR) $(RELEASE_SO_FILE) $(RELEASE_LINK_FILE)
#
# Install
#
INSTALL = install
INSTALL_BIN_DIR = $(DESTDIR)/usr/bin
install: release $(INSTALL_BIN_DIR)
$(INSTALL) -m 755 $(RELEASE_EXE) $(INSTALL_BIN_DIR)
$(INSTALL_BIN_DIR):
$(INSTALL) -d $@