Sync from SUSE:SLFO:Main jakarta-mail revision 753a01362680404ea1c3a67dac46ba62

This commit is contained in:
Adrian Schröter 2024-05-31 14:39:51 +02:00
parent 2c0b3c7267
commit eb4782091b
5 changed files with 97 additions and 61 deletions

View File

@ -8,12 +8,13 @@
<property name="project.groupId" value="jakarta.mail"/>
<property name="project.artifactId" value="jakarta.mail-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="mail.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}"/>
@ -61,6 +62,7 @@
debug="true"
optimize="false"
deprecation="true"
release="${compiler.release}"
target="${compiler.target}"
verbose="false"
fork="false"
@ -76,6 +78,7 @@
debug="true"
optimize="false"
deprecation="true"
release="9"
target="9"
verbose="false"
fork="false"
@ -146,7 +149,7 @@
<attribute name="Implementation-Title" value="Jakarta Mail API"/>
<attribute name="Implementation-Vendor" value="Eclipse Foundation"/>
<attribute name="Import-Package" value="jakarta.activation;version=&quot;[2.1,3)&quot;,jakarta.mail.event;version=&quot;[2.1,3)&quot;,jakarta.mail.internet;version=&quot;[2.1,3)&quot;,jakarta.mail.search;version=&quot;[2.1,3)&quot;,jakarta.mail.util;version=&quot;[2.1,3)&quot;,jakarta.mail;version=&quot;[2.1,3)&quot;"/>
<attribute name="Require-Capability" value="osgi.ee;filter:=&quot;(&amp;(osgi.ee=JavaSE)(version=1.8))&quot;"/>
<attribute name="Require-Capability" value="osgi.ee;filter:=&quot;(&amp;(osgi.ee=JavaSE)(version=${compiler.target}))&quot;"/>
<attribute name="Specification-Title" value="Jakarta Mail Specification"/>
<attribute name="Specification-Vendor" value="Eclipse Foundation"/>
<attribute name="Specification-Version" value="${spec.version}"/>

View File

@ -1,3 +1,34 @@
-------------------------------------------------------------------
Mon Apr 29 17:00:51 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- Upgrade to version 2.1.3
* Changes:
+ #621 - j.m.u.FactoryFinder.factoryFromServiceLoader needs
PrivilegedAction
+ #598 - expected resource not found:
/META-INF/javamail.default.address.map
+ #594 - Implement equals() and hashcode() on
jakarta.mail.Header
+ #630 - Use OSGi service loader mediator
+ #629: jakarta.mail-api-2.1.0.jar does not work in OSGi
environment (hk2servicelocator)
+ #635: The hk2 service loader is not used everywhere (where
necessary)
+ #660: fix wrong class file version for package-info
+ #664: Typo in Session.setDebug Javadoc
+ adds missing javadoc descriptions
+ updates dependency on Jakarta Activation API jar to version
2.1.2 and angus-activation used by tests to 2.0.1
+ #631: Session.getService does not use proper classloader in
OSGI environment
+ #665: Jakarta Mail erroneously assumes that classes can be
loaded from Thread#getContextClassLoader
+ #694: SharedFileInputStream should comply with spec
+ #710: Cannot parse messages without a session
+ updates dependency on Jakarta Activation API jar to version
2.1.3 and angus-activation used by tests to 2.0.2
- Use the new https://github.com/jakartaee/mail-api URL
-------------------------------------------------------------------
Thu Mar 3 14:16:52 UTC 2022 - Fridrich Strba <fstrba@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package jakarta-mail
#
# 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,21 +16,25 @@
#
%global artifact_name jakarta.mail-api
%global srcname mail-api
%global artifact_name jakarta.%{srcname}
# The automatic requires would be java-headless >= 9, but the
# binaries are java 8 compatible
%define __requires_exclude java-headless
Name: jakarta-mail
Version: 2.1.0
Version: 2.1.3
Release: 0
Summary: Jakarta Mail API
License: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
URL: https://eclipse-ee4j.github.io/mail/
Source0: https://github.com/eclipse-ee4j/mail/archive/%{version}/mail-%{version}.tar.gz
URL: https://github.com/jakartaee/mail-api
Source0: %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz
Source1: %{name}-build.xml
BuildRequires: ant
BuildRequires: fdupes
BuildRequires: jakarta-activation
BuildRequires: java-devel >= 9
BuildRequires: javapackages-local
Requires: mvn(jakarta.activation:jakarta.activation-api)
BuildRequires: javapackages-local >= 6
Requires: java-headless >= 1.8
BuildArch: noarch
%description
@ -46,14 +50,12 @@ Summary: Javadoc for %{name}
This package contains javadoc for %{name}.
%prep
%setup -q -n mail-%{version}
%setup -q -n %{srcname}-%{version}
cp %{SOURCE1} api/build.xml
mkdir -p api/lib
%pom_remove_parent api
%build
pushd api
mkdir -p lib
build-jar-repository -s lib jakarta-activation
%{ant} package javadoc
popd
@ -61,12 +63,12 @@ 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 -p -m 0644 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
%{mvn_install_pom} pom.xml %{buildroot}%{_mavenpomdir}/%{name}/%{artifact_name}.pom
%add_maven_depmap %{name}/%{artifact_name}.pom %{name}/%{artifact_name}.jar
# javadoc

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

Binary file not shown.

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

Binary file not shown.