diff options
author | Tomasz Olszak <olszak.tomasz@gmail.com> | 2014-06-25 15:53:29 +0200 |
---|---|---|
committer | Tomasz Olszak <olszak.tomasz@gmail.com> | 2015-11-10 10:56:20 +0100 |
commit | 987f3a49ff6a17c9fcbf5994017ed77753a3cae0 (patch) | |
tree | 0a3f897a9cd9150047872d50075b3b0f4855d5b5 | |
parent | 009b8b48585f5dc97351fca8074ab9f13e4a3cb9 (diff) | |
download | qtsensors-987f3a49ff6a17c9fcbf5994017ed77753a3cae0.tar.gz qtsensors-987f3a49ff6a17c9fcbf5994017ed77753a3cae0.tar.bz2 qtsensors-987f3a49ff6a17c9fcbf5994017ed77753a3cae0.zip |
packaging: Added wearable adaptation
Change-Id: I040de883a97dd26b425cb618693d86389989582d
Bug-Tizen: TIVI-2416
Signed-off-by: Tomasz Olszak <olszak.tomasz@gmail.com>
-rw-r--r-- | packaging/qt5-qtsensors.spec | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/packaging/qt5-qtsensors.spec b/packaging/qt5-qtsensors.spec index 9fa62c5..b57cc6c 100644 --- a/packaging/qt5-qtsensors.spec +++ b/packaging/qt5-qtsensors.spec @@ -23,6 +23,20 @@ # This file is based on qtsensors.spec from Mer project # http://merproject.org +%if "%{tizen}" == "2.1" +%define profile mobile +%endif + +%if "%{tizen}" == "2.3" +%define profile wearable +%endif + +%if "%{profile}" == "mobile" || "%{profile}" == "common" +%define _with_tizen_sensors 1 +%endif + +%bcond_with tizen_sensors + Name: qt5-qtsensors Summary: Qt Sensors module Version: 5.3.0 @@ -39,7 +53,9 @@ BuildRequires: qt5-qtnetwork-devel BuildRequires: qt5-qtdeclarative-qtquick-devel BuildRequires: qt5-qmake BuildRequires: fdupes +%if %{with tizen_sensors} BuildRequires: pkgconfig(capi-system-sensor) +%endif %description Qt is a cross-platform application and UI framework. Using Qt, you can @@ -79,6 +95,7 @@ Requires: %{name} = %{version}-%{release} %description plugin-generic This package contains the generic plugin for sensors +%if %{with tizen_sensors} %package plugin-tizen Summary: Tizen sensors plugin Group: Base/Libraries @@ -86,6 +103,7 @@ Requires: %{name} = %{version}-%{release} %description plugin-tizen This package contains the tizen plugin for sensors +%endif %package plugin-gestures-shake Summary: Shake gesture plugin @@ -165,10 +183,12 @@ rm -f %{buildroot}/%{_libdir}/*.la %manifest %{name}.manifest %{_libdir}/qt5/plugins/sensors/libqtsensors_generic.so +%if %{with tizen_sensors} %files plugin-tizen %defattr(-,root,root,-) %manifest %{name}.manifest %{_libdir}/qt5/plugins/sensors/libqtsensors_tizen.so +%endif %files plugin-gestures-shake |