Package init
This commit is contained in:
parent
a9ff426989
commit
6a42debbe0
11
xml-commons-resolver-1.2-crosslink.patch
Normal file
11
xml-commons-resolver-1.2-crosslink.patch
Normal file
@ -0,0 +1,11 @@
|
||||
diff -up xml-commons-resolver-1.2/resolver.xml~ xml-commons-resolver-1.2/resolver.xml
|
||||
--- xml-commons-resolver-1.2/resolver.xml~ 2006-11-20 22:23:07.000000000 +0200
|
||||
+++ xml-commons-resolver-1.2/resolver.xml 2011-10-19 00:43:22.186668155 +0300
|
||||
@@ -148,6 +148,7 @@ Also, you may need to adjust src/documen
|
||||
use="true"
|
||||
windowtitle="${name.resolver} API"
|
||||
doctitle="${name.resolver}"
|
||||
+ link="/usr/share/javadoc/java"
|
||||
bottom="${copyright.message}">
|
||||
<package name="org.apache.xml.resolver"/>
|
||||
<package name="org.apache.xml.resolver.helpers"/>
|
||||
19
xml-commons-resolver-1.2-osgi.patch
Normal file
19
xml-commons-resolver-1.2-osgi.patch
Normal file
@ -0,0 +1,19 @@
|
||||
diff -up xml-commons-resolver-1.2/src/manifest.resolver~ xml-commons-resolver-1.2/src/manifest.resolver
|
||||
--- xml-commons-resolver-1.2/src/manifest.resolver~ 2006-11-20 22:23:06.000000000 +0200
|
||||
+++ xml-commons-resolver-1.2/src/manifest.resolver 2011-10-19 01:38:13.954802303 +0300
|
||||
@@ -1,5 +1,15 @@
|
||||
Manifest-Version: 1.0
|
||||
Main-Class: org.apache.xml.resolver.apps.resolver
|
||||
+Bundle-RequiredExecutionEnvironment: J2SE-1.2
|
||||
+Bundle-SymbolicName: org.apache.xml.resolver
|
||||
+Bundle-ManifestVersion: 2
|
||||
+Bundle-Name: XML Commons Resolver
|
||||
+Bundle-Localization: plugin
|
||||
+Bundle-Version: 1.2.0.v200806030312
|
||||
+Bundle-Vendor: Apache Software Foundation
|
||||
+Export-Package: org.apache.env,org.apache.xml.resolver,org.apache.xml.
|
||||
+ resolver.apps,org.apache.xml.resolver.etc,org.apache.xml.resolver.hel
|
||||
+ pers,org.apache.xml.resolver.readers,org.apache.xml.resolver.tools
|
||||
|
||||
Name: org/apache/xml/resolver
|
||||
Comment: xml-commons Resolver code
|
||||
BIN
xml-commons-resolver-1.2.tar.gz
Normal file
BIN
xml-commons-resolver-1.2.tar.gz
Normal file
Binary file not shown.
38
xml-commons-resolver-pom.xml
Normal file
38
xml-commons-resolver-pom.xml
Normal file
@ -0,0 +1,38 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?><project>
|
||||
<parent>
|
||||
<artifactId>apache</artifactId>
|
||||
<groupId>org.apache</groupId>
|
||||
<version>3</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>xml-resolver</groupId>
|
||||
<artifactId>xml-resolver</artifactId>
|
||||
<name>XML Commons Resolver Component</name>
|
||||
<version>1.2</version>
|
||||
<description>xml-commons provides an Apache-hosted set of DOM, SAX, and
|
||||
JAXP interfaces for use in other xml-based projects. Our hope is that we
|
||||
can standardize on both a common version and packaging scheme for these
|
||||
critical XML standards interfaces to make the lives of both our developers
|
||||
and users easier.</description>
|
||||
<url>http://xml.apache.org/commons/components/resolver/</url>
|
||||
<issueManagement>
|
||||
<system>bugzilla</system>
|
||||
<url>http://issues.apache.org/bugzilla/</url>
|
||||
</issueManagement>
|
||||
<mailingLists>
|
||||
<mailingList>
|
||||
<name>XML Commons Developer's List</name>
|
||||
<subscribe>commons-dev-subscribe@xml.apache.org</subscribe>
|
||||
<unsubscribe>commons-dev-unsubscribe@xml.apache.org</unsubscribe>
|
||||
<post>commons-dev@xml.apache.org</post>
|
||||
<archive>http://mail-archives.apache.org/mod_mbox/xml-commons-dev/</archive>
|
||||
</mailingList>
|
||||
</mailingLists>
|
||||
<scm>
|
||||
<connection>scm:svn:http://svn.apache.org/repos/asf/xml/commons/tags/xml-commons-resolver-1_2/</connection>
|
||||
<url>http://svn.apache.org/viewvc/xml/commons/tags/xml-commons-resolver-1_2/</url>
|
||||
</scm>
|
||||
<distributionManagement>
|
||||
<status>deployed</status>
|
||||
</distributionManagement>
|
||||
</project>
|
||||
66
xml-commons-resolver-resolver.1
Normal file
66
xml-commons-resolver-resolver.1
Normal file
@ -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.
|
||||
|
||||
62
xml-commons-resolver-xparse.1
Normal file
62
xml-commons-resolver-xparse.1
Normal file
@ -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
|
||||
|
||||
67
xml-commons-resolver-xread.1
Normal file
67
xml-commons-resolver-xread.1
Normal file
@ -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
|
||||
|
||||
68
xml-commons-resolver.spec
Normal file
68
xml-commons-resolver.spec
Normal file
@ -0,0 +1,68 @@
|
||||
Name: xml-commons-resolver
|
||||
Epoch: 0
|
||||
Version: 1.2
|
||||
Release: 27
|
||||
Summary: XML-commons resolver subprojects
|
||||
License: ASL 2.0
|
||||
URL: http://xerces.apache.org/xml-commons/components/resolver/
|
||||
BuildArch: noarch
|
||||
|
||||
Source0: http://www.apache.org/dist/xerces/xml-commons/%{name}-%{version}.tar.gz
|
||||
Source1: xml-commons-resolver-pom.xml
|
||||
Source2: xml-commons-resolver-resolver.1
|
||||
Source3: xml-commons-resolver-xparse.1
|
||||
Source4: xml-commons-resolver-xread.1
|
||||
|
||||
Patch0001: xml-commons-resolver-1.2-crosslink.patch
|
||||
Patch0002: xml-commons-resolver-1.2-osgi.patch
|
||||
|
||||
BuildRequires: javapackages-local ant apache-parent
|
||||
Requires: javapackages-tools
|
||||
|
||||
%description
|
||||
XML-commons resolver subprojects.
|
||||
|
||||
%package help
|
||||
Summary: Documentation for xml-commons-resolver
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Provides: %{name}-javadoc = %{epoch}:%{version}-%{release}
|
||||
Obsoletes: %{name}-javadoc < %{epoch}:%{version}-%{release}
|
||||
|
||||
%description help
|
||||
This package provides documentation for xml-commons-resolver.
|
||||
|
||||
%prep
|
||||
%autosetup -n xml-commons-resolver-1.2 -p1
|
||||
|
||||
rm -rf docs
|
||||
find . -name "*.jar" -exec rm -f {} \;
|
||||
%mvn_file : xml-commons-resolver xml-resolver
|
||||
|
||||
%build
|
||||
%ant -f resolver.xml jar javadocs
|
||||
%mvn_artifact %{SOURCE1} build/resolver.jar
|
||||
|
||||
%install
|
||||
%mvn_install -J build/apidocs/resolver
|
||||
|
||||
install -d %{buildroot}%{_bindir}
|
||||
%jpackage_script org.apache.xml.resolver.apps.resolver "" "" %{name} xml-resolver true
|
||||
%jpackage_script org.apache.xml.resolver.apps.xread "" "" %{name} xml-xread true
|
||||
%jpackage_script org.apache.xml.resolver.apps.xparse "" "" %{name} xml-xparse true
|
||||
|
||||
install -d -m 755 %{buildroot}%{_mandir}/man1
|
||||
install -p -m 644 %{SOURCE2} %{buildroot}%{_mandir}/man1/xml-resolver.1
|
||||
install -p -m 644 %{SOURCE3} %{buildroot}%{_mandir}/man1/xml-xparse.1
|
||||
install -p -m 644 %{SOURCE4} %{buildroot}%{_mandir}/man1/xml-xread.1
|
||||
|
||||
%files -f .mfiles
|
||||
%doc KEYS LICENSE.resolver.txt NOTICE-resolver.txt
|
||||
%{_bindir}/xml-*
|
||||
|
||||
%files help -f .mfiles-javadoc
|
||||
%{_mandir}/man1/*
|
||||
%doc LICENSE.resolver.txt NOTICE-resolver.txt
|
||||
|
||||
%changelog
|
||||
* Tue Dec 3 2019 fengbing <fengbing7@huawei.com> - 1.2-27
|
||||
- Package init
|
||||
Loading…
x
Reference in New Issue
Block a user