diff --git a/.fmf/version b/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/.gitignore b/.gitignore index e69de29..ddcae78 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/jaxb-dtd-parser-1.5.0.tar.gz diff --git a/.jaxb-dtd-parser.metadata b/.jaxb-dtd-parser.metadata new file mode 100644 index 0000000..e6ab1a5 --- /dev/null +++ b/.jaxb-dtd-parser.metadata @@ -0,0 +1 @@ +dbb6737eb19bf2878a4c40a786b610f75adeec7b jaxb-dtd-parser-1.5.0.tar.gz diff --git a/gating.yaml b/gating.yaml new file mode 100644 index 0000000..f1bb5dd --- /dev/null +++ b/gating.yaml @@ -0,0 +1,7 @@ +--- !Policy +product_versions: + - rhel-9 +decision_contexts: + - osci_compose_gate +rules: + - !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional} diff --git a/jaxb-dtd-parser.spec b/jaxb-dtd-parser.spec new file mode 100644 index 0000000..35312d2 --- /dev/null +++ b/jaxb-dtd-parser.spec @@ -0,0 +1,57 @@ +Name: jaxb-dtd-parser +Version: 1.5.0 +Release: 1%{?dist} +Summary: SAX-like API for parsing XML DTDs +License: BSD +URL: https://github.com/eclipse-ee4j/jaxb-dtd-parser +BuildArch: noarch + +Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz + +BuildRequires: maven-local +BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) +BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin) + +%description +SAX-like API for parsing XML DTDs. + +%package javadoc +Summary: API documentation for %{name} + +%description javadoc +API documentation for %{name}. + +%prep +%setup -q + +pushd dtd-parser + +find -name 'module-info.java' -type f -delete + +%pom_remove_parent + +%pom_remove_plugin :buildnumber-maven-plugin +%pom_remove_plugin :glassfish-copyright-maven-plugin +%pom_remove_plugin :maven-enforcer-plugin +popd + +%build +pushd dtd-parser +%mvn_build +popd + +%install +pushd dtd-parser +%mvn_install +popd + +%files -f dtd-parser/.mfiles +%license LICENSE.md NOTICE.md +%doc README.md + +%files javadoc -f dtd-parser/.mfiles-javadoc +%license LICENSE.md NOTICE.md + +%changelog +* Tue Jan 17 2023 Marian Koncek - 1.5.0-1 +- Initial build diff --git a/plans/Smoke.java b/plans/Smoke.java new file mode 100644 index 0000000..4762ea3 --- /dev/null +++ b/plans/Smoke.java @@ -0,0 +1,15 @@ +import com.sun.xml.dtdparser.DTDEventListener; +import com.sun.xml.dtdparser.DTDHandlerBase; +import com.sun.xml.dtdparser.DTDParser; +import com.sun.xml.dtdparser.InputEntity; + +public class Smoke +{ + public static void main(String[] args) + { + System.out.println(DTDEventListener.class.getCanonicalName()); + System.out.println(DTDHandlerBase.class.getCanonicalName()); + System.out.println(DTDParser.class.getCanonicalName()); + System.out.println(InputEntity.class.getCanonicalName()); + } +} diff --git a/plans/smoke.fmf b/plans/smoke.fmf new file mode 100644 index 0000000..b6f90d0 --- /dev/null +++ b/plans/smoke.fmf @@ -0,0 +1,17 @@ +summary: Basic smoke test +prepare: + how: install + package: + - java-11-openjdk-devel + - xmvn-tools +discover: + how: shell + tests: + - name: /smoke/classpath-import + test: | + CLASSPATH+=":$(xmvn-resolve com.sun.xml.dtd-parser:dtd-parser)" + export CLASSPATH + /usr/lib/jvm/java-11-openjdk/bin/javac plans/Smoke.java + /usr/lib/jvm/java-11-openjdk/bin/java -cp "${CLASSPATH}:plans" Smoke +execute: + how: tmt diff --git a/sources b/sources new file mode 100644 index 0000000..bf7037a --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (jaxb-dtd-parser-1.5.0.tar.gz) = 5a609c6535bc538014830d933172fc280127c631bd480d5b62dce606657e18f2904feb84fd4f20af0ba72699e75c580d101e7da26182b0e752dc90d70716b831