Sync from SUSE:SLFO:Main glassfish-jaxb-api revision cfb135b5d608ba4d3374e0b8c0c989a5

This commit is contained in:
Adrian Schröter 2024-05-31 14:35:41 +02:00
parent 6a0a846114
commit 438a6a96e9
3 changed files with 32 additions and 26 deletions

View File

@ -10,7 +10,8 @@
<property name="project.artifactId" value="jaxb-api"/> <property name="project.artifactId" value="jaxb-api"/>
<property name="project.version" value="2.4.0"/> <property name="project.version" value="2.4.0"/>
<property name="compiler.source" value="1.8"/> <property name="compiler.release" value="8"/>
<property name="compiler.source" value="1.${compiler.release}"/>
<property name="compiler.target" value="${compiler.source}"/> <property name="compiler.target" value="${compiler.source}"/>
<property name="build.finalName" value="${project.artifactId}-${project.version}"/> <property name="build.finalName" value="${project.artifactId}-${project.version}"/>
@ -52,6 +53,7 @@
debug="true" debug="true"
optimize="false" optimize="false"
deprecation="true" deprecation="true"
release="${compiler.release}"
target="${compiler.target}" target="${compiler.target}"
verbose="false" verbose="false"
fork="false" fork="false"
@ -65,14 +67,16 @@
<!-- Build Multi-Release classes for Java 9 --> <!-- Build Multi-Release classes for Java 9 -->
<mkdir dir="${build.outputDir.Java9}"/> <mkdir dir="${build.outputDir.Java9}"/>
<javac destdir="${build.outputDir.Java9}" <javac destdir="${build.outputDir.Java9}"
nowarn="false" nowarn="false"
debug="true" debug="true"
optimize="false" encoding="utf-8"
deprecation="true" optimize="false"
target="${compiler.target}" deprecation="true"
verbose="false" release="9"
fork="false" target="9"
source="${compiler.source}"> verbose="false"
fork="false"
source="9">
<src> <src>
<pathelement location="${build.srcDir.Java9}"/> <pathelement location="${build.srcDir.Java9}"/>
</src> </src>
@ -82,12 +86,13 @@
</classpath> </classpath>
</javac> </javac>
<!-- Build the module-info.jar file --> <!-- Build the module-info.jar file -->
<javac destdir="${build.outputDir}" <javac destdir="${build.outputDir.Java9}"
nowarn="false" nowarn="false"
debug="true" debug="true"
encoding="utf-8" encoding="utf-8"
optimize="false" optimize="false"
deprecation="true" deprecation="true"
release="9"
target="9" target="9"
verbose="false" verbose="false"
fork="false" fork="false"

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Mon Apr 29 15:33:30 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- The binaries are compatible with java 1.8
-------------------------------------------------------------------
Wed Feb 21 22:02:16 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- Clean the spec file and simplify it a bit
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Apr 10 19:13:12 UTC 2022 - Fridrich Strba <fstrba@suse.com> Sun Apr 10 19:13:12 UTC 2022 - Fridrich Strba <fstrba@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package glassfish-jaxb-api # spec file for package glassfish-jaxb-api
# #
# Copyright (c) 2022 SUSE LLC # Copyright (c) 2024 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -18,6 +18,9 @@
%global oname jaxb-spec %global oname jaxb-spec
%global bundle jaxb-api %global bundle jaxb-api
# The automatic requires would be java-headless >= 9, but the
# binaries are java 8 compatible
%define __requires_exclude java-headless
Name: glassfish-jaxb-api Name: glassfish-jaxb-api
Version: 2.4.0 Version: 2.4.0
Release: 0 Release: 0
@ -31,9 +34,9 @@ BuildRequires: ant
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: glassfish-activation-api BuildRequires: glassfish-activation-api
BuildRequires: java-devel >= 9 BuildRequires: java-devel >= 9
BuildRequires: javapackages-local BuildRequires: javapackages-local >= 6
BuildRequires: unzip BuildRequires: unzip
Requires: mvn(javax.activation:javax.activation-api) Requires: java-headless >= 1.8
BuildArch: noarch BuildArch: noarch
%description %description
@ -62,18 +65,6 @@ cp %{SOURCE1} jaxb-api/build.xml
%pom_remove_plugin :cobertura-maven-plugin jaxb-api %pom_remove_plugin :cobertura-maven-plugin jaxb-api
%pom_remove_plugin :maven-dependency-plugin jaxb-api %pom_remove_plugin :maven-dependency-plugin jaxb-api
%pom_remove_parent jaxb-api
%pom_xpath_inject pom:project "
<groupId>javax.xml.bind</groupId>
<version>%{version}</version>" jaxb-api
%pom_xpath_inject "pom:plugin[pom:artifactId = 'maven-javadoc-plugin']/pom:configuration" "
<sourceFileExcludes>
<exclude>module-info.java</exclude>
</sourceFileExcludes>" jaxb-api
%pom_change_dep ::::: ::::: jaxb-api
%build %build
pushd jaxb-api pushd jaxb-api
mkdir -p lib mkdir -p lib
@ -88,7 +79,7 @@ install -m 644 %{bundle}/target/%{bundle}-%{version}.jar %{buildroot}%{_javadir}
# pom # pom
install -d -m 755 %{buildroot}%{_mavenpomdir} install -d -m 755 %{buildroot}%{_mavenpomdir}
install -pm 644 %{bundle}/pom.xml %{buildroot}%{_mavenpomdir}/%{name}.pom %{mvn_install_pom} %{bundle}/pom.xml %{buildroot}%{_mavenpomdir}/%{name}.pom
%add_maven_depmap %{name}.pom %{name}.jar %add_maven_depmap %{name}.pom %{name}.jar
# javadoc # javadoc