On 10/08/2014 01:48 PM, Evgeny Kalishenko wrote:
> I was interested in feature request
> http://public.kitware.com/Bug/view.php?id=14769 and made a
> simple patch for CPack RPM generator (attached).
Thanks.
In this hunk:
> + # The following keywords require braces around the "pre" or "post"
> suffix in the final RPM spec file.
> + if("${_RPM_SPEC_HEADER}" MATCHES "REQUIRES_PRE" OR
> "${_RPM_SPEC_HEADER}" MATCHES "REQUIRES_POST")
> + string(REPLACE "_" "(" _PACKAGE_HEADER_NAME "${_PACKAGE_HEADER_NAME}")
> + set(_PACKAGE_HEADER_NAME "${_PACKAGE_HEADER_NAME})")
> + endif()
The MATCHES conditions can use simply STREQUAL instead.
I'm not very familiar with the spec format, so please
explain the purpose of the s/_/(/ subsitution in comments
here.
Thanks,
-Brad
--
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