Blame SOURCES/BZ-1156057-yum-builddep-manpage-arched-requires.patch

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