From c12d0e18d956aa05f1cc4eb74ad9b57de5e0f062 Mon Sep 17 00:00:00 2001 From: CentOS Buildsys Date: Mar 25 2013 09:43:09 +0000 Subject: import jing-trang-20091111-12.el7.src.rpm --- diff --git a/.jing-trang.metadata b/.jing-trang.metadata new file mode 100644 index 0000000..2abbdc8 --- /dev/null +++ b/.jing-trang.metadata @@ -0,0 +1 @@ +aae98dcc33ac20a04d5400c57e0cccecfa26beb4 SOURCES/jing-trang-20091111.tar.xz diff --git a/README.md b/README.md deleted file mode 100644 index 0e7897f..0000000 --- a/README.md +++ /dev/null @@ -1,5 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 - -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/jing-trang-20091111-build.patch b/SOURCES/jing-trang-20091111-build.patch new file mode 100644 index 0000000..bb77f92 --- /dev/null +++ b/SOURCES/jing-trang-20091111-build.patch @@ -0,0 +1,278 @@ +diff -up jing-trang-20091111/build.xml~ jing-trang-20091111/build.xml +--- jing-trang-20091111/build.xml~ 2009-02-01 06:49:17.000000000 +0200 ++++ jing-trang-20091111/build.xml 2010-11-30 22:04:06.391536980 +0200 +@@ -145,22 +145,19 @@ + + + +- + + +- + ++ com.thaiopensource.datatype.xsd.regex.xerces2"> ++ ++ + +- +- ++ ++ + + + +@@ -170,7 +167,7 @@ + destdir="${build.dir}/doccheck" + packagenames="${javadoc.packagenames}" + doclet="com.sun.tools.doclets.doccheck.DocCheck" +- docletpath="lib/doccheck.jar"/> ++ docletpath="${lib.dir}/doccheck.jar"/> + + + +@@ -290,7 +287,7 @@ + ++ classpath="${build.dir}/trang.jar:/usr/share/java/relaxngDatatype.jar"> + + + +@@ -360,7 +357,7 @@ + depends="version,googlecode.properties" + description="Upload files to Google Code. Run dist before this."> + ++ classpath="${lib.dir}/ant-googlecode.jar" name="gcupload"/> + + + +- ++ + + + + +- ++ + + + +@@ -111,7 +111,7 @@ + + + +- ++ + + + +@@ -151,10 +151,10 @@ + + + +- ++ + + +- ++ + + + +@@ -298,13 +298,18 @@ + + + +- ++ + +- ++ + + ++ + +- ++ ++ ++ ++ ++ + + + +@@ -373,7 +378,7 @@ + + + +- ++ + + + +@@ -402,8 +407,11 @@ + + + +- ++ + ++ ++ ++ + + + +diff -up jing-trang-20091111/mod/catalog/mod.xml~ jing-trang-20091111/mod/catalog/mod.xml +--- jing-trang-20091111/mod/catalog/mod.xml~ 2008-12-16 05:34:48.000000000 +0200 ++++ jing-trang-20091111/mod/catalog/mod.xml 2010-11-30 22:04:06.397536844 +0200 +@@ -3,5 +3,5 @@ + + + +- ++ + +diff -up jing-trang-20091111/mod/datatype/mod.xml~ jing-trang-20091111/mod/datatype/mod.xml +--- jing-trang-20091111/mod/datatype/mod.xml~ 2008-10-31 11:51:32.000000000 +0200 ++++ jing-trang-20091111/mod/datatype/mod.xml 2010-11-30 22:04:06.398536914 +0200 +@@ -1,4 +1,5 @@ + + ++ + + +diff -up jing-trang-20091111/mod/jing/mod.xml~ jing-trang-20091111/mod/jing/mod.xml +--- jing-trang-20091111/mod/jing/mod.xml~ 2009-11-11 14:24:06.000000000 +0200 ++++ jing-trang-20091111/mod/jing/mod.xml 2010-11-30 22:04:06.398536914 +0200 +@@ -21,8 +21,6 @@ + + + +- + + + +diff -up jing-trang-20091111/mod/pattern/mod.xml~ jing-trang-20091111/mod/pattern/mod.xml +--- jing-trang-20091111/mod/pattern/mod.xml~ 2008-12-07 05:37:23.000000000 +0200 ++++ jing-trang-20091111/mod/pattern/mod.xml 2010-11-30 22:04:06.399536705 +0200 +@@ -3,6 +3,7 @@ + + + ++ + + + +diff -up jing-trang-20091111/mod/regex/mod.xml~ jing-trang-20091111/mod/regex/mod.xml +--- jing-trang-20091111/mod/regex/mod.xml~ 2008-11-16 08:53:45.000000000 +0200 ++++ jing-trang-20091111/mod/regex/mod.xml 2010-11-30 22:04:06.399536705 +0200 +@@ -1,6 +1,6 @@ + + +- ++ + + +diff -up jing-trang-20091111/mod/rng-jaxp/mod.xml~ jing-trang-20091111/mod/rng-jaxp/mod.xml +--- jing-trang-20091111/mod/rng-jaxp/mod.xml~ 2008-12-07 05:37:23.000000000 +0200 ++++ jing-trang-20091111/mod/rng-jaxp/mod.xml 2010-11-30 22:04:06.400536775 +0200 +@@ -7,6 +7,7 @@ + + + ++ + + + +diff -up jing-trang-20091111/mod/rng-validate/mod.xml~ jing-trang-20091111/mod/rng-validate/mod.xml +--- jing-trang-20091111/mod/rng-validate/mod.xml~ 2008-12-16 05:38:57.000000000 +0200 ++++ jing-trang-20091111/mod/rng-validate/mod.xml 2010-11-30 22:04:06.401538521 +0200 +@@ -7,6 +7,7 @@ + + + ++ + + + +diff -up jing-trang-20091111/mod/schematron/mod.xml~ jing-trang-20091111/mod/schematron/mod.xml +--- jing-trang-20091111/mod/schematron/mod.xml~ 2009-02-01 06:49:17.000000000 +0200 ++++ jing-trang-20091111/mod/schematron/mod.xml 2010-11-30 22:04:06.407540061 +0200 +@@ -3,15 +3,11 @@ + + + +- ++ + +- +- + ++ lib="saxon"/> + +diff -up jing-trang-20091111/mod/trang/mod.xml~ jing-trang-20091111/mod/trang/mod.xml +--- jing-trang-20091111/mod/trang/mod.xml~ 2008-12-16 11:48:23.000000000 +0200 ++++ jing-trang-20091111/mod/trang/mod.xml 2010-11-30 22:04:06.408537058 +0200 +@@ -13,12 +13,12 @@ + + + ++ + + + + + +- + + + +diff -up jing-trang-20091111/mod/xerces/mod.xml~ jing-trang-20091111/mod/xerces/mod.xml +--- jing-trang-20091111/mod/xerces/mod.xml~ 2008-11-16 08:53:45.000000000 +0200 ++++ jing-trang-20091111/mod/xerces/mod.xml 2010-11-30 22:04:06.414536082 +0200 +@@ -1,7 +1,7 @@ + + + +- ++ + + + +diff -up jing-trang-20091111/mod/xsd-datatype/mod.xml~ jing-trang-20091111/mod/xsd-datatype/mod.xml +--- jing-trang-20091111/mod/xsd-datatype/mod.xml~ 2008-12-11 03:34:05.000000000 +0200 ++++ jing-trang-20091111/mod/xsd-datatype/mod.xml 2010-11-30 22:04:06.415537270 +0200 +@@ -2,6 +2,7 @@ + + + ++ + + + diff --git a/SOURCES/jing-trang-20091111-datatype-sample.patch b/SOURCES/jing-trang-20091111-datatype-sample.patch new file mode 100644 index 0000000..bb8ed05 --- /dev/null +++ b/SOURCES/jing-trang-20091111-datatype-sample.patch @@ -0,0 +1,20 @@ +--- jing-trang-20091111/datatype-sample/build.xml~ 2001-09-22 07:10:47.000000000 +0300 ++++ jing-trang-20091111/datatype-sample/build.xml 2010-11-30 22:49:33.352540838 +0200 +@@ -1,7 +1,7 @@ + + + +- ++ + + + +@@ -9,7 +9,7 @@ + + + +- ++ + + + diff --git a/SOURCES/jing-trang-20091111-saxon93-716177.patch b/SOURCES/jing-trang-20091111-saxon93-716177.patch new file mode 100644 index 0000000..c1c2dc2 --- /dev/null +++ b/SOURCES/jing-trang-20091111-saxon93-716177.patch @@ -0,0 +1,19 @@ +diff -up jing-trang-20091111/mod/schematron/src/main/com/thaiopensource/validate/schematron/NewSaxonSchemaReaderFactory.java~ jing-trang-20091111/mod/schematron/src/main/com/thaiopensource/validate/schematron/NewSaxonSchemaReaderFactory.java +--- jing-trang-20091111/mod/schematron/src/main/com/thaiopensource/validate/schematron/NewSaxonSchemaReaderFactory.java~ 2008-11-07 04:49:44.000000000 +0200 ++++ jing-trang-20091111/mod/schematron/src/main/com/thaiopensource/validate/schematron/NewSaxonSchemaReaderFactory.java 2011-06-24 11:58:33.065604560 +0300 +@@ -1,6 +1,6 @@ + package com.thaiopensource.validate.schematron; + +-import net.sf.saxon.FeatureKeys; ++import net.sf.saxon.lib.FeatureKeys; + import net.sf.saxon.TransformerFactoryImpl; + + import javax.xml.transform.TransformerFactory; +@@ -12,6 +12,7 @@ public class NewSaxonSchemaReaderFactory + } + + public void initTransformerFactory(TransformerFactory factory) { ++ factory.setAttribute(FeatureKeys.XSLT_VERSION, "2.0"); + factory.setAttribute(FeatureKeys.LINE_NUMBERING, Boolean.TRUE); + factory.setAttribute(FeatureKeys.VERSION_WARNING, Boolean.FALSE); + } diff --git a/SOURCES/jing-trang-20091111-xalan.patch b/SOURCES/jing-trang-20091111-xalan.patch new file mode 100644 index 0000000..ee0cd1f --- /dev/null +++ b/SOURCES/jing-trang-20091111-xalan.patch @@ -0,0 +1,132 @@ +Index: test/saxon.xsl +=================================================================== +--- test/saxon.xsl (revision 2353) ++++ test/saxon.xsl (working copy) +@@ -1,8 +1,8 @@ + +- ++ xmlns:xalan="http://xml.apache.org/xalan" ++ extension-element-prefixes="xalan"> + + + +@@ -10,21 +10,21 @@ + + + +- ++ + + + +- ++ + + + + +- ++ + + + + ++ xmlns:File="xalan://java.io.File"/> + + + +Index: mod/schematron/mod.xml +=================================================================== +--- mod/schematron/mod.xml (revision 2353) ++++ mod/schematron/mod.xml (working copy) +@@ -27,7 +27,7 @@ + +- ++ + + + +Index: mod/xsd-datatype/test/xsdtest.xml +=================================================================== +--- mod/xsd-datatype/test/xsdtest.xml (revision 2353) ++++ mod/xsd-datatype/test/xsdtest.xml (working copy) +@@ -739,7 +739,9 @@ + + x + x ++ + + + en +Index: build.xml +=================================================================== +--- build.xml (revision 2353) ++++ build.xml (working copy) +@@ -40,7 +40,7 @@ + + + +- ++ + + + +@@ -74,7 +74,7 @@ + includes="${moddir}/*/${modfile}" + filedirparameter="name" + destdir="."> +- ++ + +@@ -183,15 +183,15 @@ + + +- ++ + + +- ++ + + +- ++ + + + +Index: build.xsl +=================================================================== +--- build.xsl (revision 2353) ++++ build.xsl (working copy) +@@ -325,7 +325,7 @@ + +- ++ + + + +@@ -341,7 +341,7 @@ + + + +- ++ + + + diff --git a/SOURCES/jing-trang-prepare-tarball.sh b/SOURCES/jing-trang-prepare-tarball.sh new file mode 100755 index 0000000..388a10e --- /dev/null +++ b/SOURCES/jing-trang-prepare-tarball.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +set -e + +release=${1:-\ + $(rpm -q --specfile --qf='%{VERSION}\n' jing-trang.spec | head -n 1)} + +rm -rf jing-trang-$release +svn export http://jing-trang.googlecode.com/svn/tags/V$release \ + jing-trang-$release +tar cv jing-trang-$release --exclude "*.jar" --exclude gcj \ + --exclude mod/datatype/src/main/org | \ + xz --best > jing-trang-$release.tar.xz diff --git a/SPECS/jing-trang.spec b/SPECS/jing-trang.spec new file mode 100644 index 0000000..5c94918 --- /dev/null +++ b/SPECS/jing-trang.spec @@ -0,0 +1,198 @@ +# TODO: +# - Install dtdinst's schemas, XSL etc as non-doc and to system catalogs? +# - Drop isorelax and xerces license texts and references to them because +# our package does not actually contain them? + +Name: jing-trang +Version: 20091111 +Release: 12%{?dist} +Summary: Schema validation and conversion based on RELAX NG + +Group: Applications/Text +License: BSD +URL: http://code.google.com/p/jing-trang/ +# Source0 generated with Source99, upstream does not distribute archives +# containing the complete build system +Source0: %{name}-%{version}.tar.xz +Source99: %{name}-prepare-tarball.sh +# Applicable parts submitted upstream: +# http://code.google.com/p/jing-trang/issues/detail?id=129 +# http://code.google.com/p/jing-trang/issues/detail?id=130 +Patch0: %{name}-20091111-build.patch +# Saxon "HE" doesn't work for this, no old Saxon available, details in #655601 +Patch1: %{name}-20091111-xalan.patch +Patch2: %{name}-20091111-datatype-sample.patch +# http://code.google.com/p/jing-trang/source/detail?r=2356, #716177 +Patch3: %{name}-20091111-saxon93-716177.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch + +BuildRequires: ant-trax +BuildRequires: bsh +BuildRequires: isorelax +BuildRequires: java-devel-openjdk >= 1:1.6.0 +BuildRequires: java-javadoc +BuildRequires: javacc +BuildRequires: jpackage-utils +BuildRequires: qdox +BuildRequires: relaxngDatatype +BuildRequires: relaxngDatatype-javadoc +BuildRequires: saxon >= 9.3 +BuildRequires: testng +BuildRequires: xalan-j2 +BuildRequires: xerces-j2 +BuildRequires: xml-commons-resolver + +%description +%{summary}. + +%package -n jing +Summary: RELAX NG validator in Java +Group: Applications/Text +Requires: jpackage-utils +Requires: java >= 1.5.0 +Requires: relaxngDatatype +Requires: xerces-j2 +Requires: xml-commons-resolver + +%description -n jing +Jing is a RELAX NG validator written in Java. It implements the RELAX +NG 1.0 Specification, RELAX NG Compact Syntax, and parts of RELAX NG +DTD Compatibility, specifically checking of ID/IDREF/IDREFS. It also +has experimental support for schema languages other than RELAX NG; +specifically W3C XML Schema, Schematron 1.5, and Namespace Routing +Language. + +%package -n jing-javadoc +Summary: Javadoc API documentation for Jing +Group: Documentation +Requires: java-javadoc +Requires: relaxngDatatype-javadoc + +%description -n jing-javadoc +Javadoc API documentation for Jing. + +%package -n trang +Summary: Multi-format schema converter based on RELAX NG +Group: Applications/Text +Requires: jpackage-utils +Requires: java >= 1.5.0 +Requires: relaxngDatatype +Requires: xerces-j2 +Requires: xml-commons-resolver + +%description -n trang +Trang converts between different schema languages for XML. It +supports the following languages: RELAX NG (both XML and compact +syntax), XML 1.0 DTDs, W3C XML Schema. A schema written in any of the +supported schema languages can be converted into any of the other +supported schema languages, except that W3C XML Schema is supported +for output only, not for input. + +%package -n dtdinst +Summary: XML DTD to XML instance format converter +Group: Applications/Text +Requires: jpackage-utils +Requires: java >= 1.5.0 + +%description -n dtdinst +DTDinst is a program for converting XML DTDs into an XML instance +format. + + +%prep +%setup -q +%patch0 -p1 +%patch1 -p0 +%patch2 -p1 +%patch3 -p1 +sed -i -e 's/\r//g' lib/isorelax.copying.txt +find . -name "OldSaxon*.java" -delete # No "old" saxon available in Fedora + + +%build +CLASSPATH=$(build-classpath beust-jcommander xalan-j2 xalan-j2-serializer) \ +%ant -Dlib.dir=%{_javadir} -Dbuild.sysclasspath=last dist + + +%install +rm -rf $RPM_BUILD_ROOT *-%{version} + +install -dm 755 $RPM_BUILD_ROOT{%{_javadir},%{_javadocdir}} + +%{__unzip} build/dist/jing-%{version}.zip +install -Dpm 644 jing-%{version}/bin/jing.jar $RPM_BUILD_ROOT%{_javadir} +mv jing-%{version}/doc/api $RPM_BUILD_ROOT%{_javadocdir}/jing +ln -s %{_javadocdir}/jing jing-%{version}/doc/api +rm -f jing-%{version}/sample/datatype/datatype-sample.jar +%jpackage_script com.thaiopensource.relaxng.util.Driver "" "" jing:relaxngDatatype:xml-commons-resolver:xerces-j2 jing true + +%{__unzip} build/dist/trang-%{version}.zip +install -pm 644 trang-%{version}/trang.jar $RPM_BUILD_ROOT%{_javadir} +%jpackage_script com.thaiopensource.relaxng.translate.Driver "" "" trang:relaxngDatatype:xml-commons-resolver:xerces-j2 trang true + +%{__unzip} build/dist/dtdinst-%{version}.zip +install -pm 644 dtdinst-%{version}/dtdinst.jar $RPM_BUILD_ROOT%{_javadir} +%jpackage_script com.thaiopensource.xml.dtd.app.Driver "" "" dtdinst dtdinst true + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files -n jing +%defattr(-,root,root,-) +%doc jing-%{version}/{readme.html,doc,sample} +%{_bindir}/jing +%{_javadir}/jing.jar + +%files -n jing-javadoc +%defattr(-,root,root,-) +%doc jing-%{version}/doc/{copying.html,isorelax.copying.txt,xerces.copying.txt} +%{_javadocdir}/jing/ + +%files -n trang +%defattr(-,root,root,-) +%doc trang-%{version}/*.{txt,html} +%{_bindir}/trang +%{_javadir}/trang.jar + +%files -n dtdinst +%defattr(-,root,root,-) +%doc dtdinst-%{version}/{*.{txt,html,rng,xsl},example} +%{_bindir}/dtdinst +%{_javadir}/dtdinst.jar + + +%changelog +* Thu Feb 14 2013 Fedora Release Engineering - 20091111-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Thu Jul 19 2012 Fedora Release Engineering - 20091111-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Wed Jan 11 2012 Ville Skyttä - 20091111-10 +- Tweak java-devel build dep for buildability without Java 1.6. +- Fix build classpath with recent TestNG. + +* Fri Jun 24 2011 Ville Skyttä - 20091111-9 +- Apply upstream Saxon >= 9.3 patch (#716177). + +* Wed Feb 09 2011 Fedora Release Engineering - 20091111-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Thu Dec 2 2010 Ville Skyttä - 20091111-7 +- Put Xalan instead of Saxon in build path (regression in -6). +- Build with OpenJDK. + +* Tue Nov 30 2010 Ville Skyttä - 20091111-6 +- Address more comments/TODO's from #655601: +- Patch test suite generation to use Xalan. +- Include license texts in jing-javadoc. +- Make datatype-sample buildable out of the box, drop prebuilt jar. + +* Mon Nov 29 2010 Ville Skyttä - 20091111-5 +- Simplify doc installation (#655601). + +* Sun Nov 28 2010 Ville Skyttä - 20091111-4 +- First Fedora build, combining my earlier separate jing and trang packages.