[CMake] Creating Debian source packages with CMake
Eric Noulard
eric.noulard at gmail.com
Thu Oct 21 09:48:18 EDT 2010
2010/10/20 Daniel Pfeifer <daniel at pfeifer-mail.de>:
>> What would a 'debian/rules' file that used CPack look like?
>
> The `debian/rules` file that is generated by my script does currently
> not rely on CPack since CPack cannot generate more than one package.
In order to be sure I make myself clear.
CPack (2.8.3rcXX) **CAN** generate more than one package
see this bug if you want to know more about that issue:
http://public.kitware.com/Bug/view.php?id=10736
Now EACH CPack generator have to decide how to handle this.
Currently (2.8.3rcXX) the "multi-package" may be driven by the CPack
component definition
http://public.kitware.com/Bug/view.php?id=10130
for the CPack Archive Generator (ZIP, TZ, TGZ, etc...)
Support for DEB and RPM are wanted but the work needed for those
generators has not started YET.
I plan to begin with RPM:
http://public.kitware.com/Bug/view.php?id=7645
because I think I know how to do it
(I just have to find enough time to make through)
I would be glad to have some help to do it for DEB too.
I'll try my best to support and help anybody wanting to work on this,
Daniel may be?
Concerning pro- and cons- to use CPack for deb / rpm / whatever
packaging w.r.t. "official way" packager do the jobs there has been
several discussion on the ML, I suggest you searc the list
concerning this subject.
Basically as far as I remember many people like to be able to build
.deb or .rpm for their software in order to please their users.
Usually they don't want to learn how to do it
"the debian way" or "the Fedora way" or whatever because either:
1) they don't have time to do that
2) their software is not widespread enough to step in major distro
3) Official distro packager do already do that for them.
May be some time in the future CPack can mature enough and
become able to build .deb the "official debian way" or .rpm "the
official OpenSuSE way".
This is not the case today, I don't think it's a primary goal but that
does not mean it cannot be done.
--
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org
More information about the CMake
mailing list