Add db2x_xsltproc -h and -v options.

Signed-off-by: cherry530 <xuping33@huawei.com>
(cherry picked from commit a3f45c12a13e4e61fb0498016beb468a685063ef)
This commit is contained in:
cherry530 2023-02-13 14:50:59 +08:00 committed by openeuler-sync-bot
parent e557ee0241
commit e68a03f4f8
2 changed files with 22 additions and 1 deletions

View File

@ -0,0 +1,15 @@
diff --git a/perl/db2x_xsltproc.pl b/perl/db2x_xsltproc.pl
index 34fa2a1..065a1d4 100755
--- a/perl/db2x_xsltproc.pl
+++ b/perl/db2x_xsltproc.pl
@@ -96,8 +96,8 @@ if(!GetOptions($options,
'profile|P',
'xslt-processor|X=s',
- 'help', \&options_help,
- 'version', \&options_version))
+ 'help|h', \&options_help,
+ 'version|v', \&options_version))
{
print STDERR "Try \"$0 --help\" for more information.\n";
exit 1;

View File

@ -1,10 +1,13 @@
Name: docbook2X
Version: 0.8.8
Release: 34
Release: 35
Summary: Convert docbook into man and Texinfo
License: MIT
URL: http://docbook2x.sourceforge.net/
Source0: http://downloads.sourceforge.net/docbook2x/docbook2X-%{version}.tar.gz
Patch0: Add-db2x_xsltproc-h-and-v-options.patch
BuildRequires: perl-interpreter perl-generators libxslt openjade texinfo opensp gcc
BuildRequires: perl(XML::SAX::ParserFactory)
Requires: libxslt openjade texinfo opensp perl(Exporter) perl(IO::File)
@ -53,6 +56,9 @@ install -p doc/*.html __dist_html/html
%{_infodir}/docbook2*
%changelog
* Mon Feb 13 2023 xu_ping <xuping33@h-partners.com> - 0.8.8-35
- Add db2x_xsltproc -h and -v options.
* Mon May 31 2021 baizhonggui <baizhonggui@huawei.com> - 0.8.8-34
- Add gcc in BuildRequires