commit eac41ecced99a7a3b8d9c80c6768a725acbcec72 Author: MSVSphere Packaging Team Date: Fri Oct 25 17:11:11 2024 +0300 import msv-2022.7-5.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5abd451 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/msv-2022.7.tar.gz diff --git a/.msv.metadata b/.msv.metadata new file mode 100644 index 0000000..3905664 --- /dev/null +++ b/.msv.metadata @@ -0,0 +1 @@ +f23a4871b6f63406dec3e6e7fb0c7dcafa905565 SOURCES/msv-2022.7.tar.gz diff --git a/SOURCES/0001-Disable-Apache-XercesImpl.patch b/SOURCES/0001-Disable-Apache-XercesImpl.patch new file mode 100644 index 0000000..0f8f777 --- /dev/null +++ b/SOURCES/0001-Disable-Apache-XercesImpl.patch @@ -0,0 +1,24 @@ +From a580f124197fcc2a62875e43100cd35b1fc4329e Mon Sep 17 00:00:00 2001 +From: Marian Koncek +Date: Thu, 17 Aug 2023 09:30:08 +0200 +Subject: [PATCH] Disable Apache XercesImpl + +--- + .../main/java/com/sun/msv/datatype/xsd/regex/RegExpFactory.java | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/xsdlib/src/main/java/com/sun/msv/datatype/xsd/regex/RegExpFactory.java b/xsdlib/src/main/java/com/sun/msv/datatype/xsd/regex/RegExpFactory.java +index 4a4c4be..cdeab93 100644 +--- a/xsdlib/src/main/java/com/sun/msv/datatype/xsd/regex/RegExpFactory.java ++++ b/xsdlib/src/main/java/com/sun/msv/datatype/xsd/regex/RegExpFactory.java +@@ -42,7 +42,6 @@ public abstract class RegExpFactory { + public static RegExpFactory createFactory() { + String[] classList = new String[] { + "com.sun.msv.datatype.regexp.InternalImpl", +- "com.sun.msv.datatype.xsd.regex.XercesImpl", + "com.sun.msv.datatype.xsd.regex.JDKImpl" + }; + +-- +2.41.0 + diff --git a/SOURCES/generate-tarball.sh b/SOURCES/generate-tarball.sh new file mode 100755 index 0000000..fe7bf22 --- /dev/null +++ b/SOURCES/generate-tarball.sh @@ -0,0 +1,29 @@ +#!/bin/bash +set -e + +name=msv +version="$(sed -n 's/Version:\s*//p' ./*.spec)" + +# RETRIEVE +wget "https://github.com/xmlark/msv/archive/${name}-${version}/${name}-${version}.tar.gz" -O "${name}-${version}.orig.tar.gz" + +rm -rf tarball-tmp +mkdir tarball-tmp +pushd tarball-tmp +tar -xf "../${name}-${version}.orig.tar.gz" +mv "msv-msv-${version}" "${name}-${version}" + +pushd "${name}-${version}" +mv docs/xsdlib/Apache-LICENSE-1.1.txt . +mv docs/xsdlib/license.txt . +mv docs/xsdlib/README.md README-xsdlib.md + +# CLEAN TARBALL +find . -mindepth 1 -maxdepth 1 -type d ! -name 'xsdlib' -exec rm -rf {} + +rm -rf xsdlib/src/test + +popd + +tar -czf "../${name}-${version}.tar.gz" ./* +popd +rm -r tarball-tmp "${name}-${version}.orig.tar.gz" diff --git a/SPECS/msv.spec b/SPECS/msv.spec new file mode 100644 index 0000000..2e8184b --- /dev/null +++ b/SPECS/msv.spec @@ -0,0 +1,107 @@ +Name: msv +Version: 2022.7 +Release: 5%{?dist} +Summary: Multi-Schema Validator Toolkit +# License breakdown +# Apache-1.1 +# * xsdlib/src/main/java/com/sun/msv/datatype/regexp - All files except for InternalImpl.java +# BSD-3-Clause-Sun +# * pom.xml +# * xsdlib/src/main/java/com/sun/msv/datatype/regexp/InternalImpl.java +# BSD-3-Clause-Sun implied by docs/xsdlib/license.txt of the original tarball +# * xsdlib/src/main/java/com/sun/msv/datatype/xsd/CommandLineTester.java +# * xsdlib/src/main/resources/com/sun/msv/datatype/xsd/Messages.properties +# * xsdlib/src/main/resources/com/sun/msv/datatype/xsd/Messages_ja.properties +# BSD-3-Clause - All other .java files +License: Apache-1.1 AND BSD-3-Clause AND BSD-3-Clause-Sun +URL: https://xmlark.github.io/msv/ +BuildArch: noarch +ExclusiveArch: %{java_arches} noarch + +# ./generate-tarball.sh +Source0: %{name}-%{version}.tar.gz + +Source1: generate-tarball.sh + +Patch1: 0001-Disable-Apache-XercesImpl.patch + +BuildRequires: maven-local +BuildRequires: mvn(junit:junit) +BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) +BuildRequires: mvn(org.apache.maven.plugins:maven-assembly-plugin) +BuildRequires: mvn(org.jdom:jdom2) +BuildRequires: mvn(relaxngDatatype:relaxngDatatype) + +%description +The Multi Schema Validation toolkit is a Java based toolkit consisting of 8 +different submodules. The core module is the Multi-Schema XML Validator (MSV) +for the validation of XML documents against several kinds of XML schemata The +core supports RELAX NG, RELAX Namespace, RELAX Core, TREX, XML DTDs, and a +subset of XML Schema Part 1. + +%package javadoc +Summary: API documentation for %{name} + +%description javadoc +This package provides %{summary}. + +%package xsdlib +Summary: Java implementation of W3C’s XML Schema Part 2 + +%description xsdlib +MSV XML Datatypes Library, Java implementation of W3C’s XML Schema Part 2, is +intended for use with applications that incorporate XML Schema Part 2. + +%prep +%setup -q + +# Disable runtime dependency on Apache Xerces +%patch 1 -p1 +rm xsdlib/src/main/java/com/sun/msv/datatype/xsd/regex/XercesImpl.java + +%pom_xpath_remove 'pom:project/pom:modules' +%pom_xpath_inject 'pom:project' 'xsdlib' + +%pom_xpath_remove 'pom:build/pom:extensions' + +%pom_remove_dep org.apache.maven.scm:maven-scm-provider-gitexe +%pom_remove_dep xerces:xercesImpl xsdlib + +%pom_remove_plugin org.codehaus.mojo:flatten-maven-plugin +%pom_remove_plugin -r :maven-javadoc-plugin + +# We only build xsdlib +%mvn_package net.java.dev.msv:msv __noinstall + +%build +%mvn_build -s + +%install +%mvn_install + +%files javadoc -f .mfiles-javadoc +%license Apache-LICENSE-1.1.txt license.txt + +%files xsdlib -f .mfiles-xsdlib +%doc README.md README-xsdlib.md +%license Apache-LICENSE-1.1.txt license.txt + +%changelog +* Fri Oct 25 2024 MSVSphere Packaging Team - 2022.7-5 +- Rebuilt for MSVSphere 10 + +* Thu Aug 01 2024 Troy Dawson - 2022.7-5 +- Bump release for Aug 2024 java mass rebuild + +* Mon Jun 24 2024 Troy Dawson - 2022.7-4 +- Bump release for June 2024 mass rebuild + +* Thu Jan 25 2024 Fedora Release Engineering - 2022.7-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Jan 21 2024 Fedora Release Engineering - 2022.7-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Aug 07 2023 Marian Koncek - 2022.7-1 +- Package unretired +- Update to upstream version 2022.7