Version 0.9 release.
[autobuildrequires.git] / README
1 Auto-BuildRequires is a simple set of scripts for automatically
2 suggesting BuildRequires lines for programs.
3
4 Written by Richard W.M. Jones, rjones@redhat.com,
5 http://et.redhat.com/~rjones/
6 http://et.redhat.com/~rjones/auto-buildrequires/
7
8 Usage:
9
10   auto-br-rpmbuild -ba foo.spec
11
12 If your build command is more complex, try:
13
14   auto-br [command ...]
15
16
17 Developers
18 ----------------------------------------------------------------------
19
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.
23
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.
27
28 A shell script, auto-br.sh.in, holds the whole thing together.