Blame SPECS/jaxb.spec

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