[CMake] is it possible to generate a noarch rpm?
Eric Noulard
eric.noulard at gmail.com
Wed May 7 09:09:49 EDT 2008
2008/5/7, Erik Sjölund <erik.sjolund at sbc.su.se>:
> Is it possible to generate a noarch rpm with cmake?
Current CPack RPM generator do only handle binary RPM.
http://www.cmake.org/Wiki/CMake:CPackPackageGenerators#RPM_.28Unix_Only.29
However if you know that the files you are installing are all of type "noarch"
you should be able to force RPM arch to "noarch" by setting
SET(CPACK_RPM_PACKAGE_ARCHITECTURE "noarch")
> Or the analogy in deb packages, i.e.
> "Architecture: all"
Note that if you need to know which other RPM specific var may be set
you may have a look at:
share/cmake-2.6/Modules/CPackRPM.cmake
which is the cmake script called by the CPack RPM generator.
Note that current RPM CPack generator implements a subset
of what is done by UseRPMTools.cmake:
http://www.cmake.org/Wiki/CMakeUserUseRPMTools
This is subset due to a lack of time and some design
issue _at the time the work was done_
--
Erk
More information about the CMake
mailing list