Initial build

Related: rhbz#2161588
This commit is contained in:
Marián Konček 2023-01-30 11:35:13 +01:00
parent c10e868ee7
commit 47893ab83e
7 changed files with 98 additions and 0 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

1
.gitignore vendored
View File

@ -0,0 +1 @@
/jaxb-api-4.0.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}

54
jaxb-api4.spec Normal file
View File

@ -0,0 +1,54 @@
Name: jaxb-api4
Version: 4.0.0
Release: 1%{?dist}
Summary: Jakarta XML Binding API
License: BSD
URL: https://github.com/eclipse-ee4j/jaxb-api
BuildArch: noarch
Source0: %{url}/archive/%{version}/jaxb-api-%{version}.tar.gz
BuildRequires: maven-local
BuildRequires: mvn(jakarta.activation:jakarta.activation-api:2.1.0)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
%description
The Jakarta XML Binding provides an API and tools that automate the mapping
between XML documents and Java objects.
%package javadoc
Summary: Javadoc for %{name}
%description javadoc
This package contains javadoc for %{name}.
%prep
%setup -q -n jaxb-api-%{version}
find -name 'module-info.java' -type f -delete
# Remove unnecessary dependency on parent POM
%pom_remove_parent
%pom_remove_plugin -r :buildnumber-maven-plugin
%pom_remove_plugin -r :glassfish-copyright-maven-plugin
%pom_remove_plugin -r :maven-enforcer-plugin
%mvn_compat_version jakarta*: 4 %{version}
%build
%mvn_build
%install
%mvn_install
%files -f .mfiles
%license LICENSE.md NOTICE.md
%files javadoc -f .mfiles-javadoc
%license LICENSE.md NOTICE.md
%changelog
* Tue Jan 17 2023 Marian Koncek <mkoncek@redhat.com> - 4.0.0-1
- Initial build

17
plans/Smoke.java Normal file
View File

@ -0,0 +1,17 @@
import jakarta.xml.bind.JAXB;
import jakarta.xml.bind.JAXBContext;
import jakarta.xml.bind.JAXBElement;
import jakarta.xml.bind.Marshaller;
import jakarta.xml.bind.Unmarshaller;
public class Smoke
{
public static void main(String[] args)
{
System.out.println(JAXB.class.getCanonicalName());
System.out.println(JAXBContext.class.getCanonicalName());
System.out.println(JAXBElement.class.getCanonicalName());
System.out.println(Marshaller.class.getCanonicalName());
System.out.println(Unmarshaller.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 jakarta.xml.bind:jakarta.xml.bind-api:4)"
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-api-4.0.0.tar.gz) = eb4eab396b894ab801433e0e31f93a4980f3913176a1960591a69e4fd55f10f316a7edb712df323c59f7dc9ca6cebacb7257be06aec72446059dd8b93c6de175