FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Development

LinkBack Thread Tools
Old 10-22-2008, 02:06 AM
Kevin Kofler
Default CMake, CPack (was: Summary of the 2008-10-21 Packaging Committee meeting)

Jason L Tibbitts III <tibbs <at> math.uh.edu> writes:
> * Cpack guidelines
> ** https://fedoraproject.org/wiki/PackagingDrafts/CmakeCpack
> ** The committee was unclear as to how this applied to packaging
> guidelines at all, as it seems to contain tips for upstream
> developers instead of instructions for Fedora packagers.

Indeed, CPack is unsuitable for building official Fedora packages for several
reasons (it does not generate source RPMs [1], it treats the specfile as an
implementation detail and hides it from the developer and it's extremely
unlikely the specfiles it generates are compliant with our guidelines, I've
seen horrible things in autogenerated specfiles).

Fedora specfiles should be either handwritten entirely or generated with a
specfile generator (e.g. cpan2spec) and then hand-edited to follow the
guidelines (and of course to actually build, e.g. by filling in the missing
fields if the generator you used is just a template generator like the one in
the rpmdevtools).

It is not hard to write a specfile for the average CMake-using package: please
see this template:
for KDE 4 applications; for non-KDE applications using CMake, use the %build
and %install sections (and %check where applicable) from:

[1] http://www.cmake.org/Wiki/CMake:CPackPackageGenerators#RPM_.28Unix_Only.29

Kevin Kofler

fedora-devel-list mailing list

Thread Tools

All times are GMT. The time now is 02:36 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org