Cleanup the build script 42/115442/1
authorMu-Woong Lee <muwoong.lee@samsung.com>
Mon, 20 Feb 2017 03:49:40 +0000 (12:49 +0900)
committerMu-Woong Lee <muwoong.lee@samsung.com>
Mon, 20 Feb 2017 03:49:40 +0000 (12:49 +0900)
Change-Id: I60fbf688dea6a0f73467b939f4da36a27a72d801
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
packaging/context-store.spec

index 5cb13b7..235067e 100644 (file)
@@ -29,6 +29,7 @@ Requires:   %{name} = %{version}-%{release}
 Requires:   context-service
 Provides:   %{name}-profile_mobile = %{version}-%{release}
 Provides:   %{name}-profile_wearable = %{version}-%{release}
+%global __provides_exclude ^.*-genuine\\.so.*$
 
 %description genuine
 Binary replacement for context-store.
@@ -56,11 +57,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