[CMake] cpack source RPM not setting install path
Eric Noulard
eric.noulard at gmail.com
Fri Nov 9 18:05:20 EST 2012
2012/11/9 Ben Levine <blevine at belvederetrading.com>:
> I'm trying to create a source RPM that will install source to a given
> path. Regardless of what parameters I set for CPACK I end up with an
> RPM that installs the source in "/". If I create a binary RPM it
> respects the path set in the CPACK_PACKAGING_INSTALL_PREFIX variable.
> It seems that no
> combination of settings will cause the source RPM to install into any
> path other then /. If I look at the spec file it looks like the Prefix:
> is set, but the entire files section appears to have been set with
> absolute paths.
How do you build a Source RPM with CPack?
CPack RPM is not meant to build source RPM.
In fact CPack does not really knows about "Source" at all.
> How can I tell cpack to use a specific prefix for a source RPM? (It
> would be fine if it built the RPM as non-relocatable as long as the path
> was set).
The baseline is CPack is not meant to build Source RPM, it can build
source "bare archive" like TGZ, ZIP and the like by "packaging" the source
directory but it cannot build source RPM nor DEB.
How do you do to build source RPM with CPack?
--
Erk
Le gouvernement représentatif n'est pas la démocratie --
http://www.le-message.org
More information about the CMake
mailing list