3 autobuildrequires - Work out the BuildRequires of an RPM build automatically
7 auto-br-rpmbuild -ba foo.spec
9 auto-br [build-command ...]
13 Autobuildrequires analyzes an RPM package build to find out what
14 BuildRequires lines it needs.
16 Instead of using C<rpmbuild>, use this command:
18 auto-br-rpmbuild -ba foo.spec
20 (all the usual rpmbuild flags are supported). The command will build
21 your package and then output a list of C<BuildRequires> lines that it
22 thinks your package needs.
24 If your build command is more complex and/or doesn't use rpmbuild,
27 auto-br [build-command ...]
35 The basic "magic" is a C C<LD_PRELOAD> module,
36 F<auto-buildrequires-preload.c>, which intercepts some system calls to
37 determine which files the build is looking at. Those get logged to a
40 The Perl analysis script, F<auto-br-analyze.pl>, runs afterwards on
41 the logfile, and uses rpm to find out which packages those files
42 belong to. Those are printed out as the list of BuildRequires.
44 A shell script, F<auto-br>, brings the whole thing together.
48 This program returns 0 if successful, or non-zero if there was an
54 L<http://www.rpm.org/max-rpm/>
58 Richard W.M. Jones L<http://people.redhat.com/~rjones/>
62 Copyright (C) 2008-2015 Red Hat Inc.