Building a SUNDIALS RPM for Fedora

From ASCEND
Revision as of 02:12, 12 December 2012 by Jpye (talk | contribs) (Created page with "These instructions relate to building a SUNDIALS 2.5.0 RPM for Fedora 17 (64 bit), and was tested using a VirtualBox VM hosted on Ubuntu 12.04 LTS. Background information: se...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

These instructions relate to building a SUNDIALS 2.5.0 RPM for Fedora 17 (64 bit), and was tested using a VirtualBox VM hosted on Ubuntu 12.04 LTS.

Background information: see http://fedoraproject.org/wiki/How_to_create_an_RPM_package for information on Preparing you System (we didn't setup a separate user, though, justed added our username to group 'mock')

  1. Download sundials-2.5.0.tar.gz from the SUNDIALS site (you may need to use Firefox for that and you may need to provide a name/email address to access the download).
  2. copy the sundials-2.5.0.tar.gz file to the directory ~/rpmbuild/SOURCES.
  3. copy or link the file ~/ascend/tools/sundials/sundials.spec into ~/rpmbuild/SPECS
  4. cd ~/rpmbuild/SPECS
  5. rpmbuild -ba sundials.spec

This should result in some RPM packages in ~/rpmbuild/RPMS which can be installed using

sudo yum remove sundials
cd ~/rpmbuild/RPMS
sudo rpm -Uvh sundials-2.5*rpm sundials-devel*rpm

Note that the packaging convention here is not the same as the Fedora RPMs and that's why the earlier packages had to be removed first (we should fix that though).