[ext] Debian packaging for libofonobinderpluginext. JB#57495

For unit-testing extensions
This commit is contained in:
Slava Monich
2022-04-03 21:26:34 +03:00
parent 213754721f
commit 040f3ba35f
10 changed files with 61 additions and 2 deletions

View File

@@ -176,6 +176,10 @@ release_ext_so:
clean:
make -C unit clean
make -C $(EXTLIB_DIR) clean
rm -fr debian/*.install debian/.debhelper debian/tmp
rm -fr debian/libofonobinderpluginext debian/libofonobinderpluginext-dev
rm -f documentation.list debian/files debian/*.substvars
rm -f debian/*.debhelper.log debian/*.debhelper debian/*~
rm -f *~ $(SRC_DIR)/*~ rpm/*~
rm -fr $(BUILD_DIR)

5
debian/changelog vendored Normal file
View File

@@ -0,0 +1,5 @@
libofonobinderpluginext (1.0.3) unstable; urgency=low
* Added debian packaging for the extension lib
-- Slava Monich <slava.monich@jolla.com> Sun, 03 Apr 2022 21:07:21 +0300

1
debian/compat vendored Normal file
View File

@@ -0,0 +1 @@
5

18
debian/control vendored Normal file
View File

@@ -0,0 +1,18 @@
Source: libofonobinderpluginext
Section: libs
Priority: optional
Maintainer: Slava Monich <slava.monich@jolla.com>
Build-Depends: debhelper (>= 8.1.3), libglib2.0-dev (>= 2.0)
Standards-Version: 3.8.4
Package: libofonobinderpluginext
Section: libs
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Extension interfaces for ofono-binder-plugin
Package: libofonobinderpluginext-dev
Section: libdevel
Architecture: any
Depends: libofonobinderpluginext (= ${binary:Version}), ${misc:Depends}
Description: Development files for ofono-binder-plugin extensions

10
debian/copyright vendored Normal file
View File

@@ -0,0 +1,10 @@
Copyright (C) 2021-2022 Jolla Ltd.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

View File

@@ -0,0 +1,3 @@
debian/tmp/@LIBDIR@/libofonobinderpluginext.so @LIBDIR@
debian/tmp/@LIBDIR@/pkgconfig/libofonobinderpluginext.pc @LIBDIR@/pkgconfig
debian/tmp/usr/include/* usr/include/

View File

@@ -0,0 +1 @@
debian/tmp/@LIBDIR@/libofonobinderpluginext.so.* @LIBDIR@

16
debian/rules vendored Executable file
View File

@@ -0,0 +1,16 @@
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
LIBDIR=usr/lib/$(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
override_dh_auto_build:
dh_auto_build -- -C lib LIBDIR=$(LIBDIR) release pkgconfig ../debian/libofonobinderpluginext.install ../debian/libofonobinderpluginext-dev.install
override_dh_auto_install:
dh_auto_install -- -C lib LIBDIR=$(LIBDIR) install-dev
%:
dh $@

1
debian/source/format vendored Normal file
View File

@@ -0,0 +1 @@
3.0 (native)

View File

@@ -23,7 +23,7 @@ all: debug release pkgconfig
VERSION_MAJOR = 1
VERSION_MINOR = 0
VERSION_RELEASE = 0
VERSION_RELEASE = 3
# Version for pkg-config
PCVERSION = $(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_RELEASE)
@@ -171,7 +171,7 @@ ABS_LIBDIR := $(shell echo /$(LIBDIR) | sed -r 's|/+|/|g')
$(PKGCONFIG): $(LIB_NAME).pc.in Makefile
sed -e 's|@version@|$(PCVERSION)|g' -e 's|@libdir@|$(ABS_LIBDIR)|g' $< > $@
debian/%.install: debian/%.install.in
../debian/%.install: ../debian/%.install.in
sed 's|@LIBDIR@|$(LIBDIR)|g' $< > $@
#