You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
2.6 KiB

commit d9adda1589e131fa0d499432dcfc46b0a72ce519
Author: Ville Skyttä <ville.skytta@iki.fi>
Date: Sat Feb 8 13:22:22 2014 +0200
yum-builddep: Note spec support in man page
diff --git a/docs/yum-builddep.1 b/docs/yum-builddep.1
index ac7601e..6cad8a6 100644
--- a/docs/yum-builddep.1
+++ b/docs/yum-builddep.1
@@ -9,7 +9,7 @@ yum-builddep \- install missing dependencies for building an RPM package
\fByum-builddep\fP is a program which installs the RPMs needed to build
the specified package. The source RPM for the specified package must
be available in a Yum repository (which will be automatically enabled, if it is
-disabled) or it can be a local source RPM file.
+disabled) or it can be a local source RPM or a spec file.
.PP
.SH "EXAMPLES"
.IP "Download and install all the RPMs needed to build the kernel RPM:"
commit c08a67e9923ea9c095d62ccb931c0b8a589e4b1e
Author: Valentina Mukhamedzhanova <vmukhame@redhat.com>
Date: Tue Mar 1 18:08:32 2016 +0100
yum-builddep: mention the workaround for arched srpms in the man page. BZ#1156057
diff --git a/docs/yum-builddep.1 b/docs/yum-builddep.1
index 6cad8a6..fbe32bd 100644
--- a/docs/yum-builddep.1
+++ b/docs/yum-builddep.1
@@ -4,17 +4,28 @@
yum-builddep \- install missing dependencies for building an RPM package
.SH "SYNOPSIS"
\fByum-builddep\fP package
-.SH "DESCRIPTION"
.PP
+\fByum-builddep\fP /path/to/local/package.src.rpm
+.PP
+\fByum-builddep\fP /path/to/local/package.spec
+.SH "DESCRIPTION"
+.PP
\fByum-builddep\fP is a program which installs the RPMs needed to build
the specified package. The source RPM for the specified package must
be available in a Yum repository (which will be automatically enabled, if it is
disabled) or it can be a local source RPM or a spec file.
.PP
+Note, that only the BuildRequires information within the SRPM header information is used to determine build dependencies. This will specifically omit any dependencies that are required only for specific architectures.
+.PP
.SH "EXAMPLES"
.IP "Download and install all the RPMs needed to build the kernel RPM:"
-\fByum-builddep kernel\fP
+\fByumdownloader --source kernel && rpm2cpio kernel*src.rpm | cpio -i kernel.spec && \\ \fP
+.br
+\fByum-builddep kernel.spec\fP
.PP
+The kernel includes specific BuildRequires dependencies for different architectures. In order to make sure that those dependencies are downloaded and installed, the SRPM should be downloaded, the .spec file extracted from it and used to determine the full dependency list.
+.PP
+
.SH "FILES"
As yum-builddep uses YUM libraries for retrieving all the information, it
relies on YUM configuration for its default values like which repositories