packaging: Remove redundant separator and remove duplicate defintion 63/251863/1
authorChanwoo Choi <cw00.choi@samsung.com>
Wed, 20 Jan 2021 04:49:51 +0000 (13:49 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Wed, 20 Jan 2021 04:56:28 +0000 (13:56 +0900)
The spec file has passed the redundant separator ('/') with %{_libdir}.
It is not needed. So that remove it. Also, remove the duplicate
definition in CMakeLists.txt.

Change-Id: I96730c061e1c859cd9a7892016c1ca1a18b3913a
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
CMakeLists.txt
packaging/hal-api-power.spec

index 552717b..65c9872 100644 (file)
@@ -1,10 +1,6 @@
 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
 PROJECT(hal-api-power C)
 
-SET(PREFIX ${CMAKE_INSTALL_PREFIX})
-SET(EXEC_PREFIX "${CMAKE_INSTALL_PREFIX}/bin")
-SET(INCLUDEDIR "${CMAKE_INSTALL_PREFIX}/include")
-SET(LIBDIR ${CMAKE_LIBDIR_PREFIX})
 SET(VERSION_MAJOR 0)
 SET(VERSION "${VERSION_MAJOR}.1.0")
 
index 751e7fd..f280309 100644 (file)
@@ -34,7 +34,7 @@ Requires:     %{name} = %{version}-%{release}
 %prep
 %setup -q
 
-cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DCMAKE_LIBDIR_PREFIX=%{_libdir}/
+cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DCMAKE_LIBDIR_PREFIX=%{_libdir}
 
 %build
 cp %{SOURCE1} .