Initialization for platform/hal/backend/tm1/sensor-tm1 05/259405/1 accepted/tizen/unified/20210607.124233 submit/tizen/20210607.085043
authorHyotaek Shim <hyotaek.shim@samsung.com>
Mon, 7 Jun 2021 08:47:07 +0000 (17:47 +0900)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Mon, 7 Jun 2021 08:47:07 +0000 (17:47 +0900)
Change-Id: Id09d1e7fc1ad0098c139fad96d87db4ee2e087ee
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
CMakeLists.txt
packaging/hal-backend-sensor-tm1.manifest [new file with mode: 0644]
packaging/hal-backend-sensor-tm1.spec [new file with mode: 0755]
packaging/sensor-hal-tm1.manifest [deleted file]
packaging/sensor-hal-tm1.spec [deleted file]

index 0024728eb9f3cc096342bf4d69711a217004df0f..1101ec2cf1215c3c62da3417175ef903dac69e0d 100755 (executable)
@@ -1,5 +1,5 @@
 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
-PROJECT(sensor-hal-tm1 CXX)
+PROJECT(hal-backend-sensor-tm1 CXX)
 INCLUDE(GNUInstallDirs)
 
 SET(LIBRARY_NAME "hal-backend-sensor")
diff --git a/packaging/hal-backend-sensor-tm1.manifest b/packaging/hal-backend-sensor-tm1.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-tm1.spec b/packaging/hal-backend-sensor-tm1.spec
new file mode 100755 (executable)
index 0000000..9a27f96
--- /dev/null
@@ -0,0 +1,58 @@
+Name:       hal-backend-sensor-tm1
+Summary:    Sensor HAL backend for tm1 targets
+Version:    1.0.4
+Release:    0
+Group:      System/Sensor Framework
+License:    Apache-2.0
+Source0:    %{name}-%{version}.tar.gz
+Source1:    99-sensor.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 for tm1 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
+
+%post
+/sbin/ldconfig
+
+%postun
+/sbin/ldconfig
+
+%files
+%manifest packaging/%{name}.manifest
+%{_hal_libdir}/udev/rules.d/99-sensor.rules
+%{_hal_libdir}/*.so*
+%{_hal_licensedir}/%{name}/LICENSE.APLv2
+
+%files haltests
+%manifest packaging/%{name}.manifest
+%{_bindir}/*haltest
diff --git a/packaging/sensor-hal-tm1.manifest b/packaging/sensor-hal-tm1.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-tm1.spec b/packaging/sensor-hal-tm1.spec
deleted file mode 100755 (executable)
index fd748a9..0000000
+++ /dev/null
@@ -1,58 +0,0 @@
-Name:       sensor-hal-tm1
-Summary:    TM1 Sensor HAL
-Version:    1.0.4
-Release:    0
-Group:      Service Framework / Sensor
-License:    Apache-2.0
-Source0:    %{name}-%{version}.tar.gz
-Source1:    99-sensor.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
-TM1 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
-
-%post
-/sbin/ldconfig
-
-%postun
-/sbin/ldconfig
-
-%files
-%manifest packaging/%{name}.manifest
-%{_hal_libdir}/udev/rules.d/99-sensor.rules
-%{_hal_libdir}/*.so*
-%{_hal_licensedir}/%{name}/LICENSE.APLv2
-
-%files haltests
-%manifest packaging/%{name}.manifest
-%{_bindir}/*haltest