Change license, remove bootstrap macro

This commit is contained in:
Marian Koncek 2023-02-08 11:39:28 +01:00
parent 30b7745077
commit 4a860819c4

View File

@ -1,8 +1,6 @@
%bcond_with bootstrap
Name: jaxb Name: jaxb
Version: 4.0.1 Version: 4.0.1
Release: 3%{?dist} Release: 4%{?dist}
Summary: JAXB Reference Implementation Summary: JAXB Reference Implementation
# EDL-1.0 license is BSD-3-clause # EDL-1.0 license is BSD-3-clause
License: BSD License: BSD
@ -13,22 +11,19 @@ ExclusiveArch: %{java_arches} noarch
Source0: %{url}/archive/%{version}-RI/%{name}-%{version}.tar.gz Source0: %{url}/archive/%{version}-RI/%{name}-%{version}.tar.gz
BuildRequires: maven-local BuildRequires: maven-local
BuildRequires: mvn(org.apache.ant:ant)
BuildRequires: mvn(org.apache.maven.plugins:maven-assembly-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-dependency-plugin)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
%if %{without bootstrap}
BuildRequires: mvn(com.sun.istack:istack-commons-runtime) BuildRequires: mvn(com.sun.istack:istack-commons-runtime)
BuildRequires: mvn(com.sun.istack:istack-commons-tools) BuildRequires: mvn(com.sun.istack:istack-commons-tools)
BuildRequires: mvn(com.sun.xml.dtd-parser:dtd-parser) BuildRequires: mvn(com.sun.xml.dtd-parser:dtd-parser)
BuildRequires: mvn(com.sun.xml.fastinfoset:FastInfoset) BuildRequires: mvn(com.sun.xml.fastinfoset:FastInfoset)
BuildRequires: mvn(jakarta.activation:jakarta.activation-api) BuildRequires: mvn(jakarta.activation:jakarta.activation-api)
BuildRequires: mvn(jakarta.xml.bind:jakarta.xml.bind-api) BuildRequires: mvn(jakarta.xml.bind:jakarta.xml.bind-api)
BuildRequires: mvn(org.apache.ant:ant)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-assembly-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-dependency-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) BuildRequires: mvn(org.jvnet.staxex:stax-ex)
BuildRequires: mvn(xml-resolver:xml-resolver)
%endif
%description %description
GlassFish JAXB Reference Implementation. GlassFish JAXB Reference Implementation.
@ -61,7 +56,6 @@ 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 expected to be useful for applications that need to take XML Schema as an
input. input.
%if %{without bootstrap}
%package core %package core
Summary: JAXB Core Summary: JAXB Core
@ -69,6 +63,8 @@ Summary: JAXB Core
JAXB Core module. Contains sources required by XJC, JXC and Runtime modules. JAXB Core module. Contains sources required by XJC, JXC and Runtime modules.
%package rngom %package rngom
# pom.xml and module-info.java are under BSD, rest is MIT
License: MIT and BSD
Summary: RELAX NG Object Model/Parser Summary: RELAX NG Object Model/Parser
%description rngom %description rngom
@ -87,6 +83,8 @@ Summary: TXW2 Runtime
TXW is a library that allows you to write XML documents. TXW is a library that allows you to write XML documents.
%package xjc %package xjc
# jaxb-ri/xjc/src/main/java/com/sun/tools/xjc/reader/internalizer/NamespaceContextImpl.java is under ASL 2.0
License: BSD and ASL 2.0
Summary: JAXB XJC Summary: JAXB XJC
%description xjc %description xjc
@ -99,7 +97,6 @@ Summary: TXW2 Compiler
%description txwc2 %description txwc2
JAXB schema generator. The tool to generate XML schema based on java classes. JAXB schema generator. The tool to generate XML schema based on java classes.
%endif
%prep %prep
%setup -q -n jaxb-ri-%{version}-RI %setup -q -n jaxb-ri-%{version}-RI
@ -115,16 +112,6 @@ pushd jaxb-ri
# Skip docs generation because of missing dependencies # Skip docs generation because of missing dependencies
%pom_xpath_remove "pom:profiles/pom:profile[pom:id='default-profile']/pom:modules" %pom_xpath_remove "pom:profiles/pom:profile[pom:id='default-profile']/pom:modules"
%if %{with bootstrap}
%pom_xpath_set 'pom:modules' '
<module>codemodel</module>
<module>external</module>
<module>xsom</module>
'
%pom_xpath_set 'pom:modules' '
<module>relaxng-datatype</module>
' external
%else
# Disable unneeded extra OSGi bundles # Disable unneeded extra OSGi bundles
%pom_disable_module bundles %pom_disable_module bundles
@ -132,7 +119,6 @@ pushd jaxb-ri
%pom_disable_module jxc %pom_disable_module jxc
%pom_remove_dep org.eclipse.angus:angus-activation core %pom_remove_dep org.eclipse.angus:angus-activation core
%endif
# Don't install aggregator and parent poms # Don't install aggregator and parent poms
%mvn_package :jaxb-bom __noinstall %mvn_package :jaxb-bom __noinstall
@ -164,7 +150,6 @@ popd
%files relaxng-datatype -f jaxb-ri/.mfiles-relaxng-datatype %files relaxng-datatype -f jaxb-ri/.mfiles-relaxng-datatype
%license LICENSE.md NOTICE.md %license LICENSE.md NOTICE.md
%files xsom -f jaxb-ri/.mfiles-xsom %files xsom -f jaxb-ri/.mfiles-xsom
%if %{without bootstrap}
%files core -f jaxb-ri/.mfiles-jaxb-core %files core -f jaxb-ri/.mfiles-jaxb-core
%files rngom -f jaxb-ri/.mfiles-rngom %files rngom -f jaxb-ri/.mfiles-rngom
%files runtime -f jaxb-ri/.mfiles-jaxb-runtime %files runtime -f jaxb-ri/.mfiles-jaxb-runtime
@ -172,9 +157,11 @@ popd
%license LICENSE.md NOTICE.md %license LICENSE.md NOTICE.md
%files txwc2 -f jaxb-ri/.mfiles-txwc2 %files txwc2 -f jaxb-ri/.mfiles-txwc2
%files xjc -f jaxb-ri/.mfiles-jaxb-xjc %files xjc -f jaxb-ri/.mfiles-jaxb-xjc
%endif
%changelog %changelog
* Wed Feb 08 2023 Marian Koncek <mkoncek@redhat.com> - 4.0.1-4
- Change license, remove bootstrap macro
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.1-3 * Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild