Initial build

Related: rhbz#2140138
This commit is contained in:
Marián Konček 2023-01-30 11:55:07 +01:00
parent b5c9b50f80
commit a39fa5bba6
7 changed files with 115 additions and 0 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

1
.gitignore vendored
View File

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

71
jaxb-fi.spec Normal file
View File

@ -0,0 +1,71 @@
Name: jaxb-fi
Version: 2.1.0
Release: 1%{?dist}
Summary: Implementation of the Fast Infoset Standard for Binary XML
# jaxb-fi is licensed ASL 2.0 and EDL-1.0 (BSD)
# bundled org.apache.xerces.util.XMLChar.java is licensed ASL 1.1
License: ASL 2.0 and BSD and ASL 1.1
URL: https://github.com/eclipse-ee4j/jaxb-fi
BuildArch: noarch
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires: maven-local
BuildRequires: mvn(jakarta.activation:jakarta.activation-api:2.1.0)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-assembly-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-dependency-plugin)
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
%description
Fast Infoset Project, an Open Source implementation of the Fast Infoset
Standard for Binary XML.
The Fast Infoset specification (ITU-T Rec. X.891 | ISO/IEC 24824-1)
describes an open, standards-based "binary XML" format that is based on
the XML Information Set.
%package -n FastInfoset
Summary: FastInfoset
%description -n FastInfoset
%{summary}.
%package -n FastInfosetRoundTripTests
Summary: FastInfoset Roundtrip Tests
%description -n FastInfosetRoundTripTests
%{summary}.
%prep
%setup -q
find -name 'module-info.java' -type f -delete
%pom_remove_parent
%pom_disable_module samples
%pom_disable_module utilities
%pom_remove_plugin :buildnumber-maven-plugin
%pom_remove_plugin :glassfish-copyright-maven-plugin
%pom_remove_plugin :maven-enforcer-plugin
%mvn_package :fastinfoset-project __noinstall
%build
# Javadoc fails: error: too many module declarations found
%mvn_build -s -j
%install
%mvn_install
%files -n FastInfoset -f .mfiles-FastInfoset
%license LICENSE NOTICE.md
%doc README.md
%files -n FastInfosetRoundTripTests -f .mfiles-FastInfosetRoundTripTests
%license LICENSE NOTICE.md
%changelog
* Tue Jan 17 2023 Marian Koncek <mkoncek@redhat.com> - 2.1.0-1
- Initial build

17
plans/Smoke.java Normal file
View File

@ -0,0 +1,17 @@
import com.sun.xml.fastinfoset.EncodingConstants;
import com.sun.xml.fastinfoset.stax.StAXDocumentParser;
import com.sun.xml.fastinfoset.stax.StAXDocumentSerializer;
import org.jvnet.fastinfoset.EncodingAlgorithmIndexes;
import org.jvnet.fastinfoset.VocabularyApplicationData;
public class Smoke
{
public static void main(String[] args)
{
System.out.println(EncodingConstants.class.getCanonicalName());
System.out.println(StAXDocumentParser.class.getCanonicalName());
System.out.println(StAXDocumentSerializer.class.getCanonicalName());
System.out.println(EncodingAlgorithmIndexes.class.getCanonicalName());
System.out.println(VocabularyApplicationData.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.fastinfoset:FastInfoset)"
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-fi-2.1.0.tar.gz) = 807926fe90f97a72e5d6f8abcbad8639b424d7938ab2afc7dc8107070db216167aada859acd041ba17566a33e277330d9ee51bdc10d16aa19a6ea07d4ae858aa