[CMake] Re: CMake, CPack, RPM

Eric Noulard eric.noulard at gmail.com
Thu Oct 11 09:54:06 EDT 2007


2007/10/11, kent williams <nkwmailinglists at gmail.com>:
> Thanks for your prompt reply.  To some extent you're answering
> questions that come from me being an RPM newbie.
>
> My problem with the Source RPM generation is that it requires that my
> system -- the one building the source RPM, doesn't have CMake
> installed as an RPM.    When I try and generate the source RPM, the
> build process fails because it doesn't detect a CMake RPM package on
> my system.

yes true.
You may relax the CMake dependency by editing the UseRPMTools.cmake
file and suppress the line:

BuildRequires:	cmake


>
> It would seem to me that the dependencies of the Source RPM shouldn't
> affect the system building the RPM this way.  I should be able to
> generate the source RPM, specify that I need ITK, VTK, KWWidgets, and
> CMake.

That pretty right.
But in fact source RPM includes sources :=)
That source RPM will be used to generate a binary RPM
for going from source RPM to --> binary RPM
you WILL USE CMake as you already do it for compiling
your source.
That why the dependency is included.

>
> Is CPack/CMake complaining about this or is it rpmbuild? If it's
> rpmbuild, there's not much we can do, but it seems spurious to require
> the building system to have RPMs installed that won't be needed until
> the target system tries to build the RPM.

This is rpmbuild which requires CMake to be installed as an rpm.
This is so because the spec file:
      - generated by UseRPMTool.cmake
      and
      - used by rpmbuild

indicates:

BuildRequires:	cmake

-- 
Erk


More information about the CMake mailing list