jaxb/jaxb.spec

230 lines
8.1 KiB
RPMSpec
Raw Normal View History

Name: jaxb
2021-10-29 09:03:09 +00:00
Version: 2.3.5
Release: 7%{?dist}
Summary: JAXB Reference Implementation
# EDL-1.0 license is BSD-3-clause
License: BSD
URL: https://github.com/eclipse-ee4j/jaxb-ri
2021-10-29 09:03:09 +00:00
BuildArch: noarch
ExclusiveArch: %{java_arches} noarch
2021-10-29 09:03:09 +00:00
Source0: %{url}/archive/%{version}-RI/%{name}-%{version}.tar.gz
BuildRequires: maven-local
BuildRequires: mvn(com.sun.activation:jakarta.activation)
2021-10-29 09:03:09 +00:00
BuildRequires: mvn(com.sun.istack:istack-commons-runtime)
2022-02-21 08:18:26 +00:00
BuildRequires: mvn(com.sun.istack:istack-commons-tools)
BuildRequires: mvn(com.sun.xml.dtd-parser:dtd-parser)
2021-10-29 09:03:09 +00:00
BuildRequires: mvn(com.sun.xml.fastinfoset:FastInfoset)
BuildRequires: mvn(jakarta.activation:jakarta.activation-api)
BuildRequires: mvn(jakarta.xml.bind:jakarta.xml.bind-api)
2021-10-29 09:03:09 +00:00
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.ant:ant)
2022-02-21 08:18:26 +00:00
BuildRequires: mvn(org.apache.ant:ant-junit)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
2022-02-21 08:18:26 +00:00
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-assembly-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-dependency-plugin)
2022-02-21 08:18:26 +00:00
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires: mvn(org.jvnet.staxex:stax-ex)
2021-10-29 09:03:09 +00:00
BuildRequires: mvn(xml-resolver:xml-resolver)
2022-02-21 08:18:26 +00:00
BuildRequires: mvn(xmlunit:xmlunit)
%description
GlassFish JAXB Reference Implementation.
%package runtime
Summary: JAXB Runtime
%description runtime
JAXB (JSR 222) Reference Implementation
%package txw2
Summary: TXW2 Runtime
%description txw2
TXW is a library that allows you to write XML documents.
%package codemodel
Summary: Codemodel Core
%description codemodel
The core functionality of the CodeModel java source code generation
library.
%package codemodel-annotation-compiler
Summary: Codemodel Annotation Compiler
%description codemodel-annotation-compiler
The annotation compiler ant task for the CodeModel java source code
generation library.
%package xjc
Summary: JAXB XJC
%description xjc
JAXB Binding Compiler. Contains source code needed for binding
customization files into java sources. In other words: the tool to
generate java classes for the given xml representation.
%package rngom
Summary: RELAX NG Object Model/Parser
%description rngom
This package contains RELAX NG Object Model/Parser.
%package txwc2
Summary: TXW2 Compiler
%description txwc2
JAXB schema generator. The tool to generate XML schema based on java
classes.
%package xsom
Summary: XML Schema Object Model
%description xsom
XML Schema Object Model (XSOM) is a Java library that allows applications to
easily parse XML Schema documents and inspect information in them. It is
expected to be useful for applications that need to take XML Schema as an
input.
%package relaxng-datatype
Summary: RelaxNG Datatype
%description relaxng-datatype
RelaxNG Datatype library.
%prep
2022-10-26 12:18:02 +00:00
%autosetup -p1 -n jaxb-ri-%{version}-RI
2022-02-21 08:18:26 +00:00
# Delete precompiled jar and class files
2021-10-29 09:03:09 +00:00
find -type f '(' -iname '*.jar' -o -iname '*.class' ')' -print -delete
2022-10-26 12:19:06 +00:00
pushd jaxb-ri
# Remove unnecessary dep on ee4j parent pom (it adds nothing to our downstream builds)
2021-10-29 09:03:09 +00:00
%pom_remove_parent boms/bom external xsom codemodel
2022-10-26 12:18:02 +00:00
%pom_remove_plugin -r :buildnumber-maven-plugin
%pom_xpath_remove "pom:profiles/pom:profile[pom:id='default-profile']/pom:modules"
2022-02-21 08:18:26 +00:00
# SCM from parent: org.eclipse.ee4j:project:1.0.7
%pom_xpath_inject 'pom:project' \
'<scm>
<connection>scm:git:git@github.com:eclipse-ee4j/ee4j.git</connection>
<developerConnection>scm:git:git@github.com:eclipse-ee4j/ee4j.git</developerConnection>
<url>https://github.com/eclipse-ee4j/ee4j</url>
</scm>' external
2022-10-26 12:19:06 +00:00
# Fix dep on xml resolver
2022-02-21 08:18:26 +00:00
%pom_change_dep com.sun.org.apache.xml.internal:resolver xml-resolver:xml-resolver:1.2 xjc jxc
sed -i -e 's/com\.sun\.org\.apache\.xml\.internal\.resolver/org.apache.xml.resolver/' xjc/src/main/java/com/sun/tools/xjc/CatalogUtil.java
2022-10-26 12:19:06 +00:00
2021-10-29 09:03:09 +00:00
# Missing dep in Fedora: org.checkerframework:compiler
%pom_disable_module jxc
2022-10-26 12:19:06 +00:00
# Disable unneeded extra OSGi bundles
2022-02-21 08:18:26 +00:00
%pom_disable_module jxc bundles
2021-10-29 09:03:09 +00:00
%pom_disable_module osgi bundles
%pom_disable_module ri bundles
2022-02-21 08:18:26 +00:00
%pom_disable_module runtime bundles
%pom_disable_module xjc bundles
2022-10-26 12:19:06 +00:00
2022-02-21 08:18:26 +00:00
# lack of dependency when building documentation
%pom_disable_module release-documentation docs
2022-10-26 12:19:06 +00:00
2021-10-29 09:03:09 +00:00
# Compatibility
2022-02-21 08:18:26 +00:00
%mvn_alias com.sun.xml.bind.external:relaxng-datatype com.github.relaxng:relaxngDatatype relaxngDatatype:relaxngDatatype
%mvn_alias org.glassfish.jaxb:jaxb-runtime org.glassfish.jaxb:jaxb-core
2022-02-21 08:18:26 +00:00
%mvn_alias org.glassfish.jaxb:jaxb-xjc com.sun.xml.bind:jaxb-xjc
%mvn_alias org.glassfish.jaxb:xsom com.sun.xsom:xsom
2022-10-26 12:19:06 +00:00
# Don't install aggregator and parent poms
2022-02-21 08:18:26 +00:00
%mvn_package :jaxb-bom __noinstall
%mvn_package :jaxb-bom-ext __noinstall
%mvn_package :jaxb-bundles __noinstall
%mvn_package :jaxb-codemodel-parent __noinstall
%mvn_package :jaxb-docs-parent __noinstall
%mvn_package :jaxb-external-parent __noinstall
%mvn_package :jaxb-parent __noinstall
%mvn_package :jaxb-runtime-parent __noinstall
%mvn_package :jaxb-samples __noinstall
%mvn_package :jaxb-txw-parent __noinstall
%mvn_package :jaxb-www __noinstall
2022-10-26 12:19:06 +00:00
popd
%build
2022-10-26 12:19:06 +00:00
pushd jaxb-ri
2022-02-21 08:18:26 +00:00
%mvn_build -s -f -j -- -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8
2022-10-26 12:19:06 +00:00
popd
%install
2022-10-26 12:19:06 +00:00
pushd jaxb-ri
%mvn_install
2022-10-26 12:19:06 +00:00
popd
%files codemodel -f jaxb-ri/.mfiles-codemodel
%license LICENSE.md NOTICE.md
%files codemodel-annotation-compiler -f jaxb-ri/.mfiles-codemodel-annotation-compiler
%license LICENSE.md NOTICE.md
2022-02-21 08:18:26 +00:00
%files relaxng-datatype -f jaxb-ri/.mfiles-relaxng-datatype
%license LICENSE.md NOTICE.md
%files rngom -f jaxb-ri/.mfiles-rngom
%license LICENSE.md NOTICE.md
2022-02-21 08:18:26 +00:00
%files runtime -f jaxb-ri/.mfiles-jaxb-runtime
%license LICENSE.md NOTICE.md
%files txw2 -f jaxb-ri/.mfiles-txw2
%license LICENSE.md NOTICE.md
%files txwc2 -f jaxb-ri/.mfiles-txwc2
%license LICENSE.md NOTICE.md
2022-02-21 08:18:26 +00:00
%files xjc -f jaxb-ri/.mfiles-jaxb-xjc
%license LICENSE.md NOTICE.md
%files xsom -f jaxb-ri/.mfiles-xsom
2022-02-21 08:18:26 +00:00
%license LICENSE.md NOTICE.md
%changelog
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.5-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Fri Jul 08 2022 Jiri Vanek <jvanek@redhat.com> - 2.3.5-6
- Rebuilt for Drop i686 JDKs
2022-02-21 08:18:26 +00:00
* Mon Feb 21 2022 Didik Supriadi <didiksupriadi41@fedoraproject.org> - 2.3.5-5
- Remove subpackage that provides BOM/POM only
- Clean up spec (provides, obsoletes, etc.)
* Sat Feb 05 2022 Jiri Vanek <jvanek@redhat.com> - 2.3.5-4
- Rebuilt for java-17-openjdk as system jdk
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.5-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
2021-11-18 12:22:41 +00:00
* Wed Nov 17 2021 Didik Supriadi <didiksupriadi41@fedoraproject.org> - 2.3.5-2
- Remove workaround for SUREFIRE-1897
2021-10-29 09:03:09 +00:00
* Tue Oct 26 2021 Didik Supriadi <didiksupriadi41@fedoraproject.org> - 2.3.5-1
- Update to version 2.3.5
- Remove jp_minimal
- Disable tests
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.3-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Fri Feb 5 2021 Mat Booth <mat.booth@redhat.com> - 2.3.3-6
- Add obsoletes/provides and compat aliases for old relaxngDatatype package
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.3-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Tue Aug 18 2020 Mat Booth <mat.booth@redhat.com> - 2.3.3-4
- Restore deps on fi and stax-ex for full build mode
* Mon Aug 17 2020 Mat Booth <mat.booth@redhat.com> - 2.3.3-3
- Add obsoletes/provides and compat aliases for old xsom package
* Tue Aug 11 2020 Mat Booth <mat.booth@redhat.com> - 2.3.3-2
- Fastinfoset and Staxex are optional deps, this should be reflected in the OSGi
metadata
* Tue Aug 04 2020 Mat Booth <mat.booth@redhat.com> - 2.3.3-1
- Update to latest upstream release
- Disable javadocs for now, due to https://github.com/fedora-java/xmvn/issues/58
- Upstream moved to eclipse-ee4j and implementation license changed to BSD (EDL)
- Enable tests, don't unnecessarily ship parent poms
- Rename package from glassfish-jaxb