Blame SPECS/jaxb.spec

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