Skip to content

Commit

Permalink
Merge branch 'pack' into 'master'
Browse files Browse the repository at this point in the history
Refine systemd unit install and test cleanup

See merge request mer-core/sensorfw!57
  • Loading branch information
mlehtima committed Nov 28, 2020
2 parents 405f078 + 840c379 commit 492a653
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion debian/rules
Expand Up @@ -48,7 +48,7 @@ configure-stamp: builddir
dh_testdir

# Add here commands to configure the package.
cd $(BUILD_DIR) && qmake $(QMAKECONFIG) CONFIG+="configs" CONFIG+="autohybris" "QMAKE_CXXFLAGS=$(CFLAGS)" "MAKE_DOCS=$(MAKE_DOCS)" ../$(PROJECT_NAME).pro
cd $(BUILD_DIR) && qmake $(QMAKECONFIG) CONFIG+="configs" CONFIG+="autohybris" CONFIG+="systemdunit" "QMAKE_CXXFLAGS=$(CFLAGS)" "MAKE_DOCS=$(MAKE_DOCS)" ../$(PROJECT_NAME).pro
export LD_RUN_PATH=/usr/lib/sensord-qt5/

touch configure-stamp
Expand Down
11 changes: 5 additions & 6 deletions rpm/sensorfw-qt5.spec
Expand Up @@ -7,7 +7,6 @@ URL: https://git.sailfishos.org/mer-core/sensorfw
Source0: %{name}-%{version}.tar.bz2
Source1: sensorfwd.service
Source2: sensorfw-qt5-hybris.inc
Requires: qt5-qtcore
Requires: sensord-configs
Requires: systemd
Requires(preun): systemd
Expand All @@ -34,9 +33,9 @@ Sensor Framework provides an interface to hardware sensor drivers through logica
%package devel
Summary: Sensor framework daemon libraries development headers
Requires: %{name} = %{version}-%{release}
Requires: qt5-qtcore-devel
Requires: qt5-qtdbus-devel
Requires: qt5-qtnetwork-devel
Requires: pkgconfig(Qt5Core)
Requires: pkgconfig(Qt5DBus)
Requires: pkgconfig(Qt5Network)

%description devel
Development headers for sensor framework daemon and libraries.
Expand All @@ -45,9 +44,9 @@ Development headers for sensor framework daemon and libraries.
%package tests
Summary: Unit test cases for sensord
Requires: %{name} = %{version}-%{release}
Requires: qt5-qttest-devel
Requires: pkgconfig(Qt5Test)
Requires: testrunner-lite
Requires: python
Requires: python(abi) > 3.0
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig

Expand Down
4 changes: 4 additions & 0 deletions sensorfw.pro
Expand Up @@ -96,7 +96,11 @@ contains(CONFIG,hybris) {
SENSORDCONFIGFILES.files += config/20-sensors-default.conf
SENSORDCONFIGFILES.path = /etc/sensorfw/sensord.conf.d
INSTALLS += SENSORDCONFIGFILES
}

contains(CONFIG,systemdunit) {
# Install service files through packaging to take into account
# units file location unless called with CONFIG+=systemdunit
SENSORSYSTEMD.files = rpm/sensorfwd.service
SENSORSYSTEMD.path = /lib/systemd/system
INSTALLS += SENSORSYSTEMD
Expand Down
2 changes: 1 addition & 1 deletion tests/deadclient/sensord-deadclienttest.py
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
##
## Copyright (C) 2009-2010 Nokia Corporation
##
Expand Down

0 comments on commit 492a653

Please sign in to comment.