Support for AIX
rpmrebuild build packages from modified installed packages
Brought to you by:
gerbier
AIX uses RPM v.3 so this utility is very helpfull.
To support v.3 line BUILDCMD=rpmbuild in rpmbuild.sh has to be changed to BUILDCMD="rpm -ba".
AIX command syntax is not 100% compatible with Linux, so all mkdir --parent has to be changed to mkdir -p.
Since mkdir -p is supported on Linux as well, I suggest that to use thus short syntax in future releases.
Other than that, scripts are working on AIX without any problem!
Anonymous
is there any way to know (by script) if rpmrebuild is running on AIX ?
View and moderate all "feature-requests Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Feature Requests"
uname -s
will return
AIX
I 've found solution for BUILDCMD that should work on any OS:
if [ "$(rpm -q --queryformat "%{VERSION}" rpm)" \< "4.1" ]; then
local BUILDCMD="rpm -bb"
else
local BUILDCMD=rpmbuild
fi
rpmrebuild 2.5 can now work without any changes on AIX.
you will have to build a package with on AIX with : rpm -tb rpmrebuild-2.5.tar.gz
and then install it with rpm -Uvh rpmrebuild-2.5-1.noarch.rpm