Building an RPM Package for ASCEND

From ASCEND
Jump to: navigation, search

See Building ASCEND#Fedora 18 for updated instructions.

To build an RPM package for ASCEND, you should first make sure you can build 'normal' ASCEND. Then, follow these steps. You can have a look at the .spec file ascend.spec first, if you like.

  • Check out the ASCEND sources in the usual way using Subversion.
  • Ensure that you have the prerequisites for Linux installed, including the SUNDIALS RPM from our supporting RPMs page.
  • Ensure that you are set up for building RPMs as a non-root user. This means creating a file ~/.rpmmacros and setting up some directories.
  • Ensure you have 'fedora_version' (or some other distro version) named in your ~/.rpmmacros file.
  • If necessary, edit SConstruct with the version number you want to release
  • scons dist (this will create a tarball in the dist subdirectory)
  • rpmbuild -ta dist/ascend-NNNNN.tar.bz2

You should now have an RPM version of ASCEND in your RPMS directory (as defined by your ~/.rpmmacros file).


Shown below is my ~/.rpmmacros file from Fedora Core 9.

Note: Make sure you use the %dist tag; it ensure that the resulting binary RPM is named for your platform.

Note: The %ccache thing is optional. If you use it, ccache will be used when compiling the RPM, which makes things faster if you're trying the build repeatedly. The program ccache is not installed on most systems by default; you will need to download and install it from your package repository.


%_topdir /home/john/rpmbuild
%dist .f9
%ccache ccache

%__arch_install_post /usr/lib/rpm/check-rpaths   /usr/lib/rpm/check-buildroot

%fedora_version 9


See also Building a Debian package.