- fix the inconsistency between man page and help (#854941)

This commit is contained in:
Ondřej Vašík 2013-08-15 15:10:19 +02:00
parent d762f7f6e3
commit d437140b17
2 changed files with 45 additions and 6 deletions

39
opensp-manpage.patch Normal file
View File

@ -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 @@
<para>Show error numbers in error messages.</para>
</listitem>
</varlistentry>
+
+ <varlistentry>
+ <term><option>-g</option></term>
+ <term><option>--open-elements</option></term>
+ <listitem>
+ <para>Show the generic identifiers of open elements in error
+ messages.</para>
+ </listitem>
+ </varlistentry>
<varlistentry>
<term><option>-h</option></term>
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.</para>
</listitem>
</varlistentry>
+
+ <varlistentry>
+ <term><option>-g</option></term>
+ <term><option>--open-elements</option></term>
+ <listitem>
+ <para>Show the generic identifiers of open elements in error
+ messages.</para>
+ </listitem>
+ </varlistentry>
+
<varlistentry>
<term><option>-h</option></term>
<term><option>--hoist-omitted-tags</option></term>

View File

@ -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 <ovasik@redhat.com> - 1.5.2-18
- fix the inconsistency between man page and help (#854941)
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.2-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild