How to build the package
svn checkout http://cetico.org/nwu-svn mkdir /var/tmp/nwu-package svn export trunk/ /var/tmp/nwu-package/nwu-<versao> cd /var/tmp/nwu-package tar zcvf nwu_<versao>.orig.tar.gz nwu-<versao> # this will create nwu_version.orig.tar.gz cd - svn export branch/debian /var/tmp/nwu-package/nwu-<versao>/debian cd /var/tmp/nwu-package/nwu-<version> dpkg-buildpackage -rfakeroot [-sa -S]
Reference
Python policy: http://www.us.debian.org/doc/packaging-manuals/python-policy/
Files policy: http://www.debian.org/doc/debian-policy/ch-files.html#s10.9
Distutils: http://www.python.org/doc/current/dist/dist.html
cdbs
http://www.us.debian.org/doc/maint-guide/
http://women.alioth.debian.org/wiki/index.php/English/PackagingTutorial
<TheMuso?> I suggest having a look at a package like speech-dispatcher. That is one off the top of my head that does what you are wanting to do. (add user)
"If your program uses configuration files but also rewrites them on its own, it's best not to mark them as conffiles because dpkg will then prompt users to verify the changes all the time."
Pending Tasks
- Write manpages
- Write User Guide documentation, preferably in HTML, then use deb's doc-base.
nictuku I'm setting up distutils for a deb package now, but the software has specific modules which I don't think should go to /usr/lib/pythonX.Y/site-packages/, but to /usr/share/<package>/module. Is this possible using distutils?