Building a Debian package
From ASCEND
See Building a Debian package from a source tarball instead.Here are some instructions for building the ASCEND .DEB package. It's actually a bit difficult to distill a simple, straightforward method for this from the Debian New Maintainer's Guide, but the following seems to work for the moment, so it can be our 'standard' approach until we work out something more streamlined:
You can see the results of this build process on our Buildbot.
cd ~/ascend #(whatever is your subversion working directory location) rm -rf dist/ascend dist/ascend.orig #(if necessary) scons DISTTAR_NAME=ascend RELEASE=0.1879 dist #(make the RELEASE whatever you want) # create 'original' source directory: cd dist tar jxf ascend.tar.bz2 && mv ascend ascend.orig # create 'new' source directory including necessary Debian files: tar jxf ascend.tar.bz2 cd ascend tar zxf ../debian.tar.gz cp ../../debian/{changelog,control,rules} debian/ # create debian source package dpkg-source -b -sR ascend ascend.orig # build the binary package cd ascend && fakeroot-tcp dpkg-buildpackage # all done, the resulting .deb file will be in ~/ascend/dist.
Still remaining to be done:
- fix shared-library stuff to keep lintian happy (a list of current errors is available from the Buildbot).
See also Building an RPM Package for ASCEND.

