Building a SUNDIALS RPM for Fedora: Difference between revisions

From ASCEND
Jump to navigation Jump to search
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..."
 
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
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.
These instructions relate to building a SUNDIALS 2.4.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')
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')


# Download [https://computation.llnl.gov/casc/sundials/download/code/sundials-2.5.0.tar.gz sundials-2.5.0.tar.gz] from [https://computation.llnl.gov/casc/sundials/download/download.html 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).
# Edit your ~/.rpmmacros to contain '%dist .f17' and '%fedora_version 17' (as appropriate, each on a separate line)
# copy the sundials-2.5.0.tar.gz file to the directory ~/rpmbuild/SOURCES.
# Download [https://computation.llnl.gov/casc/sundials/download/code/sundials-2.4.0.tar.gz sundials-2.4.0.tar.gz] from [https://computation.llnl.gov/casc/sundials/download/download.html 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).
# copy or link the file ~/ascend/tools/sundials/sundials.spec into ~/rpmbuild/SPECS
# copy the sundials-2.4.0.tar.gz file to the directory ~/rpmbuild/SOURCES.
# copy or link the file ~/ascend/tools/sundials/sundials.spec ({{src|tools/sundials/sundials.spec}}, see [[VersionManagement]]) into ~/rpmbuild/SPECS
# cd ~/rpmbuild/SPECS
# cd ~/rpmbuild/SPECS
# rpmbuild -ba sundials.spec
# rpmbuild -ba sundials.spec
Line 13: Line 14:
  sudo yum remove sundials
  sudo yum remove sundials
  cd ~/rpmbuild/RPMS
  cd ~/rpmbuild/RPMS
  sudo rpm -Uvh sundials-2.5*rpm sundials-devel*rpm
  sudo rpm -Uvh sundials-2.4*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).
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).
[[Category:Development]]

Latest revision as of 02:35, 12 December 2012

These instructions relate to building a SUNDIALS 2.4.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. Edit your ~/.rpmmacros to contain '%dist .f17' and '%fedora_version 17' (as appropriate, each on a separate line)
  2. Download sundials-2.4.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).
  3. copy the sundials-2.4.0.tar.gz file to the directory ~/rpmbuild/SOURCES.
  4. copy or link the file ~/ascend/tools/sundials/sundials.spec (tools/sundials/sundials.spec, see VersionManagement) into ~/rpmbuild/SPECS
  5. cd ~/rpmbuild/SPECS
  6. 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.4*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).