Initialization for platform/hal/backend/tw3/sensor-tw3 06/259406/1 accepted/tizen/unified/20210607.124134 submit/tizen/20210607.085804
authorHyotaek Shim <hyotaek.shim@samsung.com>
Mon, 7 Jun 2021 08:55:59 +0000 (17:55 +0900)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Mon, 7 Jun 2021 08:55:59 +0000 (17:55 +0900)
Change-Id: Icb5e30c22b143ef5d7835c735b79ccf8e112f703
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
CMakeLists.txt
packaging/hal-backend-sensor-tw3.manifest [new file with mode: 0644]
packaging/hal-backend-sensor-tw3.spec [new file with mode: 0644]
packaging/sensor-hal-tw3.manifest [deleted file]
packaging/sensor-hal-tw3.spec [deleted file]

index 3ca4ffda2357b37325caf9efadbfdbb4d01bb32f..827c2c2607f52eca060f51ac38cdb7e6ef4d205f 100755 (executable)
@@ -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 (file)
index 0000000..75b0fa5
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+    <request>
+        <domain name="_"/>
+    </request>
+</manifest>
diff --git a/packaging/hal-backend-sensor-tw3.spec b/packaging/hal-backend-sensor-tw3.spec
new file mode 100644 (file)
index 0000000..c5a867c
--- /dev/null
@@ -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 (file)
index 75b0fa5..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-<manifest>
-    <request>
-        <domain name="_"/>
-    </request>
-</manifest>
diff --git a/packaging/sensor-hal-tw3.spec b/packaging/sensor-hal-tw3.spec
deleted file mode 100755 (executable)
index f80c4a5..0000000
+++ /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