[CMake] CMake-CVS: rpm generation problem
Alexander Neundorf
a.neundorf-work at gmx.net
Mon Feb 25 14:27:14 EST 2008
On Monday 25 February 2008, Frederik Deweerdt wrote:
> Hi all,
>
> I've encountered a problem generating RPMs with the latest
> CVS: apparently, some versions of rpmbuild (ours is 4.2.2) do
> the pre-processing even when the variable to replace is inside
> commentaries.
>
> In CPackRPM.cmake, the %install directive is found twice (lines 192 and
> 198), thus rpmbuild exists with the following message:
>
> $ /usr/bin/rpmbuild -bb <path to generated spec file>
> error: line 34: second %install
>
> The attached patch solved the problem for me.
rpmbuild doesn't seem to be the most robust software around, it also can't
handle paths with spaces :-/
Thanks, committed.
Alex
More information about the CMake
mailing list