[OE-core] [PATCH] package_rpm: Add %manifest support for spec generation.
Richard Purdie
richard.purdie at linuxfoundation.org
Fri Aug 29 17:39:54 UTC 2014
From: Ronan Le Martret <ronan at fridu.net>
The manifest file allow custom smack security for a package.
https://wiki.tizen.org/wiki/Security/Application_installation_and_Manifest
Signed-off-by: Ronan Le Martret <ronan at fridu.net>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass
index eecfcb2..0f565ac 100644
--- a/meta/classes/package_rpm.bbclass
+++ b/meta/classes/package_rpm.bbclass
@@ -389,6 +389,8 @@ python write_specfile () {
else:
bb.note("Creating RPM package for %s" % splitname)
spec_files_top.append('%files')
+ if localdata.getVar('MANIFESTFILES', True):
+ spec_files_top.append('%%manifest %s' % localdata.getVar('MANIFESTFILES', True))
spec_files_top.append('%defattr(-,-,-,-)')
if file_list:
bb.note("Creating RPM package for %s" % splitname)
@@ -495,6 +497,8 @@ python write_specfile () {
bb.note("Not creating empty RPM package for %s" % splitname)
else:
spec_files_bottom.append('%%files -n %s' % splitname)
+ if localdata.getVar('MANIFESTFILES', True):
+ spec_files_bottom.append('%%manifest %s' % localdata.getVar('MANIFESTFILES', True))
spec_files_bottom.append('%defattr(-,-,-,-)')
if file_list:
bb.note("Creating RPM package for %s" % splitname)
More information about the Openembedded-core
mailing list