dcf72d
Name:           jaxb
dcf72d
Version:        4.0.2
dcf72d
Release:        1%{?dist}
dcf72d
Summary:        JAXB Reference Implementation
dcf72d
# EDL-1.0 license is BSD-3-clause
dcf72d
License:        BSD
dcf72d
URL:            https://github.com/eclipse-ee4j/jaxb-ri
dcf72d
BuildArch:      noarch
dcf72d
dcf72d
Source0:        %{url}/archive/%{version}-RI/%{name}-%{version}.tar.gz
dcf72d
dcf72d
BuildRequires:  maven-local
dcf72d
BuildRequires:  mvn(com.sun.istack:istack-commons-runtime)
dcf72d
BuildRequires:  mvn(com.sun.istack:istack-commons-tools)
dcf72d
BuildRequires:  mvn(com.sun.xml.dtd-parser:dtd-parser)
dcf72d
BuildRequires:  mvn(com.sun.xml.fastinfoset:FastInfoset)
dcf72d
BuildRequires:  mvn(jakarta.activation:jakarta.activation-api:2.1.0)
dcf72d
BuildRequires:  mvn(jakarta.xml.bind:jakarta.xml.bind-api:4.0.0)
dcf72d
BuildRequires:  mvn(org.apache.ant:ant)
dcf72d
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
dcf72d
BuildRequires:  mvn(org.apache.maven.plugins:maven-assembly-plugin)
dcf72d
BuildRequires:  mvn(org.apache.maven.plugins:maven-dependency-plugin)
dcf72d
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)
dcf72d
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)
dcf72d
BuildRequires:  mvn(org.jvnet.staxex:stax-ex)
dcf72d
dcf72d
%description
dcf72d
GlassFish JAXB Reference Implementation.
dcf72d
dcf72d
%package codemodel
dcf72d
Summary:        Codemodel Core
dcf72d
dcf72d
%description codemodel
dcf72d
The core functionality of the CodeModel java source code generation library.
dcf72d
dcf72d
%package codemodel-annotation-compiler
dcf72d
Summary:        Codemodel Annotation Compiler
dcf72d
dcf72d
%description codemodel-annotation-compiler
dcf72d
The annotation compiler ant task for the CodeModel java source code generation
dcf72d
library.
dcf72d
dcf72d
%package relaxng-datatype
dcf72d
Summary:        RelaxNG Datatype
dcf72d
dcf72d
%description relaxng-datatype
dcf72d
RelaxNG Datatype library.
dcf72d
dcf72d
%package xsom
dcf72d
Summary:        XML Schema Object Model
dcf72d
dcf72d
%description xsom
dcf72d
XML Schema Object Model (XSOM) is a Java library that allows applications to
dcf72d
easily parse XML Schema documents and inspect information in them. It is
dcf72d
expected to be useful for applications that need to take XML Schema as an
dcf72d
input.
dcf72d
dcf72d
%package core
dcf72d
Summary:        JAXB Core
dcf72d
dcf72d
%description core
dcf72d
JAXB Core module. Contains sources required by XJC, JXC and Runtime modules.
dcf72d
dcf72d
%package rngom
dcf72d
# pom.xml and module-info.java are under BSD, rest is MIT
dcf72d
License:        MIT and BSD
dcf72d
Summary:        RELAX NG Object Model/Parser
dcf72d
dcf72d
%description rngom
dcf72d
This package contains RELAX NG Object Model/Parser.
dcf72d
dcf72d
%package runtime
dcf72d
Summary:        JAXB Runtime
dcf72d
dcf72d
%description runtime
dcf72d
JAXB (JSR 222) Reference Implementation
dcf72d
dcf72d
%package txw2
dcf72d
Summary:        TXW2 Runtime
dcf72d
dcf72d
%description txw2
dcf72d
TXW is a library that allows you to write XML documents.
dcf72d
dcf72d
%package xjc
dcf72d
# jaxb-ri/xjc/src/main/java/com/sun/tools/xjc/reader/internalizer/NamespaceContextImpl.java is under ASL 2.0
dcf72d
License:        BSD and ASL 2.0
dcf72d
Summary:        JAXB XJC
dcf72d
dcf72d
%description xjc
dcf72d
JAXB Binding Compiler. Contains source code needed for binding customization
dcf72d
files into java sources. In other words: the tool to generate java classes for
dcf72d
the given xml representation.
dcf72d
dcf72d
%package txwc2
dcf72d
Summary:        TXW2 Compiler
dcf72d
dcf72d
%description txwc2
dcf72d
JAXB schema generator. The tool to generate XML schema based on java classes.
dcf72d
dcf72d
%prep
dcf72d
%setup -q -n jaxb-ri-%{version}-RI
dcf72d
dcf72d
pushd jaxb-ri
dcf72d
dcf72d
find -name 'module-info.java' -type f -delete
dcf72d
dcf72d
# Remove ee4j parent
dcf72d
%pom_remove_parent boms/bom codemodel external xsom
dcf72d
dcf72d
%pom_remove_plugin -r :buildnumber-maven-plugin
dcf72d
%pom_remove_plugin -r :maven-enforcer-plugin
dcf72d
dcf72d
# Skip docs generation because of missing dependencies
dcf72d
%pom_xpath_remove "pom:profiles/pom:profile[pom:id='default-profile']/pom:modules"
dcf72d
dcf72d
# Disable unneeded extra OSGi bundles
dcf72d
%pom_disable_module bundles
dcf72d
dcf72d
# Missing dependency on org.checkerframework:compiler
dcf72d
%pom_disable_module jxc
dcf72d
dcf72d
%pom_remove_dep org.eclipse.angus:angus-activation core
dcf72d
dcf72d
# Don't install aggregator and parent poms
dcf72d
%mvn_package :jaxb-bom __noinstall
dcf72d
%mvn_package :jaxb-bom-ext __noinstall
dcf72d
%mvn_package :jaxb-bundles __noinstall
dcf72d
%mvn_package :jaxb-codemodel-parent __noinstall
dcf72d
%mvn_package :jaxb-docs-parent __noinstall
dcf72d
%mvn_package :jaxb-external-parent __noinstall
dcf72d
%mvn_package :jaxb-parent __noinstall
dcf72d
%mvn_package :jaxb-runtime-parent __noinstall
dcf72d
%mvn_package :jaxb-samples __noinstall
dcf72d
%mvn_package :jaxb-txw-parent __noinstall
dcf72d
%mvn_package :jaxb-www __noinstall
dcf72d
popd
dcf72d
dcf72d
%build
dcf72d
pushd jaxb-ri
dcf72d
%mvn_build -s -f -j
dcf72d
popd
dcf72d
dcf72d
%install
dcf72d
pushd jaxb-ri
dcf72d
%mvn_install
dcf72d
popd
dcf72d
dcf72d
%files codemodel -f jaxb-ri/.mfiles-codemodel
dcf72d
%license LICENSE.md NOTICE.md
dcf72d
%files codemodel-annotation-compiler -f jaxb-ri/.mfiles-codemodel-annotation-compiler
dcf72d
%files relaxng-datatype -f jaxb-ri/.mfiles-relaxng-datatype
dcf72d
%license LICENSE.md NOTICE.md
dcf72d
%files xsom -f jaxb-ri/.mfiles-xsom
dcf72d
%files core -f jaxb-ri/.mfiles-jaxb-core
dcf72d
%files rngom -f jaxb-ri/.mfiles-rngom
dcf72d
%files runtime -f jaxb-ri/.mfiles-jaxb-runtime
dcf72d
%files txw2 -f jaxb-ri/.mfiles-txw2
dcf72d
%license LICENSE.md NOTICE.md
dcf72d
%files txwc2 -f jaxb-ri/.mfiles-txwc2
dcf72d
%files xjc -f jaxb-ri/.mfiles-jaxb-xjc
dcf72d
dcf72d
%changelog
dcf72d
* Tue Feb 07 2023 Marian Koncek <mkoncek@redhat.com> - 4.0.2-1
dcf72d
- Update to upstream version 4.0.2
dcf72d
dcf72d
* Tue Jan 17 2023 Marian Koncek <mkoncek@redhat.com> - 4.0.1-1
dcf72d
- Initial build