update to 2022.7 [release 2022.7-1mamba;Sat Aug 20 2022]
This commit is contained in:
parent
73495e3408
commit
2cb3d864d8
@ -4,7 +4,6 @@ The Sun Multi-Schema XML Validator (MSV) is a Java technology tool to validate X
|
|||||||
RELAX Namespace, RELAX Core, TREX, XML DTDs, and a subset of XML Schema Part 1. This latest (version 1.2) release includes several bug fixes and adds better conformance to RELAX NG/W3C XML standards and JAXP masquerading.
|
RELAX Namespace, RELAX Core, TREX, XML DTDs, and a subset of XML Schema Part 1. This latest (version 1.2) release includes several bug fixes and adds better conformance to RELAX NG/W3C XML standards and JAXP masquerading.
|
||||||
|
|
||||||
This tool is:
|
This tool is:
|
||||||
|
|
||||||
* A command line tool that can read XML documents and validate them against a schema (DTD/RELAX/TREX/W3C).
|
* A command line tool that can read XML documents and validate them against a schema (DTD/RELAX/TREX/W3C).
|
||||||
If an error is found, error messages are provided.
|
If an error is found, error messages are provided.
|
||||||
* A library that can be incorporated into Java applications as a validator.
|
* A library that can be incorporated into Java applications as a validator.
|
||||||
|
@ -1,179 +0,0 @@
|
|||||||
--- ./xsdlib/build.xml.sav 2005-07-22 19:19:12.000000000 -0400
|
|
||||||
+++ ./xsdlib/build.xml 2007-02-15 09:58:46.000000000 -0500
|
|
||||||
@@ -51,21 +51,19 @@
|
|
||||||
<javadoc locale="en_US"
|
|
||||||
packagenames="com.sun.msv.*"
|
|
||||||
sourcepath="./src"
|
|
||||||
- classpath="${java.class.path}"
|
|
||||||
+ classpath="${xerces.jar}:${relaxngDatatype.jar}:${junit.jar}:${jdom.jar}:${isorelax.jar}:${xalan.jar}"
|
|
||||||
destdir="./javadoc"
|
|
||||||
windowtitle="XSDLib (private build)"
|
|
||||||
public="yes"
|
|
||||||
author="yes"
|
|
||||||
overview="src/com/sun/msv/overview.html"
|
|
||||||
>
|
|
||||||
- <link offline="true" href="http://java.sun.com/products/jdk/1.2/docs/api"
|
|
||||||
- packagelistLoc="../shared/ExternalPackageLists/CoreAPI" />
|
|
||||||
- <link offline="true" href="http://xml.apache.org/apiDocs/"
|
|
||||||
- packagelistLoc="../shared/ExternalPackageLists/XML" />
|
|
||||||
- <link offline="true" href="http://iso-relax.sourceforge.net/apiDoc/"
|
|
||||||
- packagelistLoc="../shared/ExternalPackageLists/ISO-RELAX" />
|
|
||||||
- <link offline="true" href="http://relaxng.sourceforge.net/datatype/java/apiDocs/"
|
|
||||||
- packagelistLoc="../shared/ExternalPackageLists/RELAXNG" />
|
|
||||||
+ <link href="file:///usr/share/javadoc/java/" />
|
|
||||||
+ <link href="file:///usr/share/javadoc/xerces-j2-xni/" />
|
|
||||||
+ <link href="file:///usr/share/javadoc/xerces-j2-impl/" />
|
|
||||||
+ <link href="file:///usr/share/javadoc/xerces-j2-apis/" />
|
|
||||||
+ <link href="file:///usr/share/javadoc/isorelax/" />
|
|
||||||
+ <link href="file:///usr/share/javadoc/relaxngDatatype/" />
|
|
||||||
</javadoc>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
@@ -160,15 +158,16 @@
|
|
||||||
sourcepath="dist/src"
|
|
||||||
destdir="dist/javadoc"
|
|
||||||
windowtitle="Sun XML Datatypes Library"
|
|
||||||
+ classpath="${xerces.jar}:${relaxngDatatype.jar}:${junit.jar}:${jdom.jar}:${isorelax.jar}:${xalan.jar}"
|
|
||||||
public="yes"
|
|
||||||
author="yes"
|
|
||||||
>
|
|
||||||
- <link offline="true" href="http://java.sun.com/products/jdk/1.2/docs/api"
|
|
||||||
- packagelistLoc="../shared/ExternalPackageLists/CoreAPI" />
|
|
||||||
- <link offline="true" href="http://xml.apache.org/apiDocs/"
|
|
||||||
- packagelistLoc="../shared/ExternalPackageLists/XML" />
|
|
||||||
- <link offline="true" href="http://relaxng.sourceforge.net/datatype/java/apiDocs/"
|
|
||||||
- packagelistLoc="../shared/ExternalPackageLists/RELAXNG" />
|
|
||||||
+ <link href="file:///usr/share/javadoc/java/" />
|
|
||||||
+ <link href="file:///usr/share/javadoc/xerces-j2-xni/" />
|
|
||||||
+ <link href="file:///usr/share/javadoc/xerces-j2-impl/" />
|
|
||||||
+ <link href="file:///usr/share/javadoc/xerces-j2-apis/" />
|
|
||||||
+ <link href="file:///usr/share/javadoc/isorelax/" />
|
|
||||||
+ <link href="file:///usr/share/javadoc/relaxngDatatype/" />
|
|
||||||
</javadoc>
|
|
||||||
|
|
||||||
<!-- copy additional jar files -->
|
|
||||||
--- ./generator/build.xml.sav 2003-07-18 18:09:42.000000000 -0400
|
|
||||||
+++ ./generator/build.xml 2007-02-15 09:59:06.000000000 -0500
|
|
||||||
@@ -142,12 +142,18 @@
|
|
||||||
public="yes"
|
|
||||||
author="yes"
|
|
||||||
>
|
|
||||||
- <link offline="true" href="http://java.sun.com/products/jdk/1.2/docs/api"
|
|
||||||
- packagelistLoc="../shared/ExternalPackageLists/CoreAPI" />
|
|
||||||
- <link offline="true" href="http://xml.apache.org/apiDocs/"
|
|
||||||
- packagelistLoc="../shared/ExternalPackageLists/XML" />
|
|
||||||
- <link offline="true" href="http://relaxng.sourceforge.net/datatype/java/apiDocs/"
|
|
||||||
- packagelistLoc="../shared/ExternalPackageLists/RELAXNG" />
|
|
||||||
+ <classpath path="../package/msv.jar"/>
|
|
||||||
+ <classpath path="../package/xsdlib.jar"/>
|
|
||||||
+ <classpath path="${java.class.path}"/>
|
|
||||||
+ <classpath path="${xerces.jar}"/>
|
|
||||||
+ <classpath path="${relaxngDatatype.jar}"/>
|
|
||||||
+ <classpath path="${isorelax.jar}"/>
|
|
||||||
+ <link href="file:///usr/share/javadoc/java/" />
|
|
||||||
+ <link href="file:///usr/share/javadoc/xerces-j2-xni/" />
|
|
||||||
+ <link href="file:///usr/share/javadoc/xerces-j2-impl/" />
|
|
||||||
+ <link href="file:///usr/share/javadoc/xerces-j2-apis/" />
|
|
||||||
+ <link href="file:///usr/share/javadoc/relaxngDatatype/" />
|
|
||||||
+
|
|
||||||
</javadoc>
|
|
||||||
|
|
||||||
|
|
||||||
--- ./msv/build.xml.sav 2005-07-22 19:19:11.000000000 -0400
|
|
||||||
+++ ./msv/build.xml 2007-02-15 09:59:45.000000000 -0500
|
|
||||||
@@ -73,19 +73,17 @@
|
|
||||||
sourcepath="./src"
|
|
||||||
classpath="${java.class.path}"
|
|
||||||
destdir="javadoc"
|
|
||||||
- windowtitle="Internal Use Only --- Sun Multi Schema XML Validator"
|
|
||||||
+ windowtitle="Sun Multi Schema XML Validator"
|
|
||||||
public="yes"
|
|
||||||
author="yes"
|
|
||||||
overview="src/com/sun/msv/overview.html"
|
|
||||||
>
|
|
||||||
- <link offline="true" href="http://java.sun.com/products/jdk/1.2/docs/api"
|
|
||||||
- packagelistLoc="../shared/ExternalPackageLists/CoreAPI" />
|
|
||||||
- <link offline="true" href="http://xml.apache.org/apiDocs/"
|
|
||||||
- packagelistLoc="../shared/ExternalPackageLists/XML" />
|
|
||||||
- <link offline="true" href="http://iso-relax.sourceforge.net/apiDoc/"
|
|
||||||
- packagelistLoc="../shared/ExternalPackageLists/ISO-RELAX" />
|
|
||||||
- <link offline="true" href="http://relaxng.sourceforge.net/datatype/java/apiDocs/"
|
|
||||||
- packagelistLoc="../shared/ExternalPackageLists/RELAXNG" />
|
|
||||||
+ <link href="file:///usr/share/javadoc/java/" />
|
|
||||||
+ <link href="file:///usr/share/javadoc/xerces-j2-xni/" />
|
|
||||||
+ <link href="file:///usr/share/javadoc/xerces-j2-impl/" />
|
|
||||||
+ <link href="file:///usr/share/javadoc/xerces-j2-apis/" />
|
|
||||||
+ <link href="file:///usr/share/javadoc/isorelax/" />
|
|
||||||
+ <link href="file:///usr/share/javadoc/relaxngDatatype/" />
|
|
||||||
</javadoc>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
@@ -207,6 +205,7 @@
|
|
||||||
>
|
|
||||||
|
|
||||||
<classpath path="temp"/>
|
|
||||||
+ <classpath path="../package/xsdlib.jar"/>
|
|
||||||
<classpath path="${isorelax.jar}"/>
|
|
||||||
<classpath path="${relaxngDatatype.jar}"/>
|
|
||||||
<classpath path="${java.class.path}"/>
|
|
||||||
@@ -215,14 +214,13 @@
|
|
||||||
if you have encountered error around here,
|
|
||||||
please remove all offline="true" and packagelistLoc="...".
|
|
||||||
-->
|
|
||||||
- <link offline="true" href="http://java.sun.com/products/jdk/1.2/docs/api"
|
|
||||||
- packagelistLoc="ExternalPackageLists\CoreAPI" />
|
|
||||||
- <link offline="true" href="http://xml.apache.org/apiDocs/"
|
|
||||||
- packagelistLoc="ExternalPackageLists\XML" />
|
|
||||||
- <link offline="true" href="http://iso-relax.sourceforge.net/apiDoc/"
|
|
||||||
- packagelistLoc="ExternalPackageLists\ISO-RELAX" />
|
|
||||||
- <link offline="true" href="http://relaxng.sourceforge.net/datatype/java/apiDocs/"
|
|
||||||
- packagelistLoc="../shared/ExternalPackageLists/RELAXNG" />
|
|
||||||
+ <link href="file:///usr/share/javadoc/java/" />
|
|
||||||
+ <link href="file:///usr/share/javadoc/xerces-j2-xni/" />
|
|
||||||
+ <link href="file:///usr/share/javadoc/xerces-j2-impl/" />
|
|
||||||
+ <link href="file:///usr/share/javadoc/xerces-j2-apis/" />
|
|
||||||
+ <link href="file:///usr/share/javadoc/isorelax/" />
|
|
||||||
+ <link href="file:///usr/share/javadoc/relaxngDatatype/" />
|
|
||||||
+
|
|
||||||
</javadoc>
|
|
||||||
|
|
||||||
<!-- remove Visio files from release package -->
|
|
||||||
--- ./relames/build.xml.sav 2005-07-22 19:19:11.000000000 -0400
|
|
||||||
+++ ./relames/build.xml 2007-02-15 09:59:59.000000000 -0500
|
|
||||||
@@ -75,14 +75,34 @@
|
|
||||||
|
|
||||||
<!-- creates binary jar -->
|
|
||||||
<jar jarfile="dist/relames.jar"
|
|
||||||
- manifest="dist/src/META-INF/MANIFEST.MF"
|
|
||||||
- compress="false">
|
|
||||||
+ manifest="dist/src/META-INF/MANIFEST.MF">
|
|
||||||
|
|
||||||
<fileset dir="temp" />
|
|
||||||
<!-- resource files -->
|
|
||||||
<fileset dir="dist/src" includes="**/*.properties" />
|
|
||||||
<fileset dir="dist/src" includes="META-INF/**/*" />
|
|
||||||
</jar>
|
|
||||||
+ <mkdir dir="./dist/javadoc"/>
|
|
||||||
+ <javadoc locale="en_US"
|
|
||||||
+ packagenames="com.sun.msv.schematron.*"
|
|
||||||
+ sourcepath="./src"
|
|
||||||
+ classpath="${java.class.path}"
|
|
||||||
+ destdir="dist/javadoc"
|
|
||||||
+ windowtitle="Sun Multi Schema XML Validator Schematron Add-on"
|
|
||||||
+ public="yes"
|
|
||||||
+ author="yes"
|
|
||||||
+ >
|
|
||||||
+ <classpath path="../package/msv.jar"/>
|
|
||||||
+ <classpath path="${relaxngDatatype.jar}"/>
|
|
||||||
+ <classpath path="${isorelax.jar}"/>
|
|
||||||
+ <link href="file:///usr/share/javadoc/java/" />
|
|
||||||
+ <link href="file:///usr/share/javadoc/xerces-j2-xni/" />
|
|
||||||
+ <link href="file:///usr/share/javadoc/xerces-j2-impl/" />
|
|
||||||
+ <link href="file:///usr/share/javadoc/xerces-j2-apis/" />
|
|
||||||
+ <link href="file:///usr/share/javadoc/isorelax/" />
|
|
||||||
+ <link href="file:///usr/share/javadoc/relaxngDatatype/" />
|
|
||||||
+ </javadoc>
|
|
||||||
+
|
|
||||||
<delete dir="temp" />
|
|
||||||
|
|
||||||
<!-- remove the source code for now -->
|
|
@ -1,23 +0,0 @@
|
|||||||
--- ./relames/src/com/sun/msv/schematron/verifier/RelmesVerifier.java.orig 2007-02-14 15:38:34.000000000 -0500
|
|
||||||
+++ ./relames/src/com/sun/msv/schematron/verifier/RelmesVerifier.java 2007-02-14 15:39:44.000000000 -0500
|
|
||||||
@@ -94,13 +94,13 @@
|
|
||||||
} catch( Throwable t ) {
|
|
||||||
; // ignore any error. it wasn't Xerces.
|
|
||||||
}
|
|
||||||
- try {
|
|
||||||
- // Crimson?
|
|
||||||
- ((org.apache.crimson.tree.ElementNode2)super.parent)
|
|
||||||
- .setIdAttributeName(atts.getQName(i));
|
|
||||||
- } catch( Throwable t ) {
|
|
||||||
- ; // ignore any error. it wasn't Crimson.
|
|
||||||
- }
|
|
||||||
+// try {
|
|
||||||
+// // Crimson?
|
|
||||||
+// ((org.apache.crimson.tree.ElementNode2)super.parent)
|
|
||||||
+// .setIdAttributeName(atts.getQName(i));
|
|
||||||
+// } catch( Throwable t ) {
|
|
||||||
+// ; // ignore any error. it wasn't Crimson.
|
|
||||||
+// }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,36 +0,0 @@
|
|||||||
--- generator/src/com/sun/msv/generator/DataTypeGeneratorImpl.java 2005-06-14 17:08:35+0000 1.20
|
|
||||||
+++ generator/src/com/sun/msv/generator/DataTypeGeneratorImpl.java 2006-08-14 17:19:11+0000 1.21
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
/*
|
|
||||||
- * @(#)$Id: DataTypeGeneratorImpl.java,v 1.20 2005/06/14 17:08:35 kohsuke Exp $
|
|
||||||
+ * @(#)$Id: DataTypeGeneratorImpl.java,v 1.21 2006/08/14 17:19:11 kohsuke Exp $
|
|
||||||
*
|
|
||||||
* Copyright 2001 Sun Microsystems, Inc. All Rights Reserved.
|
|
||||||
*
|
|
||||||
@@ -45,6 +45,7 @@
|
|
||||||
import com.sun.msv.datatype.xsd.XSDatatypeImpl;
|
|
||||||
import com.sun.msv.datatype.xsd.XmlNames;
|
|
||||||
import com.sun.msv.datatype.xsd.Base64BinaryType;
|
|
||||||
+import com.sun.msv.datatype.xsd.ByteType;
|
|
||||||
import com.sun.xml.util.XmlChars;
|
|
||||||
|
|
||||||
/**
|
|
||||||
@@ -158,7 +159,7 @@
|
|
||||||
if( dt.getClass()==UnsignedIntType.class )
|
|
||||||
return Long.toString( random.nextLong()&0x7FFFFFFF );
|
|
||||||
|
|
||||||
- if( dt.getClass()==Byte.class ) return Long.toString( random.nextInt(256) );
|
|
||||||
+ if( dt.getClass()== ByteType.class ) return Long.toString( random.nextInt(256) );
|
|
||||||
if( dt.getClass()==ShortType.class ) return Long.toString( (short)random.nextInt() );
|
|
||||||
if( dt.getClass()==IntType.class ) return Long.toString( random.nextInt() );
|
|
||||||
if( dt.getClass()==LongType.class ) return Long.toString( random.nextLong() );
|
|
||||||
@@ -196,7 +197,7 @@
|
|
||||||
for( int i=0; i<10; i++ ) {
|
|
||||||
try {
|
|
||||||
return dti.convertToLexicalValue(items[random.nextInt(items.length)],context);
|
|
||||||
- } catch( Exception x ) { ; }
|
|
||||||
+ } catch( Exception x ) { }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
@ -1,26 +0,0 @@
|
|||||||
diff -ur generator/MANIFEST.MF generator/MANIFEST.MF
|
|
||||||
--- generator/MANIFEST.MF 2007-02-16 11:25:22.000000000 -0500
|
|
||||||
+++ generator/MANIFEST.MF 2007-02-16 11:26:31.000000000 -0500
|
|
||||||
@@ -1,5 +1,2 @@
|
|
||||||
Manifest-Version: 1.0
|
|
||||||
Main-Class: com.sun.msv.generator.Driver
|
|
||||||
-Created-By: 1.2.2 (Sun Microsystems Inc.)
|
|
||||||
-Class-Path: msv.jar xsdlib.jar relaxngDatatype.jar isorelax.jar xercesImpl.jar xmlParserAPIs.jar
|
|
||||||
-
|
|
||||||
diff -ur msv/MANIFEST.MF msv/MANIFEST.MF
|
|
||||||
--- msv/MANIFEST.MF 2007-02-16 11:27:27.000000000 -0500
|
|
||||||
+++ msv/MANIFEST.MF 2007-02-16 11:26:20.000000000 -0500
|
|
||||||
@@ -1,4 +1,2 @@
|
|
||||||
Manifest-Version: 1.0
|
|
||||||
Main-Class: com.sun.msv.driver.textui.Driver
|
|
||||||
-Created-By: 1.2.2 (Sun Microsystems Inc.)
|
|
||||||
-Class-Path: xercesImpl.jar isorelax.jar relaxngDatatype.jar xsdlib.jar xmlParserAPIs.jar resolver.jar
|
|
||||||
diff -ur rngconverter/MANIFEST.MF rngconverter/MANIFEST.MF
|
|
||||||
--- rngconverter/MANIFEST.MF 2007-02-16 11:26:55.000000000 -0500
|
|
||||||
+++ rngconverter/MANIFEST.MF 2007-02-16 11:27:05.000000000 -0500
|
|
||||||
@@ -1,5 +1,2 @@
|
|
||||||
Manifest-Version: 1.0
|
|
||||||
Main-Class: com.sun.msv.writer.relaxng.Driver
|
|
||||||
-Created-By: 1.2.2 (Sun Microsystems Inc.)
|
|
||||||
-Class-Path: msv.jar xerces.jar
|
|
||||||
-
|
|
378
java-msv.spec
378
java-msv.spec
@ -1,266 +1,62 @@
|
|||||||
%define javahome %{_jvmdir}/jdk
|
|
||||||
Name: java-msv
|
Name: java-msv
|
||||||
Version: 1.2
|
Version: 2022.7
|
||||||
Release: 4mamba
|
Release: 1mamba
|
||||||
Summary: Sun Multi-Schema Validator
|
Summary: Sun Multi-Schema Validator
|
||||||
Group: Development/Libraries/Java
|
Group: Development/Libraries/Java
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
Distribution: openmamba
|
Distribution: openmamba
|
||||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||||
URL: http://msv.dev.java.net
|
URL: https://msv.dev.java.net/
|
||||||
# cvs -d :pserver:guest@cvs.dev.java.net:/cvs export -r msv-20050722 msv-%{version}-20090226.svn
|
Source0: https://repo.mavenlibs.com/maven/net/java/dev/msv/msv-core/%{version}/msv-core-%{version}.jar
|
||||||
# tar zcf msv-%{version}-20090226.svn.tar.gz msv-%{version}-20090226.svn
|
Source1: https://repo.mavenlibs.com/maven/net/java/dev/msv/msv-relames/%{version}/msv-relames-%{version}.jar
|
||||||
Source0: msv-%{version}-20090226.svn.tar.gz
|
Source2: https://repo.mavenlibs.com/maven/net/java/dev/msv/msv-rngconverter/%{version}/msv-rngconverter-%{version}.jar
|
||||||
# cvs -d :pserver:guest@cvs.dev.java.net:/cvs co -r msv-20060821 msv/xsdlib/src/com/sun/msv/datatype/xsd/DateType.java
|
Source3: https://repo.mavenlibs.com/maven/net/java/dev/msv/msv-generator/%{version}/msv-generator-%{version}.jar
|
||||||
# mv DateType.java msv-%{version}-20090226.svn.DateType.java
|
Source4: https://repo.mavenlibs.com/maven/net/java/dev/msv/xsdlib/%{version}/xsdlib-%{version}.jar
|
||||||
Source1: msv-%{version}-20090226.svn.DateType.java
|
|
||||||
Patch0: java-msv-1.2-build_xmls.patch
|
|
||||||
Patch1: java-msv-1.2-disable-crimson.patch
|
|
||||||
Patch2: java-msv-1.2-noclasspathsinmanifests.patch
|
|
||||||
Patch3: java-msv-1.2-jdk15.patch
|
|
||||||
License: BSD
|
License: BSD
|
||||||
BuildRequires: apache-ant
|
## AUTOBUILDREQ-BEGIN
|
||||||
BuildRequires: apache-ant-junit
|
## AUTOBUILDREQ-END
|
||||||
%if "%{stage1}" != "1"
|
BuildRequires: javapackages
|
||||||
BuildRequires: apache-ant-regexp
|
Requires: javapackages
|
||||||
BuildRequires: apache-ant-trax
|
Provides: java-msv-msv
|
||||||
BuildRequires: apache-tomcat5-servletapi5
|
Obsoletes: java-msv-msv <= 1.2
|
||||||
BuildRequires: java-dom
|
Provides: java-msv-relames
|
||||||
BuildRequires: java-saxon6
|
Obsoletes: java-msv-relames <= 1.2
|
||||||
%endif
|
Provides: java-msv-rngconv
|
||||||
BuildRequires: java-isorelax
|
Obsoletes: java-msv-rngconv <= 1.2
|
||||||
BuildRequires: java-isorelax-javadoc
|
Provides: java-msv-xmlgen
|
||||||
BuildRequires: java-relaxngDatatype
|
Obsoletes: java-msv-xmlgen <= 1.2
|
||||||
BuildRequires: java-relaxngDatatype-javadoc
|
Provides: java-msv-xsdlib
|
||||||
BuildRequires: java-junit3
|
Obsoletes: java-msv-xsdlib <= 1.2
|
||||||
BuildRequires: jpackage-utils
|
|
||||||
BuildRequires: xalan-j2
|
|
||||||
BuildRequires: xerces-j2
|
|
||||||
BuildRequires: xerces-j2-javadoc-impl
|
|
||||||
BuildRequires: xerces-j2-javadoc-xni
|
|
||||||
BuildRequires: xerces-j2-javadoc-apis
|
|
||||||
BuildRequires: xml-commons-apis
|
|
||||||
BuildRequires: xml-commons-resolver
|
|
||||||
Requires: jpackage-utils
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The Sun Multi-Schema XML Validator (MSV) is a Java technology tool to validate XML documents against several kinds of XML schemata. It supports RELAX NG,
|
The Sun Multi-Schema XML Validator (MSV) is a Java technology tool to validate XML documents against several kinds of XML schemata. It supports RELAX NG,
|
||||||
RELAX Namespace, RELAX Core, TREX, XML DTDs, and a subset of XML Schema Part 1. This latest (version 1.2) release includes several bug fixes and adds better conformance to RELAX NG/W3C XML standards and JAXP masquerading.
|
RELAX Namespace, RELAX Core, TREX, XML DTDs, and a subset of XML Schema Part 1. This latest (version 1.2) release includes several bug fixes and adds better conformance to RELAX NG/W3C XML standards and JAXP masquerading.
|
||||||
|
|
||||||
This tool is:
|
This tool is:
|
||||||
|
|
||||||
* A command line tool that can read XML documents and validate them against a schema (DTD/RELAX/TREX/W3C).
|
* A command line tool that can read XML documents and validate them against a schema (DTD/RELAX/TREX/W3C).
|
||||||
If an error is found, error messages are provided.
|
If an error is found, error messages are provided.
|
||||||
* A library that can be incorporated into Java applications as a validator.
|
* A library that can be incorporated into Java applications as a validator.
|
||||||
|
|
||||||
See the included commandline.html file for details on how to use MSV from the command line. See the included developer.html file for details on how to use it as a library.
|
See the included commandline.html file for details on how to use MSV from the command line. See the included developer.html file for details on how to use it as a library.
|
||||||
|
|
||||||
%package msv
|
|
||||||
Summary: MSV proper
|
|
||||||
Group: Development/Libraries/Java
|
|
||||||
%if "%{stage1}" != "1"
|
|
||||||
Requires: apache-tomcat5-servletapi5
|
|
||||||
%endif
|
|
||||||
Requires: java-isorelax
|
|
||||||
Requires: java-relaxngDatatype
|
|
||||||
Requires: xerces-j2
|
|
||||||
Requires: xml-commons-apis
|
|
||||||
Requires: xml-commons-resolver
|
|
||||||
Requires: java-msv-xsdlib
|
|
||||||
Requires: jpackage-utils
|
|
||||||
|
|
||||||
%description msv
|
|
||||||
Sun Multi-Schema Validator
|
|
||||||
|
|
||||||
%package msv-javadoc
|
|
||||||
Summary: Javadoc for MSV proper
|
|
||||||
Group: Documentation
|
|
||||||
Requires: jpackage-utils
|
|
||||||
|
|
||||||
%description msv-javadoc
|
|
||||||
Sun Multi-Schema Validator
|
|
||||||
|
|
||||||
%package demo
|
|
||||||
Summary: Samples for msv
|
|
||||||
Group: Documentation
|
|
||||||
Requires: java-msv-msv
|
|
||||||
Requires: java-msv-xsdlib
|
|
||||||
Requires: jpackage-utils
|
|
||||||
|
|
||||||
%description demo
|
|
||||||
Sun Multi-Schema Validator
|
|
||||||
|
|
||||||
%package relames
|
|
||||||
Summary: Relames
|
|
||||||
Group: Development/Libraries/Java
|
|
||||||
Requires: java-isorelax
|
|
||||||
Requires: java-relaxngDatatype
|
|
||||||
Requires: xalan-j2
|
|
||||||
Requires: xerces-j2
|
|
||||||
Requires: xml-commons-apis
|
|
||||||
Requires: xml-commons-resolver
|
|
||||||
Requires: java-msv-msv
|
|
||||||
Requires: java-msv-xsdlib
|
|
||||||
Requires: jpackage-utils
|
|
||||||
|
|
||||||
%description relames
|
|
||||||
Sun Multi-Schema Validator
|
|
||||||
|
|
||||||
%package relames-javadoc
|
|
||||||
Summary: Javadoc for relames
|
|
||||||
Group: Documentation
|
|
||||||
Requires: jpackage-utils
|
|
||||||
|
|
||||||
%description relames-javadoc
|
|
||||||
Sun Multi-Schema Validator
|
|
||||||
|
|
||||||
%package rngconv
|
|
||||||
Summary: Rngconv
|
|
||||||
Group: Development/Libraries/Java
|
|
||||||
Requires: java-isorelax
|
|
||||||
Requires: java-relaxngDatatype
|
|
||||||
Requires: xerces-j2
|
|
||||||
Requires: xml-commons-apis
|
|
||||||
Requires: java-msv-msv
|
|
||||||
Requires: java-msv-xsdlib
|
|
||||||
Requires: jpackage-utils
|
|
||||||
|
|
||||||
%description rngconv
|
|
||||||
Sun Multi-Schema Validator
|
|
||||||
|
|
||||||
%package xmlgen
|
|
||||||
Summary: XmlGen
|
|
||||||
Group: Development/Libraries/Java
|
|
||||||
Requires: java-isorelax
|
|
||||||
Requires: java-relaxngDatatype
|
|
||||||
Requires: xml-commons-apis
|
|
||||||
Requires: xerces-j2
|
|
||||||
Requires: java-msv-msv
|
|
||||||
Requires: java-msv-xsdlib
|
|
||||||
Requires: jpackage-utils
|
|
||||||
|
|
||||||
%description xmlgen
|
|
||||||
Sun Multi-Schema Validator
|
|
||||||
|
|
||||||
%package xmlgen-javadoc
|
|
||||||
Summary: Javadoc for xmlgen
|
|
||||||
Group: Documentation
|
|
||||||
Requires: jpackage-utils
|
|
||||||
|
|
||||||
%description xmlgen-javadoc
|
|
||||||
Sun Multi-Schema Validator
|
|
||||||
|
|
||||||
%package xsdlib
|
|
||||||
Summary: Xsdlib
|
|
||||||
Group: Development/Libraries/Java
|
|
||||||
Requires: java-relaxngDatatype
|
|
||||||
Requires: jpackage-utils
|
|
||||||
|
|
||||||
%description xsdlib
|
|
||||||
Sun Multi-Schema Validator
|
|
||||||
|
|
||||||
%package xsdlib-javadoc
|
|
||||||
Summary: Javadoc for xsdlib
|
|
||||||
Group: Documentation
|
|
||||||
Requires: jpackage-utils
|
|
||||||
|
|
||||||
%description xsdlib-javadoc
|
|
||||||
Sun Multi-Schema Validator
|
|
||||||
|
|
||||||
%package manual
|
|
||||||
Summary: Documents for msv
|
|
||||||
Group: Documentation
|
|
||||||
Requires: jpackage-utils
|
|
||||||
|
|
||||||
%description manual
|
|
||||||
Sun Multi-Schema Validator
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n msv-%{version}-20090226.svn
|
|
||||||
cp %{S:1} xsdlib/src/com/sun/msv/datatype/xsd/DateType.java
|
|
||||||
|
|
||||||
for j in $(find . -name "*.jar"); do
|
|
||||||
mv $j $j.no
|
|
||||||
done
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
for m in $(find . -name MANIFEST.MF); do
|
|
||||||
sed -e '/^Class-path:/d' $m > tempf
|
|
||||||
cp tempf $m
|
|
||||||
done
|
|
||||||
rm tempf
|
|
||||||
|
|
||||||
# fix encoding
|
|
||||||
iconv msv/doc/copyright.txt -f iso-8859-1 -t utf-8 -o msv/doc/copyright.txt.utf8
|
|
||||||
mv msv/doc/copyright.txt.utf8 msv/doc/copyright.txt
|
|
||||||
iconv relames/doc/copyright.txt -f iso-8859-1 -t utf-8 -o relames/doc/copyright.txt.utf8
|
|
||||||
mv relames/doc/copyright.txt.utf8 relames/doc/copyright.txt
|
|
||||||
iconv rngconverter/doc/copyright.txt -f iso-8859-1 -t utf-8 -o rngconverter/doc/copyright.txt.utf8
|
|
||||||
mv rngconverter/doc/copyright.txt.utf8 rngconverter/doc/copyright.txt
|
|
||||||
iconv generator/doc/copyright.txt -f iso-8859-1 -t utf-8 -o generator/doc/copyright.txt.utf8
|
|
||||||
mv generator/doc/copyright.txt.utf8 generator/doc/copyright.txt
|
|
||||||
iconv xsdlib/doc/copyright.txt -f iso-8859-1 -t utf-8 -o xsdlib/doc/copyright.txt.utf8
|
|
||||||
mv xsdlib/doc/copyright.txt.utf8 xsdlib/doc/copyright.txt
|
|
||||||
|
|
||||||
%patch0 -p0 -b .sav
|
|
||||||
%patch1 -p0 -b .sav2
|
|
||||||
%patch2
|
|
||||||
%patch3 -p0 -b .sav
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
pushd shared/lib
|
|
||||||
ln -sf $(build-classpath ant-1.7.1) ant.jar
|
|
||||||
ln -sf $(build-classpath relaxngDatatype) relaxngDatatype.jar
|
|
||||||
ln -sf $(build-classpath isorelax) isorelax.jar
|
|
||||||
%if "%{stage1}" != "1"
|
|
||||||
ln -sf $(build-classpath ant/ant-trax) ant-trax.jar
|
|
||||||
# ln -sf $(build-classpath crimson) crimson.jar
|
|
||||||
# ln -sf $(build-classpath dom4j) dom4j.jar
|
|
||||||
ln -sf $(build-classpath jdom-1.1) jdom.jar
|
|
||||||
ln -sf $(build-classpath saxon) saxon.jar
|
|
||||||
ln -sf $(build-classpath servletapi5) servlet.jar
|
|
||||||
%endif
|
|
||||||
ln -sf $(build-classpath junit-3.8.2) junit.jar
|
|
||||||
ln -sf $(build-classpath xml-commons-resolver) resolver.jar
|
|
||||||
ln -sf $(build-classpath xercesImpl) xercesImpl.jar
|
|
||||||
# ln -sf $(build-classpath javacc) javacc.jar
|
|
||||||
ln -sf $(build-classpath xalan-j2) xalan.jar
|
|
||||||
ln -sf $(build-classpath xml-commons-apis) xmlParserAPIs.jar
|
|
||||||
popd
|
|
||||||
export JAVA_HOME=%javahome
|
|
||||||
%if "%{stage1}" != "1"
|
|
||||||
export CLASSPATH=$(build-classpath xalan-j2 xercesImpl ant/ant-apache-regexp ant/ant-junit ant/ant-trax xml-commons-resolver)
|
|
||||||
%else
|
|
||||||
mv shared/lib/servlet.jar.no shared/lib/servlet.jar
|
|
||||||
export CLASSPATH=$(build-classpath xalan-j2 xercesImpl ant/ant-junit xml-commons-resolver)
|
|
||||||
%endif
|
|
||||||
ant release
|
|
||||||
|
|
||||||
# cleans classes served for prebuild
|
|
||||||
pushd msv/dist/examples
|
|
||||||
find . -name "*.class" -exec rm -f {} \;
|
|
||||||
popd
|
|
||||||
|
|
||||||
pushd xsdlib/dist/examples
|
|
||||||
find . -name "*.class" -exec rm -f {} \;
|
|
||||||
popd
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
|
|
||||||
mkdir -p %{buildroot}%{_javadir}
|
mkdir -p %{buildroot}%{_javadir}
|
||||||
|
|
||||||
install -m 644 package/msv.jar \
|
install -m 644 %{SOURCE0} \
|
||||||
%{buildroot}%{_javadir}/msv-msv-%{version}.jar
|
%{buildroot}%{_javadir}/msv-msv-%{version}.jar
|
||||||
install -m 644 package/relames.jar \
|
install -m 644 %{SOURCE1} \
|
||||||
%{buildroot}%{_javadir}/msv-relames-%{version}.jar
|
%{buildroot}%{_javadir}/msv-relames-%{version}.jar
|
||||||
install -m 644 package/rngconv.jar \
|
install -m 644 %{SOURCE2} \
|
||||||
%{buildroot}%{_javadir}/msv-rngconv-%{version}.jar
|
%{buildroot}%{_javadir}/msv-rngconv-%{version}.jar
|
||||||
install -m 644 package/xmlgen.jar \
|
install -m 644 %{SOURCE3} \
|
||||||
%{buildroot}%{_javadir}/msv-xmlgen-%{version}.jar
|
%{buildroot}%{_javadir}/msv-xmlgen-%{version}.jar
|
||||||
install -m 644 package/xsdlib.jar \
|
install -m 644 %{SOURCE4} \
|
||||||
%{buildroot}%{_javadir}/msv-xsdlib-%{version}.jar
|
%{buildroot}%{_javadir}/msv-xsdlib-%{version}.jar
|
||||||
(
|
(
|
||||||
cd %{buildroot}%{_javadir}
|
cd %{buildroot}%{_javadir}
|
||||||
@ -275,138 +71,28 @@ install -m 644 package/xsdlib.jar \
|
|||||||
ln -sf msv-xsdlib.jar xsdlib.jar
|
ln -sf msv-xsdlib.jar xsdlib.jar
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
mkdir -p %{buildroot}%{_javadocdir}/msv
|
|
||||||
mkdir -p %{buildroot}%{_javadocdir}/msv/msv
|
|
||||||
cp -pr msv/dist/javadoc/* \
|
|
||||||
%{buildroot}%{_javadocdir}/msv/msv
|
|
||||||
mkdir -p %{buildroot}%{_javadocdir}/msv/relames
|
|
||||||
cp -pr relames/dist/javadoc/* \
|
|
||||||
%{buildroot}%{_javadocdir}/msv/relames
|
|
||||||
mkdir -p %{buildroot}%{_javadocdir}/msv/xmlgen
|
|
||||||
cp -pr generator/dist/javadoc/* \
|
|
||||||
%{buildroot}%{_javadocdir}/msv/xmlgen
|
|
||||||
mkdir -p %{buildroot}%{_javadocdir}/msv/xsdlib
|
|
||||||
cp -pr xsdlib/dist/javadoc/* \
|
|
||||||
%{buildroot}%{_javadocdir}/msv/xsdlib
|
|
||||||
|
|
||||||
|
|
||||||
mkdir -p %{buildroot}%{_docdir}/msv
|
|
||||||
mkdir -p %{buildroot}%{_docdir}/msv/msv
|
|
||||||
install -m 644 msv/doc/* \
|
|
||||||
%{buildroot}%{_docdir}/msv/msv
|
|
||||||
rm %{buildroot}%{_docdir}/msv/msv/Apache-LICENSE-1.1.txt
|
|
||||||
mkdir -p %{buildroot}%{_docdir}/msv/relames
|
|
||||||
install -m 644 relames/doc/* \
|
|
||||||
%{buildroot}%{_docdir}/msv/relames
|
|
||||||
rm %{buildroot}%{_docdir}/msv/relames/Apache-LICENSE-1.1.txt
|
|
||||||
mkdir -p %{buildroot}%{_docdir}/msv/rngconv
|
|
||||||
install -m 644 rngconverter/doc/* \
|
|
||||||
%{buildroot}%{_docdir}/msv/rngconv
|
|
||||||
rm %{buildroot}%{_docdir}/msv/rngconv/Apache-LICENSE-1.1.txt
|
|
||||||
mkdir -p %{buildroot}%{_docdir}/msv/xmlgen
|
|
||||||
install -m 644 generator/doc/* \
|
|
||||||
%{buildroot}%{_docdir}/msv/xmlgen
|
|
||||||
rm %{buildroot}%{_docdir}/msv/xmlgen/Apache-LICENSE-1.1.txt
|
|
||||||
mkdir -p %{buildroot}%{_docdir}/msv/xsdlib
|
|
||||||
install -m 644 xsdlib/doc/* \
|
|
||||||
%{buildroot}%{_docdir}/msv/xsdlib
|
|
||||||
rm %{buildroot}%{_docdir}/msv/xsdlib/Apache-LICENSE-1.1.txt
|
|
||||||
|
|
||||||
|
|
||||||
mkdir -p %{buildroot}%{_datadir}/msv-%{version}/msv
|
|
||||||
cp -pr msv/dist/examples/* %{buildroot}%{_datadir}/msv-%{version}/msv
|
|
||||||
mkdir -p %{buildroot}%{_datadir}/msv-%{version}/xsdlib
|
|
||||||
cp -pr xsdlib/dist/examples/* %{buildroot}%{_datadir}/msv-%{version}/xsdlib
|
|
||||||
|
|
||||||
|
|
||||||
#export CLASSPATH=$(build-classpath gnu-crypto)
|
|
||||||
#%{_bindir}/aot-compile-rpm
|
|
||||||
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
|
|
||||||
%files msv
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_javadir}/msv-msv-%{version}.jar
|
%{_javadir}/msv-msv-%{version}.jar
|
||||||
%{_javadir}/msv-msv.jar
|
%{_javadir}/msv-msv.jar
|
||||||
%{_javadir}/msv-strict.jar
|
%{_javadir}/msv-strict.jar
|
||||||
%dir %{_docdir}/msv/msv
|
|
||||||
%doc %{_docdir}/msv/msv/license.txt
|
|
||||||
%doc %{_docdir}/msv/msv/copyright.txt
|
|
||||||
|
|
||||||
%files msv-javadoc
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%dir %{_javadocdir}/msv
|
|
||||||
%doc %{_javadocdir}/msv/msv
|
|
||||||
|
|
||||||
%files demo
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%dir %{_datadir}/msv-%{version}
|
|
||||||
%{_datadir}/msv-%{version}/msv
|
|
||||||
%{_datadir}/msv-%{version}/xsdlib
|
|
||||||
|
|
||||||
%files relames
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_javadir}/msv-relames-%{version}.jar
|
%{_javadir}/msv-relames-%{version}.jar
|
||||||
%{_javadir}/msv-relames.jar
|
%{_javadir}/msv-relames.jar
|
||||||
%doc %{_docdir}/msv/relames/copyright.txt
|
|
||||||
|
|
||||||
%files relames-javadoc
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%doc %{_javadocdir}/msv/relames
|
|
||||||
|
|
||||||
%files rngconv
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_javadir}/msv-rngconv-%{version}.jar
|
%{_javadir}/msv-rngconv-%{version}.jar
|
||||||
%{_javadir}/msv-rngconv.jar
|
%{_javadir}/msv-rngconv.jar
|
||||||
%doc %{_docdir}/msv/rngconv/license.txt
|
|
||||||
%doc %{_docdir}/msv/rngconv/copyright.txt
|
|
||||||
|
|
||||||
%files xmlgen
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_javadir}/msv-xmlgen-%{version}.jar
|
%{_javadir}/msv-xmlgen-%{version}.jar
|
||||||
%{_javadir}/msv-xmlgen.jar
|
%{_javadir}/msv-xmlgen.jar
|
||||||
%doc %{_docdir}/msv/xmlgen/license.txt
|
|
||||||
%doc %{_docdir}/msv/xmlgen/copyright.txt
|
|
||||||
|
|
||||||
%files xmlgen-javadoc
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%doc %{_javadocdir}/msv/xmlgen
|
|
||||||
|
|
||||||
%files xsdlib
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_javadir}/msv-xsdlib-%{version}.jar
|
%{_javadir}/msv-xsdlib-%{version}.jar
|
||||||
%{_javadir}/msv-xsdlib.jar
|
%{_javadir}/msv-xsdlib.jar
|
||||||
%{_javadir}/xsdlib.jar
|
%{_javadir}/xsdlib.jar
|
||||||
%doc %{_docdir}/msv/xsdlib/license.txt
|
|
||||||
%doc %{_docdir}/msv/xsdlib/copyright.txt
|
|
||||||
|
|
||||||
%files xsdlib-javadoc
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%doc %{_javadocdir}/msv/xsdlib
|
|
||||||
|
|
||||||
%files manual
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%dir %{_docdir}/msv/msv
|
|
||||||
%doc %{_docdir}/msv/msv/ChangeLog.txt
|
|
||||||
%doc %{_docdir}/msv/msv/*.html
|
|
||||||
%doc %{_docdir}/msv/msv/*.gif
|
|
||||||
%doc %{_docdir}/msv/msv/README.txt
|
|
||||||
%dir %{_docdir}/msv/relames
|
|
||||||
%doc %{_docdir}/msv/relames/README.txt
|
|
||||||
%dir %{_docdir}/msv/rngconv
|
|
||||||
%doc %{_docdir}/msv/rngconv/README.txt
|
|
||||||
%dir %{_docdir}/msv/xmlgen
|
|
||||||
%doc %{_docdir}/msv/xmlgen/*.html
|
|
||||||
%doc %{_docdir}/msv/xmlgen/README.txt
|
|
||||||
%dir %{_docdir}/msv/xsdlib
|
|
||||||
%doc %{_docdir}/msv/xsdlib/*.html
|
|
||||||
%doc %{_docdir}/msv/xsdlib/README.txt
|
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Aug 20 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 2022.7-1mamba
|
||||||
|
- update to 2022.7
|
||||||
|
|
||||||
* Fri Mar 25 2011 gil <puntogil@libero.it> 1.2-4mamba
|
* Fri Mar 25 2011 gil <puntogil@libero.it> 1.2-4mamba
|
||||||
- rebuilt with java-gcj-compat support
|
- rebuilt with java-gcj-compat support
|
||||||
|
|
||||||
|
@ -1,32 +0,0 @@
|
|||||||
/*
|
|
||||||
* @(#)$Id: DateType.java,v 1.1 2006/08/14 17:08:07 kohsuke Exp $
|
|
||||||
*
|
|
||||||
* Copyright 2001 Sun Microsystems, Inc. All Rights Reserved.
|
|
||||||
*
|
|
||||||
* This software is the proprietary information of Sun Microsystems, Inc.
|
|
||||||
* Use is subject to license terms.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
package com.sun.msv.datatype.xsd;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* "date" type.
|
|
||||||
*
|
|
||||||
* type of the value object is {@link com.sun.msv.datatype.xsd.datetime.IDateTimeValueType}.
|
|
||||||
* See http://www.w3.org/TR/xmlschema-2/#dateTime for the spec
|
|
||||||
*
|
|
||||||
* @author <a href="mailto:kohsuke.kawaguchi@eng.sun.com">Kohsuke KAWAGUCHI</a>
|
|
||||||
*/
|
|
||||||
public class DateType extends DateTimeBaseType {
|
|
||||||
|
|
||||||
public static final DateType theInstance = new DateType();
|
|
||||||
private DateType() { super("date"); }
|
|
||||||
|
|
||||||
protected final String getFormat() {
|
|
||||||
return "%Y-%M-%D%z";
|
|
||||||
}
|
|
||||||
|
|
||||||
// serialization support
|
|
||||||
private static final long serialVersionUID = 1;
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user