diff --git a/opensp-manpage.patch b/opensp-manpage.patch
new file mode 100644
index 0000000..0039d19
--- /dev/null
+++ b/opensp-manpage.patch
@@ -0,0 +1,39 @@
+diff -urNp OpenSP-1.5.2-orig/docsrc/osgmlnorm.xml OpenSP-1.5.2/docsrc/osgmlnorm.xml
+--- OpenSP-1.5.2-orig/docsrc/osgmlnorm.xml 2005-12-08 20:34:01.000000000 +0100
++++ OpenSP-1.5.2/docsrc/osgmlnorm.xml 2013-08-15 14:58:01.284430911 +0200
+@@ -173,6 +173,15 @@
+ Show error numbers in error messages.
+
+
++
++
++
++
++
++ Show the generic identifiers of open elements in error
++ messages.
++
++
+
+
+
+diff -urNp OpenSP-1.5.2-orig/docsrc/ospam.xml OpenSP-1.5.2/docsrc/ospam.xml
+--- OpenSP-1.5.2-orig/docsrc/ospam.xml 2005-12-08 20:34:01.000000000 +0100
++++ OpenSP-1.5.2/docsrc/ospam.xml 2013-08-15 14:53:58.414782217 +0200
+@@ -151,6 +151,16 @@
+ of stderr.
+
+
++
++
++
++
++
++ Show the generic identifiers of open elements in error
++ messages.
++
++
++
+
+
+
diff --git a/opensp.spec b/opensp.spec
index 164a841..4442e44 100644
--- a/opensp.spec
+++ b/opensp.spec
@@ -1,16 +1,16 @@
Summary: SGML and XML parser
Name: opensp
Version: 1.5.2
-Release: 17%{?dist}
+Release: 18%{?dist}
Requires: sgml-common >= 0.5
URL: http://openjade.sourceforge.net/
Source: http://download.sourceforge.net/openjade/OpenSP-%{version}.tar.gz
Patch0: opensp-multilib.patch
Patch1: opensp-nodeids.patch
Patch2: opensp-sigsegv.patch
+Patch3: opensp-manpage.patch
License: MIT
Group: Applications/Text
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: xmlto, jadetex
@@ -34,6 +34,7 @@ Header files and libtool library for developing applications that use OpenSP.
%patch0 -p1 -b .multilib
%patch1 -p1 -b .nodeids
%patch2 -p1 -b .sigsegv
+%patch3 -p1 -b .manpage
# convert files to UTF-8
iconv -f latin1 -t utf8 ChangeLog -o ChangeLog.tmp
mv -f ChangeLog.tmp ChangeLog
@@ -75,10 +76,6 @@ rm -rf $RPM_BUILD_ROOT%{_datadir}/OpenSP
make check || : # TODO: failures as of 1.5.2 :(
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
@@ -101,6 +98,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Thu Aug 15 2013 Ondrej Vasik - 1.5.2-18
+- fix the inconsistency between man page and help (#854941)
+
* Sat Aug 03 2013 Fedora Release Engineering - 1.5.2-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild