View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015486CMakeCPackpublic2015-03-31 13:282016-06-10 14:31
ReporterCurtis Mahieu 
Assigned ToDomen Vrankar 
PrioritynormalSeverityfeatureReproducibilityhave not tried
StatusclosedResolutionmoved 
PlatformApple MacOSOS XOS Version10.4.10
Product VersionCMake 3.2.1 
Target VersionFixed in Version 
Summary0015486: CPackRPM - Move Component handling into .spec file
DescriptionI think it would make sense to move the Component logic into the spec file itself and let rpmbuild take care of the naming.

if there was only one spec file generated for the entire build when Compnonents are enabled
 then the spec could look like this:

BuildRoot: @CPACK_RPM_DIRECTORY@/@CPACK_PACKAGE_FILE_NAME@@CPACK_RPM_PACKAGE_COMPONENT_PART_PATH@
Summary: @CPACK_RPM_PACKAGE_SUMMARY@
Name: @CPACK_RPM_PACKAGE_NAME@@CPACK_RPM_PACKAGE_COMPONENT_PART_NAME@
Version: @CPACK_RPM_PACKAGE_VERSION@
Release: @CPACK_RPM_PACKAGE_RELEASE@
License: @CPACK_RPM_PACKAGE_LICENSE@
Group: @CPACK_RPM_PACKAGE_GROUP@
Vendor: @CPACK_RPM_PACKAGE_VENDOR@
........

%description
@CPACK_RPM_PACKAGE_DESCRIPTION@
......
%package <COMPONENT1>
Summary: <COMPONENT1_SUMMARY>
Group: <COMPONENT1_GROUP>


%files
%defattr(-,root,root,-)
@CPACK_RPM_INSTALL_FILES@

%files <COMPONENT1>
%defattr(-, root, root, -)
<COMPONENT1_INSTALL_FILES>

....


Then if the logic to specify file names could be set by a user adding a "%define _rpmfilename". Gathering all the final files could wait for all the RPM's to be generated and then scan the output folder and add them all to the final files list in the c++ code replacing this:
// add the generated package to package file names list
packageFileNames.push_back(packageFileName);


TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0042747)
Kitware Robot (administrator)
2016-06-10 14:29

Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.

 Issue History
Date Modified Username Field Change
2015-03-31 13:28 Curtis Mahieu New Issue
2015-03-31 13:31 Brad King Assigned To => Domen Vrankar
2015-03-31 13:31 Brad King Status new => assigned
2016-06-10 14:29 Kitware Robot Note Added: 0042747
2016-06-10 14:29 Kitware Robot Status assigned => resolved
2016-06-10 14:29 Kitware Robot Resolution open => moved
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team