Posts Tagged ‘rpmbuild’

rpmbuild –with/–without conditional builds

Thursday, August 6th, 2009

There is now some easy to read documentation about conditional builds available at the rpm.org wiki.

rpmbuild in current directory

Monday, May 18th, 2009

Since I started packaging, I was always annoyed by rpmbuild’s demand for it’s strange directory structure for input and output files. Therefore I wrote this little script to get a rpmbuild that uses the current directory for all these directories. Maybe there is one missing, because a recent rpm version now uses a BUILDROOT directory. Maybe one can define _buildrootdir for this, but I did not yet have any need for it.


$ cat rpmbuild-currentdir.sh
#! /bin/bash

/usr/bin/rpmbuild –define “_sourcedir .” –define “_rpmdir .” –define “_buildir .” –define “_srcrpmdir .” –define “_speccdir .” “$@”