From: Hyotaek Shim Date: Mon, 7 Jun 2021 08:55:59 +0000 (+0900) Subject: Initialization for platform/hal/backend/tw3/sensor-tw3 X-Git-Tag: submit/tizen/20210607.085804^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a2d6b86e198c38b10ae6438a1de9c515028833cf;p=platform%2Fhal%2Fbackend%2Ftw3%2Fsensor-tw3.git Initialization for platform/hal/backend/tw3/sensor-tw3 Change-Id: Icb5e30c22b143ef5d7835c735b79ccf8e112f703 Signed-off-by: Hyotaek Shim --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 3ca4ffd..827c2c2 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.6) -PROJECT(sensor-hal-tw3 CXX) +PROJECT(hal-backend-sensor-tw3 CXX) INCLUDE(GNUInstallDirs) SET(LIBRARY_NAME "hal-backend-sensor") diff --git a/packaging/hal-backend-sensor-tw3.manifest b/packaging/hal-backend-sensor-tw3.manifest new file mode 100644 index 0000000..75b0fa5 --- /dev/null +++ b/packaging/hal-backend-sensor-tw3.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/hal-backend-sensor-tw3.spec b/packaging/hal-backend-sensor-tw3.spec new file mode 100644 index 0000000..c5a867c --- /dev/null +++ b/packaging/hal-backend-sensor-tw3.spec @@ -0,0 +1,61 @@ +Name: hal-backend-sensor-tw3 +Summary: Sensor HAL backend drivers for tw3 targets +Version: 1.0.0 +Release: 0 +Group: System/Sensor Framework +License: Apache-2.0 +Source0: %{name}-%{version}.tar.gz +Source1: 99-sensor.rules +Source2: 99-sensorhub.rules + +ExcludeArch: aarch64 %ix86 x86_64 + +BuildRequires: cmake +BuildRequires: pkgconfig(dlog) +BuildRequires: pkgconfig(glib-2.0) +BuildRequires: pkgconfig(gio-2.0) +BuildRequires: pkgconfig(gmock) +BuildRequires: pkgconfig(hal-api-common) +BuildRequires: pkgconfig(hal-api-sensor) + +%description +Sensor HAL backend drivers for tw3 targets + +%package haltests +Summary: Device HAL(Hardware Abstraction Layer) Test Cases +Requires: %{name} = %{version}-%{release} + +%description haltests +Sensor Device HAL(Hardware Abstraction Layer) Test Cases + +%prep +%setup -q + +%build +%cmake . -DCMAKE_HAL_LIBDIR_PREFIX=%{_hal_libdir} -DCMAKE_HAL_LICENSEDIR_PREFIX=%{_hal_licensedir} +make %{?_smp_mflags} + +%install +%make_install + +mkdir -p %{buildroot}%{_hal_libdir}/udev/rules.d + +install -m 0644 %SOURCE1 %{buildroot}%{_hal_libdir}/udev/rules.d +install -m 0644 %SOURCE2 %{buildroot}%{_hal_libdir}/udev/rules.d + +%post +/sbin/ldconfig + +%postun +/sbin/ldconfig + +%files +%manifest packaging/%{name}.manifest +%{_hal_libdir}/udev/rules.d/99-sensor.rules +%{_hal_libdir}/udev/rules.d/99-sensorhub.rules +%{_hal_libdir}/*.so* +%{_hal_licensedir}/%{name}/LICENSE.APLv2 + +%files haltests +%manifest packaging/%{name}.manifest +%{_bindir}/*haltest diff --git a/packaging/sensor-hal-tw3.manifest b/packaging/sensor-hal-tw3.manifest deleted file mode 100644 index 75b0fa5..0000000 --- a/packaging/sensor-hal-tw3.manifest +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/packaging/sensor-hal-tw3.spec b/packaging/sensor-hal-tw3.spec deleted file mode 100755 index f80c4a5..0000000 --- a/packaging/sensor-hal-tw3.spec +++ /dev/null @@ -1,62 +0,0 @@ -Name: sensor-hal-tw3 -Summary: TW3 Sensor HAL -Version: 1.0.0 -Release: 0 -Group: Service Framework / Sensor -License: Apache-2.0 -Source0: %{name}-%{version}.tar.gz -Source1: 99-sensor.rules -Source2: 99-sensorhub.rules - -ExcludeArch: aarch64 %ix86 x86_64 - -BuildRequires: cmake -BuildRequires: pkgconfig(dlog) -BuildRequires: pkgconfig(glib-2.0) -BuildRequires: pkgconfig(gio-2.0) -BuildRequires: pkgconfig(gmock) -BuildRequires: pkgconfig(hal-api-common) -BuildRequires: pkgconfig(hal-api-sensor) - -%description -TW3 Sensor HAL - -%package haltests -Summary: Device HAL(Hardware Abstraction Layer) Test Cases -Requires: %{name} = %{version}-%{release} - - -%description haltests -Sensor Device HAL(Hardware Abstraction Layer) Test Cases - -%prep -%setup -q - -%build -%cmake . -DCMAKE_HAL_LIBDIR_PREFIX=%{_hal_libdir} -DCMAKE_HAL_LICENSEDIR_PREFIX=%{_hal_licensedir} -make %{?_smp_mflags} - -%install -%make_install - -mkdir -p %{buildroot}%{_hal_libdir}/udev/rules.d - -install -m 0644 %SOURCE1 %{buildroot}%{_hal_libdir}/udev/rules.d -install -m 0644 %SOURCE2 %{buildroot}%{_hal_libdir}/udev/rules.d - -%post -/sbin/ldconfig - -%postun -/sbin/ldconfig - -%files -%manifest packaging/%{name}.manifest -%{_hal_libdir}/udev/rules.d/99-sensor.rules -%{_hal_libdir}/udev/rules.d/99-sensorhub.rules -%{_hal_libdir}/*.so* -%{_hal_licensedir}/%{name}/LICENSE.APLv2 - -%files haltests -%manifest packaging/%{name}.manifest -%{_bindir}/*haltest