Cleanup the build script 30/115430/2
authorMu-Woong Lee <muwoong.lee@samsung.com>
Mon, 20 Feb 2017 03:14:41 +0000 (12:14 +0900)
committerMu-Woong Lee <muwoong.lee@samsung.com>
Mon, 20 Feb 2017 03:34:43 +0000 (12:34 +0900)
Change-Id: I45f84a15db7cb816bf1440f70c7d0b42e849f2e0
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
packaging/context-common.spec

index 69d3bf3..e6cd5be 100644 (file)
@@ -34,11 +34,10 @@ export CXXFLAGS+=" -Wno-empty-body -fomit-frame-pointer -fno-optimize-sibling-ca
 export CXXFLAGS+=" -fno-strict-aliasing -fno-unroll-loops -fsigned-char -fstrict-overflow"
 export CXXFLAGS+=" -Wnon-virtual-dtor -std=c++0x"
 
-cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DMAJORVER=${MAJORVER} -DFULLVER=%{version}
-make %{?jobs:-j%jobs}
+%cmake . -DMAJORVER=${MAJORVER} -DFULLVER=%{version}
+make %{?_smp_mflags}
 
 %install
-rm -rf %{buildroot}
 %make_install
 
 %post
@@ -49,7 +48,7 @@ rm -rf %{buildroot}
 
 %files
 %manifest packaging/%{name}.manifest
-%{_libdir}/*.so.*
+%{_libdir}/*.so*
 %license LICENSE
 
 %package devel
@@ -63,4 +62,3 @@ Tizen Context-Service Internal Shared Library (Development)
 %files devel
 %{_includedir}/context-service/*.h
 %{_libdir}/pkgconfig/*.pc
-%{_libdir}/*.so