1 Auto-BuildRequires is a simple set of scripts for automatically
2 suggesting BuildRequires lines for programs.
4 Written by Richard W.M. Jones, rjones@redhat.com,
5 http://et.redhat.com/~rjones/
6 http://et.redhat.com/~rjones/auto-buildrequires/
10 auto-br-rpmbuild -ba foo.spec
12 If your build command is more complex, try:
18 ----------------------------------------------------------------------
20 The basic "magic" is a C LD_PRELOAD module, auto-buildrequires-preload.c,
21 which intercepts some system calls to determine which files the build
22 is looking at. Those get logged to a simple text file.
24 The Perl analysis script, auto-br-analyze.pl.in, runs afterwards on
25 the logfile, and uses rpm to find out which packages those files
26 belong to. Those are printed out as the list of BuildRequires.
28 A shell script, auto-br.sh.in, holds the whole thing together.