1AUTOBUILDREQUIRES(1)  User Contributed Perl Documentation AUTOBUILDREQUIRES(1)
2
3
4

NAME

6       autobuildrequires - Work out the BuildRequires of an RPM build
7       automatically
8

SYNOPSIS

10         auto-br-rpmbuild -ba foo.spec
11
12         auto-br [build-command ...]
13

DESCRIPTION

15       Autobuildrequires analyzes an RPM package build to find out what
16       BuildRequires lines it needs.
17
18       Instead of using "rpmbuild", use this command:
19
20        auto-br-rpmbuild -ba foo.spec
21
22       (all the usual rpmbuild flags are supported).  The command will build
23       your package and then output a list of "BuildRequires" lines that it
24       thinks your package needs.
25
26       If your build command is more complex and/or doesn't use rpmbuild, then
27       use:
28
29        auto-br [build-command ...]
30
31       For example:
32
33        auto-br make
34

HOW IT WORKS

36       The basic "magic" is a C "LD_PRELOAD" module,
37       auto-buildrequires-preload.c, which intercepts some system calls to
38       determine which files the build is looking at.  Those get logged to a
39       simple text file.
40
41       The Perl analysis script, auto-br-analyze.pl, runs afterwards on the
42       logfile, and uses rpm to find out which packages those files belong to.
43       Those are printed out as the list of BuildRequires.
44
45       A shell script, auto-br, brings the whole thing together.
46

EXIT STATUS

48       This program returns 0 if successful, or non-zero if there was an
49       error.
50

SEE ALSO

52       rpmbuild(8), <http://www.rpm.org/max-rpm/>
53

AUTHORS

55       Richard W.M. Jones <http://people.redhat.com/~rjones/>
56
58       Copyright (C) 2008-2015 Red Hat Inc.
59
60
61
62perl v5.34.0                      2021-07-21              AUTOBUILDREQUIRES(1)
Impressum