MantisBT - CMake
View Issue Details
0013176CMakeCPackpublic2012-04-30 05:122015-04-06 09:07
Sergei Golubchik 
Domen Vrankar 
normalmajoralways
closedfixed 
anyLinux
CMake 2.8.8 
CMake 2.8.12CMake 3.2 
0013176: CPackRPM support for per-component summary/description
CPackRPM supports per-component configuration, to a certain extent.
It can build many rpm's from one project, and these rpm's may have different require/obsolete, and prein/etc scripts.

But they all have the same summary and description.
One might expect CPACK_RPM_<component>_PACKAGE_SUMMARY and CPACK_RPM_<component>_PACKAGE_DESCRIPTION to work, but they don't.

Alternatively, CPackRPM could use CPACK_COMPONENT_<component>_DESCRIPTION, which may be less intuitive, but might allow better code reuse (in CMakeLists.txt) and less copy-pasting.
No tags attached.
patch CPackRPM_component_summary_description.patch (1,284) 2014-05-05 21:45
https://public.kitware.com/Bug/file/5142/CPackRPM_component_summary_description.patch
patch 0001-CPackRPM-component-based-packaging-description-and-s.patch (5,040) 2014-10-14 03:51
https://public.kitware.com/Bug/file/5275/0001-CPackRPM-component-based-packaging-description-and-s.patch
patch 0001-add-added-semantic-tests-for-rpm-component-descripti.patch (6,250) 2014-10-21 02:10
https://public.kitware.com/Bug/file/5280/0001-add-added-semantic-tests-for-rpm-component-descripti.patch
Issue History
2012-04-30 05:12Sergei GolubchikNew Issue
2012-04-30 05:21Eric NOULARDAssigned To => Eric NOULARD
2012-04-30 05:21Eric NOULARDStatusnew => assigned
2012-04-30 05:32Eric NOULARDNote Added: 0029365
2012-04-30 05:55Sergei GolubchikNote Added: 0029366
2012-08-14 14:27Eric NOULARDProduct Version => CMake 2.8.8
2012-08-14 14:27Eric NOULARDTarget Version => CMake 2.8.10
2012-10-14 08:45Eric NOULARDTarget VersionCMake 2.8.10 => CMake 2.8.11
2013-05-17 09:33Robert MaynardTarget VersionCMake 2.8.11 => CMake 2.8.12
2014-05-05 21:45clanFile Added: CPackRPM_component_summary_description.patch
2014-05-05 21:46clanNote Added: 0035822
2014-10-14 03:13Eric NOULARDAssigned ToEric NOULARD => Domen Vrankar
2014-10-14 03:51Domen VrankarFile Added: 0001-CPackRPM-component-based-packaging-description-and-s.patch
2014-10-14 03:54Domen VrankarNote Added: 0037026
2014-10-21 02:10Domen VrankarFile Added: 0001-add-added-semantic-tests-for-rpm-component-descripti.patch
2014-10-21 02:13Domen VrankarNote Added: 0037057
2014-11-08 16:02Domen VrankarFile Added: 0001-CPackRPM-handling-of-symbolic-links.patch
2014-11-08 16:03Domen VrankarFile Deleted: 0001-CPackRPM-handling-of-symbolic-links.patch
2014-11-13 12:29Domen VrankarStatusassigned => resolved
2014-11-13 12:29Domen VrankarFixed in Version => CMake 3.2
2014-11-13 12:29Domen VrankarResolutionopen => fixed
2015-04-06 09:07Robert MaynardNote Added: 0038444
2015-04-06 09:07Robert MaynardStatusresolved => closed

Notes
(0029365)
Eric NOULARD   
2012-04-30 05:32   
Hi Sergei,

You are right, the feature is missing.
I agree that we could probably go for using
CPACK_COMPONENT_<compName>_DESCRIPTION in the component case.

May be the best way should be to use
CPACK_RPM_<component>_PACKAGE_SUMMARY and
CPACK_RPM_<component>_PACKAGE_DESCRIPTION

with some default value if they are not defined.

e.g. for CPACK_RPM_<component>_PACKAGE_DESCRIPTION
default value could be:
1) CPACK_COMPONENT_<compName>_DESCRIPTION if defined
2) CPACK_RPM_PACKAGE_DESCRIPTION if defined


I cannot ensure any deadline to fix this.
Would you be willing to try to propose patch?
(0029366)
Sergei Golubchik   
2012-04-30 05:55   
Yes, gladly. But I cannot ensure any deadline either :(

This issue is not a show-stopper for us (having identical summaries/descriptions might be acceptable, and if not, there's a workaround CPACK_RPM_USER_BINARY_SPECFILE).
(0035822)
clan   
2014-05-05 21:46   
I don't know if this is still in the works but I've attached a patch that should allow per-component description/summary via CPACK_RPM_<component>_PACKAGE_SUMMARY and _PACKAGE_DESCRIPTION variables.
(0037026)
Domen Vrankar   
2014-10-14 03:54   
I have expanded the patch with documentation, fallback to CPACK_COMPONENT_<component>_DESCRIPTION and handling of cases when DESCRIPTION and/or SUMMARY is not set for all components.
(0037057)
Domen Vrankar   
2014-10-21 02:13   
I have fixed a bug in my previous patch - CPACK_COMPONENT_<component>_DESCRIPTION component must be in upper case.
I have also added semantic check tests of component description and summary fall backs.

Patches must be applied in order:
0001-CPackRPM-component-based-packaging-description-and-s.patch
0001-add-added-semantic-tests-for-rpm-component-descripti.patch
(0038444)
Robert Maynard   
2015-04-06 09:07   
Closing resolved issues that have not been updated in more than 4 months.