!17 [sync] PR-14: 添加db2x_xsltproc -h -v选项的显示

From: @openeuler-sync-bot 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
This commit is contained in:
openeuler-ci-bot 2023-03-16 07:53:22 +00:00 committed by Gitee
commit a5ff121ddd
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
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