Sync from SUSE:SLFO:Main jakarta-activation revision d0225e4a1a743503b53dbeb82ccf390d

This commit is contained in:
Adrian Schröter 2024-05-31 14:39:33 +02:00
parent b094aaa4ed
commit 940697ef2f
5 changed files with 47 additions and 22 deletions

BIN
jaf-2.1.0.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
jaf-api-2.1.3.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -8,12 +8,13 @@
<property name="project.groupId" value="jakarta.activation"/>
<property name="project.artifactId" value="jakarta.activation-api"/>
<property name="project.version" value="2.1.0"/>
<property name="project.version" value="2.1.3"/>
<property name="spec.version" value="2.1"/>
<property name="activation.version" value="${project.version}"/>
<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="build.finalName" value="${project.artifactId}-${project.version}"/>
@ -43,6 +44,7 @@
debug="true"
optimize="false"
deprecation="true"
release="${compiler.release}"
target="${compiler.target}"
verbose="false"
fork="false"
@ -57,6 +59,7 @@
debug="true"
optimize="false"
deprecation="true"
release="9"
target="9"
verbose="false"
fork="false"

View File

@ -1,3 +1,24 @@
-------------------------------------------------------------------
Mon Apr 29 16:54:40 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- Upgrade to version 2.1.3
* Changes:
+ #93 - Use OSGi service loader mediator
+ #94 - Loading of service provider implementations needs to be
done under doPrivileged
+ #100 - Avoid requiring accessDeclaredMembers permissions
+ fix wrong class file version for package-info
+ add missing javadoc description for MimeTypeEntry getters
+ fixes erroneous assumption about classes being loaded from
Thread.getContextClassLoader
+ allows reproducible build
- Use the new https://github.com/jakartaee/jaf-api URL
-------------------------------------------------------------------
Mon Apr 29 14:28:00 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- The binaries are compatible with java 1.8
-------------------------------------------------------------------
Thu Mar 3 14:26:41 UTC 2022 - Fridrich Strba <fstrba@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package jakarta-activation
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -16,19 +16,24 @@
#
%global srcname jaf-api
%global artifact_name jakarta.activation-api
# The automatic requires would be java-headless >= 9, but the
# binaries are java 8 compatible
%define __requires_exclude java-headless
Name: jakarta-activation
Version: 2.1.0
Version: 2.1.3
Release: 0
Summary: Jakarta Activation Specification and Implementation
License: BSD-3-Clause
URL: https://eclipse-ee4j.github.io/jaf/
Source0: https://github.com/eclipse-ee4j/jaf/archive/%{version}/jaf-%{version}.tar.gz
URL: https://github.com/jakartaee/%{srcname}
Source0: https://github.com/jakartaee/%{srcname}/archive/%{version}/%{srcname}-%{version}.tar.gz
Source1: %{name}-build.xml
BuildRequires: ant
BuildRequires: fdupes
BuildRequires: java-devel >= 9
BuildRequires: javapackages-local
BuildRequires: javapackages-local >= 6
Requires: java-headless >= 1.8
BuildArch: noarch
%description
@ -44,35 +49,31 @@ Summary: Javadoc for %{name}
This package contains javadoc for %{name}.
%prep
%setup -q -n jaf-%{version}
%setup -q -n %{srcname}-%{version}
cp %{SOURCE1} api/build.xml
%pom_remove_parent api
%build
pushd api
%{ant} package javadoc
popd
%install
pushd api
# jars
mkdir -p %{buildroot}%{_javadir}/%{name}
cp -a target/%{artifact_name}-%{version}.jar %{buildroot}%{_javadir}/%{name}/%{artifact_name}.jar
install -d -m 0755 %{buildroot}%{_javadir}/%{name}
install -pm 0644 api/target/%{artifact_name}-%{version}.jar %{buildroot}%{_javadir}/%{name}/%{artifact_name}.jar
#pom
install -d -m 755 %{buildroot}%{_mavenpomdir}/%{name}
install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/%{name}/%{artifact_name}.pom
install -d -m 0755 %{buildroot}%{_mavenpomdir}/%{name}
%{mvn_install_pom} api/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/%{artifact_name}.pom
%add_maven_depmap %{name}/%{artifact_name}.pom %{name}/%{artifact_name}.jar
# javadoc
mkdir -p %{buildroot}%{_javadocdir}/%{name}
cp -a target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
popd
install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}
cp -a api/target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
%fdupes -s %{buildroot}%{_javadocdir}
%files -f api/.mfiles
%files -f .mfiles
%doc README.md
%license LICENSE.md NOTICE.md