diff options
author | Björn Esser <besser82@fedoraproject.org> | 2017-07-31 14:10:34 (GMT) |
---|---|---|
committer | Björn Esser <besser82@fedoraproject.org> | 2017-08-16 09:21:37 (GMT) |
commit | 48fa4c0d1ad4c754990416e48a6dc00ac2def085 (patch) | |
tree | 2c9ec4fc047f2cc4159e7a54429704e5d9cd1ad3 /Modules/CPackRPM.cmake | |
parent | 131af5d591ac45a6ab49ccb760dd08e15ef36d81 (diff) | |
download | CMake-48fa4c0d1ad4c754990416e48a6dc00ac2def085.zip CMake-48fa4c0d1ad4c754990416e48a6dc00ac2def085.tar.gz CMake-48fa4c0d1ad4c754990416e48a6dc00ac2def085.tar.bz2 |
CPackRPM: Restore old style debuginfo creation for rpm >= 4.14
Diffstat (limited to 'Modules/CPackRPM.cmake')
-rw-r--r-- | Modules/CPackRPM.cmake | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Modules/CPackRPM.cmake b/Modules/CPackRPM.cmake index fa2a6e4..3913494 100644 --- a/Modules/CPackRPM.cmake +++ b/Modules/CPackRPM.cmake @@ -2422,7 +2422,11 @@ mv *.rpm %_rpmdir" set(RPMBUILD_FLAGS "-bs") file(WRITE ${CPACK_RPM_BINARY_SPECFILE}.in - "# -*- rpm-spec -*- + "# Restore old style debuginfo creation for rpm >= 4.14. +%undefine _debugsource_packages +%undefine _debuginfo_subpackages + +# -*- rpm-spec -*- BuildRoot: %_topdir/\@CPACK_PACKAGE_FILE_NAME\@ Summary: \@CPACK_RPM_PACKAGE_SUMMARY\@ Name: \@CPACK_RPM_PACKAGE_NAME\@ @@ -2527,7 +2531,11 @@ Vendor: \@CPACK_RPM_PACKAGE_VENDOR\@ if(CPACK_RPM_GENERATE_USER_BINARY_SPECFILE_TEMPLATE OR NOT CPACK_RPM_USER_BINARY_SPECFILE) file(WRITE ${CPACK_RPM_BINARY_SPECFILE}.in - "# -*- rpm-spec -*- + "# Restore old style debuginfo creation for rpm >= 4.14. +%undefine _debugsource_packages +%undefine _debuginfo_subpackages + +# -*- rpm-spec -*- BuildRoot: %_topdir/\@CPACK_PACKAGE_FILE_NAME\@\@CPACK_RPM_PACKAGE_COMPONENT_PART_PATH\@ Summary: \@CPACK_RPM_PACKAGE_SUMMARY\@ Name: \@CPACK_RPM_PACKAGE_NAME\@ |