diff --git a/xml-commons-resolver-resolver.1 b/xml-commons-resolver-resolver.1 new file mode 100644 index 0000000..831e590 --- /dev/null +++ b/xml-commons-resolver-resolver.1 @@ -0,0 +1,66 @@ +.TH XML-RESOLVER 1 "11 April 2013" "xml-commons-resolver" "User commands" + +.SH NAME +xml-resolver - A simple command-line resolver + +.SH SYNOPSIS + +.B xml-resolver +[options] keyword + +.SH DESCRIPTION + +\fBxml-resolver\fP is a simple command-line resolver. It takes some parameters +and passes them through the resolver, printing the result. + +The process ends with error-level 1, if there were errors. + +.SH OPTIONS + +Command-line options are described below. + +.PP +.B -c +catalogfile +.RS 4 +Load a particular catalog file +.RE +.PP +.B -n +name +.RS 4 +Sets the name +.RE +.PP +.B -p +publicId +.RS 4 +Sets the public identifier +.RE +.PP +.B -s +systemId +.RS 4 +Sets the system identifier +.RE +.PP +.B -a +.RS 4 +Absolute system URI +.RE +.PP +.B -u +uri +.RS 4 +Sets the URI +.RE +.PP +.B -d +integer +.RS 4 +Set the debug level +.RE + +And keyword is one of: doctype, document, entity, notation, public, +system, or uri. + diff --git a/xml-commons-resolver-xparse.1 b/xml-commons-resolver-xparse.1 new file mode 100644 index 0000000..d63fc86 --- /dev/null +++ b/xml-commons-resolver-xparse.1 @@ -0,0 +1,62 @@ +.TH XML-XPARSE 1 "11 April 2013" "xml-commons-resolver" "User commands" + +.SH NAME +xml-xparse - A simple command-line XML parsing application + +.SH SYNOPSIS + +.B xml-xparse +[options] document.xml + +.SH DESCRIPTION + +\fBxml-xparse\fP is a simple command-line XML Parser. It's just a little +wrapper around the JAXP Parser with support for catalogs. + +The process ends with error-level 1, if there were errors. + +.SH OPTIONS + +Command-line options are described below. + +.PP +.B -c +catalogfile +.RS 4 +Load a particular catalog file +.RE +.PP +.B -w +.RS 4 +Perform a well-formed parse, not a validating parse +.RE +.PP +.B -v +(default) +.RS 4 +Perform a validating parse +.RE +.PP +.B -n +.RS 4 +Perform a namespace-ignorant parse +.RE +.PP +.B -N +(default) +.RS 4 +Perform a namespace-aware parse +.RE +.PP +.B -d +integer +.RS 4 +Set the debug level. Warnings are shown if the debug level is > 2 +.RE +.PP +.B -E +integer +.RS 4 +Set the maximum number of errors to display +.RE + diff --git a/xml-commons-resolver-xread.1 b/xml-commons-resolver-xread.1 new file mode 100644 index 0000000..0dfe05a --- /dev/null +++ b/xml-commons-resolver-xread.1 @@ -0,0 +1,67 @@ +.TH XML-XREAD 1 "11 April 2013" "xml-commons-resolver" "User commands" + +.SH NAME +xml-xread - A simple command-line XML parsing application + +.SH SYNOPSIS + +.B xml-xread +[options] document.xml + +.SH DESCRIPTION + +\fBxml-xread\fP is a simple command-line XML Parser. It's just a little +wrapper around the JAXP XMLReader with support for catalogs. + +The process ends with error-level 1, if there were errors. + +.SH OPTIONS + +Command-line options are described below. + +.PP +.B -c +catalogfile +.RS 4 +Load a particular catalog file +.RE +.PP +.B -w +.RS 4 +Perform a well-formed parse, not a validating parse +.RE +.PP +.B -v +(default) +.RS 4 +Perform a validating parse +.RE +.PP +.B -s +.RS 4 +Enable W3C XML Schema validation +.RE +.PP +.B -n +.RS 4 +Perform a namespace-ignorant parse +.RE +.PP +.B -N +(default) +.RS 4 +Perform a namespace-aware parse +.RE +.PP +.B -d +integer +.RS 4 +Set the debug level. Warnings are shown if the debug level is > 2 +.RE +.PP +.B -E +integer +.RS 4 +Set the maximum number of errors to display +.RE + diff --git a/xml-commons-resolver.spec b/xml-commons-resolver.spec index 409cb26..572fd9d 100644 --- a/xml-commons-resolver.spec +++ b/xml-commons-resolver.spec @@ -1,6 +1,6 @@ Name: xml-commons-resolver Version: 1.2 -Release: 11%{?dist} +Release: 12%{?dist} Epoch: 0 Summary: Resolver subproject of xml-commons License: ASL 2.0 @@ -11,6 +11,9 @@ Source2: xml-commons-resolver-xread.sh Source3: xml-commons-resolver-xparse.sh Source4: %{name}-MANIFEST.MF Source5: %{name}-pom.xml +Source6: %{name}-resolver.1 +Source7: %{name}-xparse.1 +Source8: %{name}-xread.1 Requires: xml-commons-apis Requires: jpackage-utils @@ -75,6 +78,12 @@ cp %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/xml-resolver cp %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/xml-xread cp %{SOURCE3} $RPM_BUILD_ROOT%{_bindir}/xml-xparse +# Man pages +install -d -m 755 ${RPM_BUILD_ROOT}%{_mandir}/man1 +install -p -m 644 %{SOURCE6} ${RPM_BUILD_ROOT}%{_mandir}/man1/xml-resolver.1 +install -p -m 644 %{SOURCE7} ${RPM_BUILD_ROOT}%{_mandir}/man1/xml-xparse.1 +install -p -m 644 %{SOURCE8} ${RPM_BUILD_ROOT}%{_mandir}/man1/xml-xread.1 + # Pom install -pD -T -m 644 %{SOURCE5} %{buildroot}%{_mavenpomdir}/JPP-xml-resolver.pom %add_to_maven_depmap xml-resolver xml-resolver %{version} JPP xml-resolver @@ -94,6 +103,7 @@ rm -rf $RPM_BUILD_ROOT %{_mavendepmapfragdir}/* %{_mavenpomdir}/* %{_javadir}/* +%{_mandir}/man1/* %attr(0755,root,root) %{_bindir}/* %files javadoc @@ -102,6 +112,9 @@ rm -rf $RPM_BUILD_ROOT %doc LICENSE.resolver.txt %changelog +* Thu Apr 11 2013 Michal Srb - 0:1.2-12 +- Add man pages (Resolves: rhbz#949424) + * Fri Feb 15 2013 Fedora Release Engineering - 0:1.2-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild