Initial build

Related: rhbz#2151173
This commit is contained in:
Marián Konček 2023-01-30 12:10:18 +01:00
parent 6ab43e3bc5
commit 4a7c0557b2
7 changed files with 99 additions and 0 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

1
.gitignore vendored
View File

@ -0,0 +1 @@
/jaxb-dtd-parser-1.5.0.tar.gz

7
gating.yaml Normal file
View File

@ -0,0 +1,7 @@
--- !Policy
product_versions:
- rhel-9
decision_contexts:
- osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

57
jaxb-dtd-parser.spec Normal file
View File

@ -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 <mkoncek@redhat.com> - 1.5.0-1
- Initial build

15
plans/Smoke.java Normal file
View File

@ -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());
}
}

17
plans/smoke.fmf Normal file
View File

@ -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

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (jaxb-dtd-parser-1.5.0.tar.gz) = 5a609c6535bc538014830d933172fc280127c631bd480d5b62dce606657e18f2904feb84fd4f20af0ba72699e75c580d101e7da26182b0e752dc90d70716b831