auto-buildrequires - automatically suggest BuildRequires for rpmbuild

Auto-BuildRequires is a simple set of scripts for automatically suggesting BuildRequires lines for programs.

Just replace the usual rpmbuild command with auto-br-rpmbuild as in this example:

$ auto-br-rpmbuild -ba mingw32-iconv.spec
Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/rjones/rpmbuild/BUILDROOT/mingw32-iconv-1.12-5.fc10.x86_64
Wrote: /home/rjones/rpmbuild/SRPMS/mingw32-iconv-1.12-5.fc10.src.rpm
Wrote: /home/rjones/rpmbuild/RPMS/noarch/mingw32-iconv-1.12-5.fc10.noarch.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.XpFhTF
+ umask 022
+ cd /home/rjones/rpmbuild/BUILD
+ cd libiconv-1.12
+ rm -rf /home/rjones/rpmbuild/BUILDROOT/mingw32-iconv-1.12-5.fc10.x86_64
+ exit 0
BuildRequires: bash = 3.2.29.fc10.x86_64
BuildRequires: binutils =
BuildRequires: ccache = 2.4.13.fc9.x86_64
BuildRequires: coreutils = 6.12.16.fc10.x86_64
BuildRequires: diffutils =
BuildRequires: file = 4.26.3.fc10.x86_64
BuildRequires: findutils = 1:
BuildRequires: gawk =
BuildRequires: gcc-gfortran =
BuildRequires: gettext = 0.17.8.fc10.x86_64
BuildRequires: glibc-common =
BuildRequires: grep = 2.5.1a.61.fc10.x86_64
BuildRequires: gzip =
BuildRequires: make = 1:3.81.14.fc10.x86_64
BuildRequires: mingw32-binutils = 2.18.50_20080109_2.8.fc9.x86_64
BuildRequires: mingw32-filesystem = 34.1.fc9.noarch
BuildRequires: mingw32-gcc-c++ =
BuildRequires: mingw32-gcc =
BuildRequires: mingw32-gettext = 0.17.6.fc9.noarch
BuildRequires: mingw32-iconv = 1.12.4.fc9.noarch
BuildRequires: mingw32-runtime =
BuildRequires: mingw32-w32api = 3.12.1.fc9.noarch
BuildRequires: net-tools = 1.60.91.fc10.x86_64
BuildRequires: sed =
BuildRequires: tar = 2:1.20.3.fc10.x86_64


Source and binaries are available here. The program is licensed under the terms of the GNU General Public License, version 2 or above.

Developer repository

There is a git repository here:;a=summary


git clone git://

rjones AT redhat DOT com

$Id: index.html,v 1.2 2009/03/06 13:28:48 rjones Exp $