[CentOS] RPM Build Question

Clint Dilks clintd at scms.waikato.ac.nz
Wed Jul 11 22:40:21 UTC 2007

Hi People,

I have just started building my own RPMS on both Fedora and CentOS and 
generally things have gone well.  Currently I am trying to create RPMS 
for some commercial software that we have purchased.

Step 1 was install the software using its JAVA Based installer
 ensuring that all files were installed into a particular directory in 

Step 2 was create a tar file of the resulting files

Step 3 Turn this tar file into an RPM using the following spec file
Name:          mathematica
Version:        6.0
Release:        1%{?dist}
Summary:        Mathematica
Group:          Development/Tools
License:        Commercial
URL:            http://www.wolfram.com/
Source0:        mathematica.tar.bz2
%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
AutoReqProv:    no


Long recognized as the world's most powerful mathematical software system



mkdir -p $RPM_BUILD_ROOT
tar xvjf $RPM_SOURCE_DIR/mathematica.tar.bz2




* Wed Jul 11 2007 SCMS, Waikato University
Initial RPM release - Clint Dilks

When testing the install phase I use the following command
QA_RPATHS=$[ 0x0002 ] rpmbuild -bi mathematica.spec

This completes but this message is displayed prelink: 
at least one of file's dependencies has changed since prelinking

If I ignore this and build the RPM completely using rpmbuild -ba 
mathematica.spec an RPM is created but when I try and install this it 
fails because the MD5 Sum of the file mentioned above is not correct.

Anyone have any idea how to stop the prelink change that is causing the 

I assume its a directive similiar to %define __os_install_post %{nil} 
but I'm unsure exactly what I should be turning off.


More information about the CentOS mailing list