Make spec compliant with gbs --incremental 52/183552/1
authorKonrad Lipinski <k.lipinski2@partner.samsung.com>
Fri, 6 Jul 2018 11:04:54 +0000 (13:04 +0200)
committerKonrad Lipinski <k.lipinski2@partner.samsung.com>
Fri, 6 Jul 2018 11:06:12 +0000 (13:06 +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: I9e7385bf6074346f3fd401b7bc9af878c0825fbf

packaging/security-tests.spec

index f96f79b..9208e72 100644 (file)
@@ -42,7 +42,6 @@ Security tests repository - for tests that can't be kept together with code.
 
 %prep
 %setup -q
-cp %{SOURCE1} .
 
 %build
 export LDFLAGS+="-Wl,--rpath=%{_prefix}/lib"
@@ -71,6 +70,7 @@ id -u  security_test_user 1>/dev/null 2>&1 || \
 %install
 %make_install
 ln -sf /etc/smack/test_smack_rules %{buildroot}/etc/smack/test_smack_rules_lnk
+cp -a %{SOURCE1} %{buildroot}%{_datadir}/
 
 %post
 # Reload dbus daemon to apply newly installed configuration
@@ -79,7 +79,7 @@ systemctl reload dbus
 echo "security-tests postinst done ..."
 
 %files
-%manifest %{name}.manifest
+%manifest %{_datadir}/%{name}.manifest
 %defattr(-, root, root, -)
 /usr/bin/security-tests.sh
 /usr/bin/security-tests-all.sh