rpmbuild –with/–without conditional builds
Thursday, August 6th, 2009There is now some easy to read documentation about conditional builds available at the rpm.org wiki.
There is now some easy to read documentation about conditional builds available at the rpm.org wiki.
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 .” “$@”