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

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