[pkgconfig/f19] Fix a few man page errors

Matthias Clasen mclasen at fedoraproject.org
Tue Jun 25 11:52:27 UTC 2013


commit 83026ff9cd1942dac4a800ce9083e4a692b634e2
Author: Matthias Clasen <mclasen at redhat.com>
Date:   Tue Jun 25 07:51:51 2013 -0400

    Fix a few man page errors

 pkg-config-man-cleanup.patch |   70 ++++++++++++++++++++++++++++++++++++++++++
 pkgconfig.spec               |   10 +++++-
 2 files changed, 79 insertions(+), 1 deletions(-)
---
diff --git a/pkg-config-man-cleanup.patch b/pkg-config-man-cleanup.patch
new file mode 100644
index 0000000..6cd7dac
--- /dev/null
+++ b/pkg-config-man-cleanup.patch
@@ -0,0 +1,70 @@
+diff -up pkg-config-0.27.1/pkg-config.1.man-cleanup pkg-config-0.27.1/pkg-config.1
+--- pkg-config-0.27.1/pkg-config.1.man-cleanup	2013-06-25 07:45:08.549339074 -0400
++++ pkg-config-0.27.1/pkg-config.1	2013-06-25 07:48:58.976953346 -0400
+@@ -9,10 +9,13 @@ pkg-config \- Return metainformation abo
+ .SH SYNOPSIS
+ .PP
+ .B pkg-config
+-[\-\-modversion] [\-\-version] [\-\-help] [\-\-print-errors]
++[\-\-modversion] [\-\-version] [\-\-help]
++[\-\-atleast-pkgconfig-version=VERSION]
++[\-\-print-errors] [\-\-short-errors]
+ [\-\-silence-errors] [\-\-errors-to-stdout] [\-\-debug]
+ [\-\-cflags] [\-\-libs] [\-\-libs-only-L]
+ [\-\-libs-only-l] [\-\-cflags-only-I]
++[\-\-libs-only-other] [\-\-cflags-only-other]
+ [\-\-variable=VARIABLENAME]
+ [\-\-define-variable=VARIABLENAME=VARIABLEVALUE]
+ [\-\-print-variables]
+@@ -71,6 +74,9 @@ Displays the version of
+ .I pkg-config
+ and terminates.
+ .TP
++.I "--atleast-pkgconfig-version=VERSION"
++Requires at least the given version of pkg-config.
++.TP
+ .I "--help"
+ Displays a help message and terminates.
+ .TP
+@@ -86,6 +92,9 @@ alone (to just print errors encountered
+ command line) or with other options. The PKG_CONFIG_DEBUG_SPEW
+ environment variable overrides this option.
+ .TP
++.I "--short-errors"
++Print short error messages.
++.TP
+ .I "--silence-errors"
+ If one or more of the modules on the command line, or their
+ dependencies, are not found, or if an error occurs in parsing a
+@@ -119,7 +128,10 @@ line.
+ .I "--cflags-only-I"
+ This prints the -I part of "--cflags". That is, it defines the header
+ search path but doesn't specify anything else.
+-.TP 
++.TP
++.I "--cflags-only-other"
++This prints parts of "--cflags" not covered by "--cflags-only-I".
++.TP
+ .I "--libs"
+ This option is identical to "--cflags", only it prints the link
+ flags. As with "--cflags", duplicate flags are merged (maintaining
+@@ -136,6 +148,10 @@ the command line. Note that the union of
+ "--libs-only-L" may be smaller than "--libs", due to flags such as
+ -rdynamic.
+ .TP
++.I "--libs-only-other"
++This prints the parts of "--libs" not covered by "--libs-only-L" and
++"--libs-only-l", such as "--pthread".
++.TP
+ .I "--variable=VARIABLENAME"
+ This returns the value of a variable defined in a package's \fI.pc\fP
+ file. Most packages define the variable "prefix", for example, so you 
+@@ -223,7 +239,7 @@ output.
+ .I "--list-all"
+ List all modules found in the \fIpkg-config\fP path.
+ .TP
+--I "--print-provides"
++.I "--print-provides"
+ List all modules the given packages provides.
+ .TP
+ .I "--print-requires"
diff --git a/pkgconfig.spec b/pkgconfig.spec
index 296e268..6e9ea34 100644
--- a/pkgconfig.spec
+++ b/pkgconfig.spec
@@ -1,12 +1,16 @@
 Summary: A tool for determining compilation options
 Name: pkgconfig
 Version: 0.27.1
-Release: 1%{?dist}
+Release: 2%{?dist}
 Epoch: 1
 License: GPLv2+
 URL: http://pkgconfig.freedesktop.org
 Group: Development/Tools
 Source:  http://www.freedesktop.org/software/pkgconfig/releases/pkg-config-%{version}.tar.gz
+
+# https://bugs.freedesktop.org/show_bug.cgi?id=66155
+Patch0: pkgconfig-man-cleanup.patch
+
 BuildRequires: glib2-devel
 
 Provides: pkgconfig(pkg-config) = %{version}
@@ -18,6 +22,7 @@ compiler and linker flags.
 
 %prep
 %setup -n pkg-config-%{version} -q
+%patch0 -p1 -b .man-cleanup
 
 %build
 %configure \
@@ -43,6 +48,9 @@ rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/pkg-config
 %{_datadir}/aclocal/*
 
 %changelog
+* Tue Jun 25 2013 Matthias Clasen <mclasen at redhat.com> - 0.27.1-2
+- Fix a few errors in the man page
+
 * Wed Mar 27 2013 Christophe Fergeau <cfergeau at redhat.com> 0.27.1-1
 - Update to 0.27.1
 


More information about the scm-commits mailing list