Make spec compliant with gbs --incremental 02/206902/1
authorKonrad Lipinski <k.lipinski2@partner.samsung.com>
Tue, 28 May 2019 16:04:01 +0000 (18:04 +0200)
committerKonrad Lipinski <k.lipinski2@partner.samsung.com>
Tue, 28 May 2019 16:05:00 +0000 (18:05 +0200)
According to [1], %prep section of the spec file should contain a single
%setup macro, nothing else. According to [2], manifest %files are best
copied to %{buildroot}%{_datadir} in the %install section.

Moved manifest copy operations from %prep to %install accordingly.

References
[1] https://source.tizen.org/documentation/reference/git-build-system/usage/gbs-build
[2] https://wiki.tizen.org/Security/Application_installation_and_Manifest

Change-Id: I96a6e3fcd8a0f1fdf16121e7d2ef77603200739b

packaging/libcryptsvc.spec

index e27b0b5..55059e1 100644 (file)
@@ -35,7 +35,6 @@ Testing for Crypto Service.
 
 %prep
 %setup -q
-cp %{SOURCE1001} .
 
 %build
 export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE"
@@ -68,6 +67,8 @@ make %{?jobs:-j%jobs}
 
 %install
 %make_install
+mkdir -p %{buildroot}%{_datadir}/
+cp -a %{SOURCE1001} %{buildroot}%{_datadir}/
 
 
 %post -p /sbin/ldconfig
@@ -75,7 +76,7 @@ make %{?jobs:-j%jobs}
 %postun -p /sbin/ldconfig
 
 %files
-%manifest %{name}.manifest
+%manifest %{_datadir}/%{name}.manifest
 %license LICENSE
 %license LICENSE.BSL-1.0
 %{_libdir}/libcryptsvc.so.*