Bug 337 - SUMMARY field is not automatically populated by the DESCRIPTION field
Summary: SUMMARY field is not automatically populated by the DESCRIPTION field
Status: RESOLVED FIXED
Alias: None
Product: Meta-yocto
Classification: Build System, Metadata & Runtime
Component: meta-yocto (show other bugs)
Version: 0.9
Hardware: x86 Multiple
: Medium normal
Target Milestone: 0.9 M4
Assignee: Saul Wold
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2010-09-17 11:08 UTC by Mark Hatle
Modified: 2010-12-21 06:07 UTC (History)
6 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Hatle 2010-09-17 11:08:38 UTC
It does not appear that the SUMMARY information is automatically populated by the DESCRIPTION if not specifically defined.
Comment 1 Saul Wold 2010-09-20 09:59:04 UTC
For package_rpm.bbclass make the following change.

diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass
index b70575c..2502549 100644
--- a/meta/classes/package_rpm.bbclass
+++ b/meta/classes/package_rpm.bbclass
@@ -135,7 +135,7 @@ python write_specfile () {
 
        # Construct the SPEC file...
        srcname    = bb.data.getVar('PN', d, True)
-       srcsummary = (bb.data.getVar('SUMMARY', d, True) or ".")
+       srcsummary = (bb.data.getVar('SUMMARY', d, True) or bb.data.getVar('DESCRIPTION', d, True) or ".")
        srcversion = bb.data.getVar('PV', d, True).replace('-', '+')
        srcrelease = bb.data.getVar('PR', d, True)
        srcepoch   = (bb.data.getVar('PE', d, True) or "")
Comment 3 Saul Wold 2010-09-29 11:20:43 UTC
see previous comment for commit id