2008/7/17 Matthew Woehlke <[EMAIL PROTECTED]>: > Eric Noulard wrote: >> >> 2008/7/15 Matthew Woehlke <[EMAIL PROTECTED]>: >>>>> >>>>> but when I try to build the RPM, it wants to write to /usr (ah, >>>>> shouldn't >>>>> rpm building NOT need to install first?!), and if I run it as root, it >>>>> installs but yields an empty rpm. >> >> CPack RPM shouldn't try to write to /usr unless there is >> some abolsute installed path _and_ you are not setting >> >> SET(CPACK_SET_DESTDIR "ON") >> >> **** Before include(CPack) **** > > D'oh :-). For some reason I was thinking it shouldn't matter. Don't know > why, I should know better :-). Sorry. > > Ok, that's better... except for the gratuitous violations of Fedora > packaging convention. I suspect it won't be possible to use cpack to make > Fedora RPM's, at least not without a lot of surgery (for one, Fedora needs > an SRPM, RPM and -devel RPM, also no RPATH allowed, and no RPM's containing > common directories, e.g. /usr, /usr/bin, /usr/lib, etc.)
I know that, the current CPack RPM support is a "work in progress". > Anyway, thanks for the help! I now have a highly non-canon, but installable, > rpm that satisfies koffice's check, at least on i*86 (llvm is broken on > x86_64). Next step is making a proper rpm for Fedora, but I suspect that > won't involve cpack (should be interesting getting cmake to play with > Fedora's RPM building :-) ). You may build "canonical RPM" (both binary and src RPM) using the UseRPMTools.cmake macros http://www.cmake.org/Wiki/CMakeUserUseRPMTools -- Erk _______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
