sensor-hal-tm2: rename package name from n4 to tm2 07/86407/2
authorkibak.yoon <kibak.yoon@samsung.com>
Thu, 1 Sep 2016 05:20:10 +0000 (14:20 +0900)
committerkibak.yoon <kibak.yoon@samsung.com>
Thu, 1 Sep 2016 05:27:15 +0000 (14:27 +0900)
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
Change-Id: I6152a6800147dbfe33d3a2f6cbc63ee8cdbc9b95

CMakeLists.txt
packaging/sensor-hal-n4.manifest [deleted file]
packaging/sensor-hal-n4.spec [deleted file]
packaging/sensor-hal-tm2.manifest [new file with mode: 0644]
packaging/sensor-hal-tm2.spec [new file with mode: 0644]

index aa79d1559558ec4b803fe8908aededf196a20336..c4b5109a54e7967a62f5465331cb5514f3488e3d 100644 (file)
@@ -1,5 +1,5 @@
 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
-PROJECT(sensor-hal-n4 CXX)
+PROJECT(sensor-hal-tm2 CXX)
 INCLUDE(GNUInstallDirs)
 
 SET(ACCEL "ON")
diff --git a/packaging/sensor-hal-n4.manifest b/packaging/sensor-hal-n4.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-n4.spec b/packaging/sensor-hal-n4.spec
deleted file mode 100644 (file)
index ae80a6d..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-Name:       sensor-hal-n4
-Summary:    Note4 Sensor HAL
-Version:    1.0.3
-Release:    0
-Group:      Service/Sensor
-License:    Apache-2.0
-Source0:    %{name}-%{version}.tar.gz
-Source1:    99-sensor.rules
-Source2:    99-sensorhub.rules
-
-%if "%{?profile}" == "mobile"
-ExcludeArch: %{arm} %ix86 x86_64
-%else
-ExcludeArch: %{arm} aarch64 %ix86 x86_64
-%endif
-
-BuildRequires:  cmake
-BuildRequires:  pkgconfig(dlog)
-BuildRequires:  sensor-hal-devel
-
-%description
-Note4 Sensor HAL
-
-%prep
-%setup -q
-
-%build
-export CXXFLAGS+=" -Wextra -Wcast-align -Wcast-qual -Wshadow -Wwrite-strings -Wswitch-default"
-export CXXFLAGS+=" -Wnon-virtual-dtor -Wno-c++0x-compat -Wno-unused-parameter -Wno-empty-body"
-export CXXFLAGS+=" -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-strict-aliasing"
-export CXXFLAGS+=" -fno-unroll-loops -fsigned-char -fstrict-overflow"
-cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
-make %{?jobs:-j%jobs}
-
-%install
-rm -rf %{buildroot}
-%make_install
-
-mkdir -p %{buildroot}/usr/lib/udev/rules.d
-
-install -m 0644 %SOURCE1 %{buildroot}/usr/lib/udev/rules.d
-install -m 0644 %SOURCE2 %{buildroot}/usr/lib/udev/rules.d
-
-%post
-/sbin/ldconfig
-
-%postun
-/sbin/ldconfig
-
-%files
-%manifest packaging/%{name}.manifest
-/usr/lib/udev/rules.d/99-sensor.rules
-/usr/lib/udev/rules.d/99-sensorhub.rules
-/usr/lib/sensor/*.so
-%{_datadir}/license/sensor-hal-n4
diff --git a/packaging/sensor-hal-tm2.manifest b/packaging/sensor-hal-tm2.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/sensor-hal-tm2.spec b/packaging/sensor-hal-tm2.spec
new file mode 100644 (file)
index 0000000..cc2ae08
--- /dev/null
@@ -0,0 +1,55 @@
+Name:       sensor-hal-tm2
+Summary:    Note4 Sensor HAL
+Version:    1.0.3
+Release:    0
+Group:      Service/Sensor
+License:    Apache-2.0
+Source0:    %{name}-%{version}.tar.gz
+Source1:    99-sensor.rules
+Source2:    99-sensorhub.rules
+
+%if "%{?profile}" == "mobile"
+ExcludeArch: %{arm} %ix86 x86_64
+%else
+ExcludeArch: %{arm} aarch64 %ix86 x86_64
+%endif
+
+BuildRequires:  cmake
+BuildRequires:  pkgconfig(dlog)
+BuildRequires:  sensor-hal-devel
+
+%description
+Note4 Sensor HAL
+
+%prep
+%setup -q
+
+%build
+export CXXFLAGS+=" -Wextra -Wcast-align -Wcast-qual -Wshadow -Wwrite-strings -Wswitch-default"
+export CXXFLAGS+=" -Wnon-virtual-dtor -Wno-c++0x-compat -Wno-unused-parameter -Wno-empty-body"
+export CXXFLAGS+=" -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-strict-aliasing"
+export CXXFLAGS+=" -fno-unroll-loops -fsigned-char -fstrict-overflow"
+cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
+make %{?jobs:-j%jobs}
+
+%install
+rm -rf %{buildroot}
+%make_install
+
+mkdir -p %{buildroot}/usr/lib/udev/rules.d
+
+install -m 0644 %SOURCE1 %{buildroot}/usr/lib/udev/rules.d
+install -m 0644 %SOURCE2 %{buildroot}/usr/lib/udev/rules.d
+
+%post
+/sbin/ldconfig
+
+%postun
+/sbin/ldconfig
+
+%files
+%manifest packaging/%{name}.manifest
+/usr/lib/udev/rules.d/99-sensor.rules
+/usr/lib/udev/rules.d/99-sensorhub.rules
+/usr/lib/sensor/*.so
+%{_datadir}/license/sensor-hal-tm2