The following issue has been SUBMITTED. ====================================================================== http://www.cmake.org/Bug/view.php?id=15486 ====================================================================== Reported By: Curtis Mahieu Assigned To: ====================================================================== Project: CMake Issue ID: 15486 Category: CPack Reproducibility: have not tried Severity: feature Priority: normal Status: new ====================================================================== Date Submitted: 2015-03-31 13:28 EDT Last Modified: 2015-03-31 13:28 EDT ====================================================================== Summary: CPackRPM - Move Component handling into .spec file Description: I 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); ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2015-03-31 13:28 Curtis Mahieu New Issue ====================================================================== -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers
