buildreq-src(1)

BUILDREQ-SRC(1) User Contributed Perl Documentation BUILDREQ-SRC(1)

NAME

buildreq-src - a tool to deduce the Build Environment from Source files.

SYNOPSIS

buildreq-src [--help] [-v, --verbose] [-bp] [--force] [[-s,--spec] specfile] dir... | tarball ...

DESCRIPTION

buildreq-src is a tool to deduce the Build Environment from Source files.

Usage example: print the dependencies of a tarball or sourcedir buildreq-src ../SOURCES/Equalizer/Equalizer-1.2.1.tar.gz

add the dependencies of a tarball or sourcedir to spec file buildreq-src --update Equalizer.spec

OPTIONS

-v, --verbose, -q, --quiet
Verbosity level. Multiple -v increase the verbosity level, -q sets it to 0. Default is 1.
-s, --spec specfile
Spec file to consult. Do not output discovered dependencies that are also present in the specfile's BuildRequires. Together with --update, the output is inserted into the specfile.
-bp
Execute rpmbuild -bp --nodeps on the spec file and add %_builddir to the list of sources to analyze.
--force
Used in conjunction with -bp. Proceed even if rpmbuild -bp --nodeps returned bad exit code.
--update
Update BuildRequires in given spec file.
--sourcedep-*
Options that start with --sourcedep-* are SourceAnalyzer specific options. For current list of the options and their meaning run this program with --help.

AUTHOR

Written by Igor Vlasenko <viy@altlinux.org>.

COPYING

Copyright (c) 2008-2021 Igor Vlasenko, ALT Linux Team.

This is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

2023-11-22 perl v5.34.0