Initial build
Related: rhbz#2151173
This commit is contained in:
parent
6ab43e3bc5
commit
4a7c0557b2
1
.fmf/version
Normal file
1
.fmf/version
Normal file
@ -0,0 +1 @@
|
|||||||
|
1
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -0,0 +1 @@
|
|||||||
|
/jaxb-dtd-parser-1.5.0.tar.gz
|
7
gating.yaml
Normal file
7
gating.yaml
Normal 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
57
jaxb-dtd-parser.spec
Normal 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
15
plans/Smoke.java
Normal 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
17
plans/smoke.fmf
Normal 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
|
Loading…
Reference in New Issue
Block a user