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