> Not sure how we can disable such script call from CPackRPM unless adding the > extra feature to call > rpm/rpmbuild wiht appropriate option. May be you can try to fill the > CPACK_RPM_SPEC_MORE_DEFINE variable > with appropriate macro redefining "__os_install_post". > > This would be more like a hack than a solution.
As far as I can tell from links such as https://www.redhat.com/archives/rpm-list/2007-November/msg00020.html and http://www.math-linux.com/linux/rpm/article/how-to-turn-off-avoid-brp-python-bytecompile-script-in-a-spec-file there is no non hack solution for this so even if we'd put it in CPackRPM it would be a hackish workaround. Content from the second link might be the right candidate for CPACK_RPM_SPEC_MORE_DEFINE (haven't tested it). set(CPACK_RPM_SPEC_MORE_DEFINE "%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g')") Regards, Domen -- 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
