diff options
Diffstat (limited to 'meta/classes/package_rpm.bbclass')
-rw-r--r-- | meta/classes/package_rpm.bbclass | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass index 3df66cc16a..d8e86c5cd6 100644 --- a/meta/classes/package_rpm.bbclass +++ b/meta/classes/package_rpm.bbclass | |||
@@ -484,6 +484,7 @@ python write_specfile () { | |||
484 | else: | 484 | else: |
485 | bb.note("Creating RPM package for %s" % splitname) | 485 | bb.note("Creating RPM package for %s" % splitname) |
486 | spec_files_top.append('%files') | 486 | spec_files_top.append('%files') |
487 | spec_files_top.append('%defattr(-,-,-,-)') | ||
487 | if file_list: | 488 | if file_list: |
488 | spec_files_top.extend(file_list) | 489 | spec_files_top.extend(file_list) |
489 | spec_files_top.append('') | 490 | spec_files_top.append('') |
@@ -570,6 +571,7 @@ python write_specfile () { | |||
570 | else: | 571 | else: |
571 | bb.note("Creating RPM package for %s" % splitname) | 572 | bb.note("Creating RPM package for %s" % splitname) |
572 | spec_files_bottom.append('%%files -n %s' % splitname) | 573 | spec_files_bottom.append('%%files -n %s' % splitname) |
574 | spec_files_bottom.append('%defattr(-,-,-,-)') | ||
573 | if file_list: | 575 | if file_list: |
574 | spec_files_bottom.extend(file_list) | 576 | spec_files_bottom.extend(file_list) |
575 | spec_files_bottom.append('') | 577 | spec_files_bottom.append('') |