Sync from SUSE:ALP:Source:Standard:1.0 glassfish-jaxb-api revision 743e1674ed3aa92f6439225d12046c7f

This commit is contained in:
Adrian Schröter 2024-06-12 17:46:21 +02:00
commit a7f289f258
5 changed files with 351 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

BIN
2.4.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,184 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="jaxb-api" default="package" basedir=".">
<!-- ====================================================================== -->
<!-- Build environment properties -->
<!-- ====================================================================== -->
<property name="project.groupId" value="javax.xml.bind"/>
<property name="project.artifactId" value="jaxb-api"/>
<property name="project.version" value="2.4.0"/>
<property name="compiler.source" value="1.8"/>
<property name="compiler.target" value="${compiler.source}"/>
<property name="build.finalName" value="${project.artifactId}-${project.version}"/>
<property name="build.dir" value="target"/>
<property name="build.outputDir" value="${build.dir}/classes"/>
<property name="build.outputDir.Java9" value="${build.outputDir}/META-INF/versions/9"/>
<property name="build.srcDir" value="src/main/java"/>
<property name="build.srcDir.Java9" value="src/main/mr-jar"/>
<property name="build.resourceDir" value="src/main/resources"/>
<property name="reporting.outputDirectory" value="${build.dir}/site"/>
<!-- ====================================================================== -->
<!-- Defining classpaths -->
<!-- ====================================================================== -->
<path id="build.classpath">
<fileset dir="lib">
<include name="**/*"/>
</fileset>
</path>
<!-- ====================================================================== -->
<!-- Cleaning up target -->
<!-- ====================================================================== -->
<target name="clean" description="Clean the output directory">
<delete dir="${build.dir}"/>
</target>
<!-- ====================================================================== -->
<!-- Compilation target -->
<!-- ====================================================================== -->
<target name="compile" description="Compile the code">
<mkdir dir="${build.outputDir}"/>
<javac destdir="${build.outputDir}"
nowarn="false"
debug="true"
optimize="false"
deprecation="true"
target="${compiler.target}"
verbose="false"
fork="false"
source="${compiler.source}">
<src>
<pathelement location="${build.srcDir}"/>
</src>
<exclude name="**/module-info.java"/>
<classpath refid="build.classpath"/>
</javac>
<!-- Build Multi-Release classes for Java 9 -->
<mkdir dir="${build.outputDir.Java9}"/>
<javac destdir="${build.outputDir.Java9}"
nowarn="false"
debug="true"
optimize="false"
deprecation="true"
target="${compiler.target}"
verbose="false"
fork="false"
source="${compiler.source}">
<src>
<pathelement location="${build.srcDir.Java9}"/>
</src>
<classpath>
<path refid="build.classpath"/>
<pathelement location="${build.outputDir}"/>
</classpath>
</javac>
<!-- Build the module-info.jar file -->
<javac destdir="${build.outputDir}"
nowarn="false"
debug="true"
encoding="utf-8"
optimize="false"
deprecation="true"
target="9"
verbose="false"
fork="false"
source="9">
<src>
<pathelement location="${build.srcDir.Java9}"/>
<pathelement location="${build.srcDir}"/>
</src>
<include name="**/module-info.java"/>
<modulepath>
<path refid="build.classpath"/>
<pathelement location="${build.outputDir.Java9}"/>
<pathelement location="${build.outputDir}"/>
</modulepath>
</javac>
<copy todir="${build.outputDir}">
<fileset dir="${build.resourceDir}"/>
</copy>
</target>
<!-- ====================================================================== -->
<!-- Javadoc target -->
<!-- ====================================================================== -->
<target name="javadoc" description="Generates the Javadoc of the application">
<javadoc sourcepath="${build.srcDir}"
packagenames="*"
destdir="${reporting.outputDirectory}/apidocs"
access="protected"
source="${compiler.source}"
verbose="false"
version="true"
use="true"
author="true"
splitindex="false"
nodeprecated="false"
nodeprecatedlist="false"
notree="false"
noindex="false"
nohelp="false"
nonavbar="false"
serialwarn="false"
charset="ISO-8859-1"
linksource="false"
breakiterator="false">
<classpath refid="build.classpath"/>
</javadoc>
</target>
<!-- ====================================================================== -->
<!-- Package target -->
<!-- ====================================================================== -->
<target name="package" depends="compile" description="Package the application">
<jar jarfile="${build.dir}/${build.finalName}.jar"
compress="true"
index="false"
basedir="${build.outputDir}"
excludes="**/package.html">
<manifest>
<attribute name="Bundle-Description" value="JAXB (JSR 222) API"/>
<attribute name="Bundle-DocURL" value="http://www.oracle.com/"/>
<attribute name="Bundle-License" value="https://oss.oracle.com/licenses/CDDL+GPL-1.1,https://oss.oracle.com/licenses/CDDL+GPL-1.1"/>
<attribute name="Bundle-ManifestVersion" value="2"/>
<attribute name="Bundle-Name" value="${project.artifactId}"/>
<attribute name="Bundle-SymbolicName" value="${project.artifactId}"/>
<attribute name="Bundle-Vendor" value="Oracle Corporation"/>
<attribute name="Bundle-Version" value="${project.version}"/>
<attribute name="DynamicImport-Package" value="org.glassfish.hk2.osgiresourcelocator"/>
<attribute name="Export-Package" value="javax.xml.bind.annotation.adapters;version=&quot;2.3&quot;,javax.xml.bind.annotation;version=&quot;2.3&quot;;uses:=&quot;javax.xml.bind,javax.xml.parsers,javax.xml.transform,javax.xml.transform.dom,org.w3c.dom&quot;,javax.xml.bind.attachment;version=&quot;2.3&quot;;uses:=&quot;javax.activation&quot;,javax.xml.bind.helpers;version=&quot;2.3&quot;;uses:=&quot;javax.xml.bind,javax.xml.bind.annotation.adapters,javax.xml.bind.attachment,javax.xml.stream,javax.xml.transform,javax.xml.validation,org.w3c.dom,org.xml.sax&quot;,javax.xml.bind.util;version=&quot;2.3&quot;;uses:=&quot;javax.xml.bind,javax.xml.transform.sax&quot;,javax.xml.bind;version=&quot;2.3&quot;;uses:=&quot;javax.xml.bind.annotation.adapters,javax.xml.bind.attachment,javax.xml.namespace,javax.xml.stream,javax.xml.transform,javax.xml.validation,org.w3c.dom,org.xml.sax&quot;"/>
<attribute name="Extension-Name" value="${project.groupId}"/>
<attribute name="Implementation-Vendor-Id" value="org.glassfish"/>
<attribute name="Implementation-Vendor" value="Oracle Corporation"/>
<attribute name="Implementation-Version" value="2.3.0"/>
<attribute name="Import-Package" value="javax.activation,javax.xml.bind.annotation.adapters;version=&quot;[2.3,3)&quot;,javax.xml.bind.annotation;version=&quot;[2.3,3)&quot;,javax.xml.bind.attachment;version=&quot;[2.3,3)&quot;,javax.xml.bind.helpers;version=&quot;[2.3,3)&quot;,javax.xml.bind.util;version=&quot;[2.3,3)&quot;,javax.xml.bind;version=&quot;[2.3,3)&quot;,javax.xml.datatype,javax.xml.namespace,javax.xml.parsers,javax.xml.stream,javax.xml.transform,javax.xml.transform.dom,javax.xml.transform.sax,javax.xml.transform.stream,javax.xml.validation,org.w3c.dom,org.xml.sax,org.xml.sax.ext,org.xml.sax.helpers"/>
<attribute name="JavaPackages-ArtifactId" value="${project.artifactId}"/>
<attribute name="JavaPackages-GroupId" value="${project.groupId}"/>
<attribute name="JavaPackages-Version" value="${project.version}"/>
<attribute name="Multi-Release" value="true"/>
<attribute name="Require-Capability" value="osgi.ee;filter:=&quot;(&amp;(osgi.ee=JavaSE)(version=1.8))&quot;"/>
<attribute name="Specification-Title" value="${project.artifactId}"/>
<attribute name="Specification-Vendor" value="Oracle Corporation"/>
<attribute name="Specification-Version" value="${project.version}"/>
</manifest>
</jar>
</target>
<!-- ====================================================================== -->
<!-- A dummy target for the package named after the type it creates -->
<!-- ====================================================================== -->
<target name="jar" depends="package" description="Builds the jar for the application"/>
</project>

View File

@ -0,0 +1,35 @@
-------------------------------------------------------------------
Sun Apr 10 19:13:12 UTC 2022 - Fridrich Strba <fstrba@suse.com>
- Assure that every dependency has a version, or at least "any"
* fixes use with gradle
-------------------------------------------------------------------
Fri Mar 18 05:54:50 UTC 2022 - Fridrich Strba <fstrba@suse.com>
- Install the jar directly to the /usr/share/java as
glassfish-jaxb-api.jar
-------------------------------------------------------------------
Thu Mar 17 06:55:49 UTC 2022 - Fridrich Strba <fstrba@suse.com>
- Rewrite to build using ant, since this package might be a
dependency of many once he JavaEE modules are not part of our
OpenJDK build.
-------------------------------------------------------------------
Fri Mar 4 18:05:56 UTC 2022 - Fridrich Strba <fstrba@suse.com>
- Remove the alias to the new jakarta name. It will be provided
by a dedicated package.
- Install artifact in its default directory.
-------------------------------------------------------------------
Tue Apr 14 09:06:51 UTC 2020 - Fridrich Strba <fstrba@suse.com>
- Add alias to the new jakarta name
-------------------------------------------------------------------
Mon Mar 9 11:09:06 UTC 2020 - Fridrich Strba <fstrba@suse.com>
- Initial packaging of glassfish-jaxb-api 2.4.0

106
glassfish-jaxb-api.spec Normal file
View File

@ -0,0 +1,106 @@
#
# spec file for package glassfish-jaxb-api
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%global oname jaxb-spec
%global bundle jaxb-api
Name: glassfish-jaxb-api
Version: 2.4.0
Release: 0
Summary: Java Architecture for XML Binding
License: CDDL-1.0 OR GPL-2.0-only WITH Classpath-exception-2.0
Group: Development/Libraries/Java
URL: https://jaxb.java.net/
Source0: https://github.com/javaee/%{oname}/archive/%{version}.tar.gz
Source1: %{name}-build.xml
BuildRequires: ant
BuildRequires: fdupes
BuildRequires: glassfish-activation-api
BuildRequires: java-devel >= 9
BuildRequires: javapackages-local
BuildRequires: unzip
Requires: mvn(javax.activation:javax.activation-api)
BuildArch: noarch
%description
Glassfish - JAXB (JSR 222) API.
%package javadoc
Summary: Javadoc for %{oname}
Group: Documentation/HTML
%description javadoc
Glassfish - JAXB (JSR 222) API.
This package contains javadoc for %{name}.
%prep
%setup -q -n %{oname}-%{version}
cp %{SOURCE1} jaxb-api/build.xml
%pom_disable_module jaxb-api-test
%pom_remove_plugin org.codehaus.mojo:buildnumber-maven-plugin jaxb-api
%pom_remove_plugin org.glassfish.copyright:glassfish-copyright-maven-plugin jaxb-api
%pom_remove_plugin org.glassfish.build:gfnexus-maven-plugin jaxb-api
%pom_remove_plugin :findbugs-maven-plugin jaxb-api
%pom_remove_plugin :maven-enforcer-plugin jaxb-api
%pom_remove_plugin :cobertura-maven-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
pushd jaxb-api
mkdir -p lib
build-jar-repository -s lib glassfish-activation-api
%{ant} jar javadoc
popd
%install
# jar
install -d -m 755 %{buildroot}%{_javadir}
install -m 644 %{bundle}/target/%{bundle}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
# pom
install -d -m 755 %{buildroot}%{_mavenpomdir}
install -pm 644 %{bundle}/pom.xml %{buildroot}%{_mavenpomdir}/%{name}.pom
%add_maven_depmap %{name}.pom %{name}.jar
# javadoc
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
cp -r %{bundle}/target/site/apidocs/* %{buildroot}/%{_javadocdir}/%{name}
%fdupes -s %{buildroot}%{_javadocdir}
%files -f .mfiles
%license LICENSE.txt
%files javadoc
%{_javadocdir}/%{name}
%license LICENSE.txt
%changelog