From e68a03f4f880564e22a8999f836467f2139fa64f Mon Sep 17 00:00:00 2001 From: cherry530 Date: Mon, 13 Feb 2023 14:50:59 +0800 Subject: [PATCH] Add db2x_xsltproc -h and -v options. Signed-off-by: cherry530 (cherry picked from commit a3f45c12a13e4e61fb0498016beb468a685063ef) --- Add-db2x_xsltproc-h-and-v-options.patch | 15 +++++++++++++++ docbook2X.spec | 8 +++++++- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 Add-db2x_xsltproc-h-and-v-options.patch diff --git a/Add-db2x_xsltproc-h-and-v-options.patch b/Add-db2x_xsltproc-h-and-v-options.patch new file mode 100644 index 0000000..f5e43d4 --- /dev/null +++ b/Add-db2x_xsltproc-h-and-v-options.patch @@ -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; diff --git a/docbook2X.spec b/docbook2X.spec index 7ac34cd..00bfa99 100644 --- a/docbook2X.spec +++ b/docbook2X.spec @@ -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 - 0.8.8-35 +- Add db2x_xsltproc -h and -v options. + * Mon May 31 2021 baizhonggui - 0.8.8-34 - Add gcc in BuildRequires -- Gitee