diff --git a/nspr-config.xml b/nspr-config.xml
new file mode 100644
index 0000000..9e3f99c
--- /dev/null
+++ b/nspr-config.xml
@@ -0,0 +1,127 @@
+
+
+
+]>
+
+
+
+
+ &date;
+ Netscape Portable Runtime
+ nspr
+ &version;
+
+
+
+ nspr-config
+ 1
+
+
+
+ nspr-config
+ Return meta information about nspr libraries
+
+
+
+
+ nspr-config
+
+
+
+
+
+
+
+
+
+
+
+ Description
+ nspr-config is a shell script which can be used to obtain gcc options for building client pacakges of nspr.
+
+
+
+ Options
+
+
+
+
+ Returns the top level system directory under which the nspr libraries are installed.
+
+
+
+
+ Returns the top level system directory under which any nspr binaries would be installed.
+
+
+
+ count
+ Returns the path to the directory were the nspr headers are installed.
+
+
+
+
+ Returns the upstream version of nspr in the form major_version-minor_version-patch_version.
+
+
+
+
+ Returns the compiler linking flags.
+
+
+
+
+ Returns the compiler include flags.
+
+
+
+
+ Returns the path to the directory were the nspr libraries are installed.
+
+
+
+
+
+
+ Examples
+
+ The following example will query for both include path and linkage flags:
+
+ /usr/bin/nspr-config --cflags --libs
+
+
+
+
+
+
+
+ Files
+
+ /usr/bin/nspr-config
+
+
+
+
+ See also
+ pkg-config(1)
+
+
+
+ Authors
+ The NSPR liraries were written and maintained by developers with Netscape, Red Hat, Sun, Oracle, Mozilla, and Google.
+
+ Authors: Elio Maldonado <emaldona@redhat.com>.
+
+
+
+
+
+ LICENSE
+ Licensed under the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+
+
+
+
diff --git a/nspr.spec b/nspr.spec
index ab151d1..cb07bdf 100644
--- a/nspr.spec
+++ b/nspr.spec
@@ -1,7 +1,7 @@
Summary: Netscape Portable Runtime
Name: nspr
Version: 4.10
-Release: 1%{?dist}
+Release: 2%{?dist}
License: MPLv2.0
URL: http://www.mozilla.org/projects/nspr/
Group: System Environment/Libraries
@@ -12,6 +12,7 @@ Conflicts: filesystem < 3
# When CVS tag based snapshots are being used, refer to CVS documentation on
# mozilla.org and check out subdirectory mozilla/nsprpub.
Source0: %{name}-%{version}.tar.bz2
+Source1: nspr-config.xml
Patch1: nspr-config-pc.patch
@@ -26,6 +27,7 @@ Summary: Development libraries for the Netscape Portable Runtime
Group: Development/Libraries
Requires: nspr = %{version}-%{release}
Requires: pkgconfig
+BuildRequires: xmlto
Conflicts: filesystem < 3
%description devel
@@ -66,6 +68,16 @@ export LDFLAGS
make
+date +"%e %B %Y" | tr -d '\n' > date.xml
+echo -n %{version} > version.xml
+
+for m in %{SOURCE1}; do
+ cp ${m} .
+done
+for m in nspr-config.xml; do
+ xmlto man ${m}
+done
+
%check
# Run test suite.
@@ -85,6 +97,8 @@ echo "test suite completed"
DESTDIR=$RPM_BUILD_ROOT \
make install
+mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
+
NSPR_LIBS=`./config/nspr-config --libs`
NSPR_CFLAGS=`./config/nspr-config --cflags`
NSPR_VERSION=`./config/nspr-config --version`
@@ -100,6 +114,10 @@ NSPR_VERSION=`./config/nspr-config --version`
$RPM_BUILD_ROOT/%{_datadir}/aclocal/nspr.m4 \
$RPM_BUILD_ROOT/%{_includedir}/nspr4/md
+for f in nspr-config; do
+ install -c -m 644 ${f}.1 $RPM_BUILD_ROOT%{_mandir}/man1/${f}.1
+done
+
%clean
%{__rm} -Rf $RPM_BUILD_ROOT
@@ -118,8 +136,12 @@ NSPR_VERSION=`./config/nspr-config --version`
%{_includedir}/nspr4
%{_libdir}/pkgconfig/nspr.pc
%{_bindir}/nspr-config
+%{_mandir}/man*/*
%changelog
+* Tue Jun 18 2013 Elio Maldonado - 4.10-2
+- Install man page for the nspr-config script
+
* Wed May 29 2013 Elio Maldonado - 4.10-1
- Update to NSPR_4_10_RTM