[gbinder] Respect arch specific lib dir. JB#49681
This commit is contained in:
10
.gitignore
vendored
10
.gitignore
vendored
@@ -1,13 +1,11 @@
|
|||||||
*~
|
*~
|
||||||
debian/files
|
debian/files
|
||||||
debian/libgbinder-dev.debhelper.log
|
|
||||||
debian/libgbinder-dev.substvars
|
|
||||||
debian/libgbinder-dev
|
debian/libgbinder-dev
|
||||||
debian/libgbinder.debhelper.log
|
|
||||||
debian/libgbinder.postinst.debhelper
|
|
||||||
debian/libgbinder.postrm.debhelper
|
|
||||||
debian/libgbinder.substvars
|
|
||||||
debian/libgbinder
|
debian/libgbinder
|
||||||
|
debian/*.debhelper.log
|
||||||
|
debian/*.debhelper
|
||||||
|
debian/*.substvars
|
||||||
|
debian/*.install
|
||||||
debian/tmp
|
debian/tmp
|
||||||
documentation.list
|
documentation.list
|
||||||
installroot
|
installroot
|
||||||
|
|||||||
23
Makefile
23
Makefile
@@ -132,10 +132,7 @@ DEBUG_FLAGS = -g
|
|||||||
RELEASE_FLAGS =
|
RELEASE_FLAGS =
|
||||||
COVERAGE_FLAGS = -g
|
COVERAGE_FLAGS = -g
|
||||||
|
|
||||||
ifndef KEEP_SYMBOLS
|
KEEP_SYMBOLS ?= 0
|
||||||
KEEP_SYMBOLS = 0
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifneq ($(KEEP_SYMBOLS),0)
|
ifneq ($(KEEP_SYMBOLS),0)
|
||||||
RELEASE_FLAGS += -g
|
RELEASE_FLAGS += -g
|
||||||
endif
|
endif
|
||||||
@@ -233,6 +230,7 @@ clean:
|
|||||||
rm -fr debian/tmp debian/libgbinder debian/libgbinder-dev
|
rm -fr debian/tmp debian/libgbinder debian/libgbinder-dev
|
||||||
rm -f documentation.list debian/files debian/*.substvars
|
rm -f documentation.list debian/files debian/*.substvars
|
||||||
rm -f debian/*.debhelper.log debian/*.debhelper debian/*~
|
rm -f debian/*.debhelper.log debian/*.debhelper debian/*~
|
||||||
|
rm -f debian/*.install
|
||||||
|
|
||||||
test:
|
test:
|
||||||
make -C unit test
|
make -C unit test
|
||||||
@@ -291,8 +289,19 @@ $(COVERAGE_LIB): $(COVERAGE_OBJS)
|
|||||||
$(AR) rc $@ $?
|
$(AR) rc $@ $?
|
||||||
ranlib $@
|
ranlib $@
|
||||||
|
|
||||||
|
#
|
||||||
|
# LIBDIR usually gets substituted with arch specific dir.
|
||||||
|
# It's relative in deb build and can be whatever in rpm build.
|
||||||
|
#
|
||||||
|
|
||||||
|
LIBDIR ?= usr/lib
|
||||||
|
ABS_LIBDIR := $(shell echo /$(LIBDIR) | sed -r 's|/+|/|g')
|
||||||
|
|
||||||
$(PKGCONFIG): $(LIB_NAME).pc.in Makefile
|
$(PKGCONFIG): $(LIB_NAME).pc.in Makefile
|
||||||
sed -e 's/\[version\]/'$(PCVERSION)/g $< > $@
|
sed -e 's|@version@|$(PCVERSION)|g' -e 's|@libdir@|$(ABS_LIBDIR)|g' $< > $@
|
||||||
|
|
||||||
|
debian/%.install: debian/%.install.in
|
||||||
|
sed 's|@LIBDIR@|$(LIBDIR)|g' $< > $@
|
||||||
|
|
||||||
#
|
#
|
||||||
# Install
|
# Install
|
||||||
@@ -304,9 +313,9 @@ INSTALL = install
|
|||||||
INSTALL_DIRS = $(INSTALL) -d
|
INSTALL_DIRS = $(INSTALL) -d
|
||||||
INSTALL_FILES = $(INSTALL) -m $(INSTALL_PERM)
|
INSTALL_FILES = $(INSTALL) -m $(INSTALL_PERM)
|
||||||
|
|
||||||
INSTALL_LIB_DIR = $(DESTDIR)/usr/lib
|
INSTALL_LIB_DIR = $(DESTDIR)$(ABS_LIBDIR)
|
||||||
INSTALL_INCLUDE_DIR = $(DESTDIR)/usr/include/$(NAME)
|
INSTALL_INCLUDE_DIR = $(DESTDIR)/usr/include/$(NAME)
|
||||||
INSTALL_PKGCONFIG_DIR = $(DESTDIR)/usr/lib/pkgconfig
|
INSTALL_PKGCONFIG_DIR = $(DESTDIR)$(ABS_LIBDIR)/pkgconfig
|
||||||
|
|
||||||
install: $(INSTALL_LIB_DIR)
|
install: $(INSTALL_LIB_DIR)
|
||||||
$(INSTALL_FILES) $(RELEASE_SO) $(INSTALL_LIB_DIR)
|
$(INSTALL_FILES) $(RELEASE_SO) $(INSTALL_LIB_DIR)
|
||||||
|
|||||||
2
debian/control
vendored
2
debian/control
vendored
@@ -2,7 +2,7 @@ Source: libgbinder
|
|||||||
Section: libs
|
Section: libs
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Maintainer: Slava Monich <slava.monich@jolla.com>
|
Maintainer: Slava Monich <slava.monich@jolla.com>
|
||||||
Build-Depends: debhelper (>= 7), libglib2.0-dev (>= 2.0), libglibutil (>= 1.0.35)
|
Build-Depends: debhelper (>= 8.1.3), libglib2.0-dev (>= 2.0), libglibutil (>= 1.0.35)
|
||||||
Standards-Version: 3.8.4
|
Standards-Version: 3.8.4
|
||||||
|
|
||||||
Package: libgbinder
|
Package: libgbinder
|
||||||
|
|||||||
3
debian/libgbinder-dev.install
vendored
3
debian/libgbinder-dev.install
vendored
@@ -1,3 +0,0 @@
|
|||||||
debian/tmp/usr/lib/libgbinder.so usr/lib
|
|
||||||
include/*.h usr/include/gbinder
|
|
||||||
build/libgbinder.pc usr/lib/pkgconfig
|
|
||||||
3
debian/libgbinder-dev.install.in
vendored
Normal file
3
debian/libgbinder-dev.install.in
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
debian/tmp/@LIBDIR@/libgbinder.so @LIBDIR@
|
||||||
|
debian/tmp/@LIBDIR@/pkgconfig/libgbinder.pc @LIBDIR@/pkgconfig
|
||||||
|
debian/tmp/usr/include/* usr/include
|
||||||
1
debian/libgbinder.install
vendored
1
debian/libgbinder.install
vendored
@@ -1 +0,0 @@
|
|||||||
debian/tmp/usr/lib/libgbinder.so.* usr/lib
|
|
||||||
1
debian/libgbinder.install.in
vendored
Normal file
1
debian/libgbinder.install.in
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
debian/tmp/@LIBDIR@/libgbinder.so.* @LIBDIR@
|
||||||
7
debian/rules
vendored
7
debian/rules
vendored
@@ -4,8 +4,13 @@
|
|||||||
# Uncomment this to turn on verbose mode.
|
# Uncomment this to turn on verbose mode.
|
||||||
#export DH_VERBOSE=1
|
#export DH_VERBOSE=1
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
override_dh_auto_install:
|
override_dh_auto_install:
|
||||||
dh_auto_install -- install-dev
|
dh_auto_install -- LIBDIR=$(LIBDIR) install-dev
|
||||||
|
|
||||||
%:
|
%:
|
||||||
dh $@
|
dh $@
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
name=gbinder
|
name=gbinder
|
||||||
libdir=/usr/lib
|
libdir=@libdir@
|
||||||
includedir=/usr/include
|
includedir=/usr/include
|
||||||
|
|
||||||
Name: libgbinder
|
Name: libgbinder
|
||||||
Description: Binder client library
|
Description: Binder client library
|
||||||
Version: [version]
|
Version: @version@
|
||||||
Requires: glib-2.0 libglibutil
|
Requires.private: glib-2.0 libglibutil
|
||||||
Libs: -L${libdir} -l${name}
|
Libs: -L${libdir} -l${name}
|
||||||
Cflags: -I${includedir} -I${includedir}/${name}
|
Cflags: -I${includedir} -I${includedir}/${name}
|
||||||
|
|||||||
@@ -29,11 +29,11 @@ This package contains the development library for %{name}.
|
|||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make KEEP_SYMBOLS=1 release pkgconfig
|
make LIBDIR=%{_libdir} KEEP_SYMBOLS=1 release pkgconfig
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
make install-dev DESTDIR=%{buildroot}
|
make LIBDIR=%{_libdir} DESTDIR=%{buildroot} install-dev
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make -C unit test
|
make -C unit test
|
||||||
|
|||||||
Reference in New Issue
Block a user