Sync from SUSE:ALP:Source:Standard:1.0 javamail revision 4153e8bf44b0ae79bd6cd82e3f96b51f
This commit is contained in:
commit
46b9e6fe29
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal 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
JAVAMAIL-1_5_2.tar.gz
(Stored with Git LFS)
Normal file
BIN
JAVAMAIL-1_5_2.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
10
javamail-javadoc.patch
Normal file
10
javamail-javadoc.patch
Normal file
@ -0,0 +1,10 @@
|
||||
--- javamail-JAVAMAIL-1_5_2/build.xml 2014-05-03 00:52:03.000000000 +0200
|
||||
+++ javamail-JAVAMAIL-1_5_2/build.xml 2019-01-21 12:35:28.859613463 +0100
|
||||
@@ -573,6 +573,7 @@
|
||||
author="false"
|
||||
version="false"
|
||||
use="true"
|
||||
+ source="${javac.source}"
|
||||
overview="${release.dir}/javadoc/overview.html"
|
||||
windowtitle="JavaMail API documentation"
|
||||
doctitle="JavaMail API documentation">
|
40
javamail.changes
Normal file
40
javamail.changes
Normal file
@ -0,0 +1,40 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Apr 29 12:22:31 UTC 2022 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Add alias to com.sun.mail:jakarta.mail needed by ant-javamail
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Apr 9 14:24:08 UTC 2022 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Remove all parents, since this package is not built with maven
|
||||
- Assure that every dependency has a version, or at least "any"
|
||||
* fixes use with gradle
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 30 10:19:25 UTC 2022 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Build against the standalone JavaEE modules unconditionally
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 18 19:20:43 UTC 2022 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Build with source/target levels 8
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 17 03:07:12 UTC 2022 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Add glassfish-activation-api dependency for relevant distribution
|
||||
versions to make buildable with JDK that does not contain the
|
||||
JavaEE modules
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 8 11:14:08 UTC 2019 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Do not depend on the jvnet-parent pom since we are not building
|
||||
with maven
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 22 09:24:23 UTC 2019 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Initial package of javamail 1.5.2
|
||||
- Install as maven artifacts
|
152
javamail.spec
Normal file
152
javamail.spec
Normal file
@ -0,0 +1,152 @@
|
||||
#
|
||||
# spec file for package javamail
|
||||
#
|
||||
# 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 git_tag JAVAMAIL-1_5_2
|
||||
Name: javamail
|
||||
Version: 1.5.2
|
||||
Release: 0
|
||||
Summary: Java Mail API
|
||||
License: CDDL-1.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
||||
Group: Development/Libraries/Java
|
||||
URL: https://www.oracle.com/technetwork/java/javamail
|
||||
Source: https://github.com/javaee/javamail/archive/%{git_tag}.tar.gz
|
||||
Patch0: %{name}-javadoc.patch
|
||||
BuildRequires: ant
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: glassfish-activation-api
|
||||
BuildRequires: java-devel >= 1.8
|
||||
BuildRequires: javapackages-local
|
||||
BuildRequires: perl-XML-XPath
|
||||
Requires: mvn(javax.activation:activation)
|
||||
# Adapted from the classpathx-mail (and JPackage glassfish-javamail) Provides.
|
||||
Provides: javamail-monolithic = %{version}-%{release}
|
||||
Provides: javax.mail
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
The JavaMail API provides a platform-independent and protocol-independent
|
||||
framework to build mail and messaging applications.
|
||||
|
||||
%package javadoc
|
||||
Summary: Javadoc for %{name}
|
||||
Group: Documentation/HTML
|
||||
|
||||
%description javadoc
|
||||
%{summary}.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{git_tag}
|
||||
%patch0 -p1
|
||||
|
||||
%pom_change_dep -r -f ::::: :::::
|
||||
|
||||
add_dep() {
|
||||
%pom_xpath_inject pom:project "<dependencies/>" ${2}
|
||||
%pom_add_dep com.sun.mail:${1}:%{version}:provided ${2}
|
||||
}
|
||||
|
||||
add_dep smtp mailapi
|
||||
add_dep javax.mail smtp
|
||||
add_dep javax.mail pop3
|
||||
add_dep javax.mail imap
|
||||
add_dep javax.mail mailapijar
|
||||
|
||||
# Remove profiles containing demos and other stuff that is not
|
||||
# supposed to be deployable.
|
||||
%pom_xpath_remove /pom:project/pom:profiles
|
||||
|
||||
# osgiversion-maven-plugin is used to set ${mail.osgiversion} property
|
||||
# based on ${project.version}. We don't have osgiversion plugin so we
|
||||
# will set ${mail.osgiversion} explicitly.
|
||||
%pom_remove_plugin org.glassfish.hk2:osgiversion-maven-plugin
|
||||
%pom_xpath_inject /pom:project/pom:properties "<mail.osgiversion>%{version}</mail.osgiversion>"
|
||||
%pom_xpath_inject /pom:project/pom:build/pom:plugins/pom:plugin/pom:configuration/pom:instructions "<_nouses>true</_nouses>"
|
||||
|
||||
# Tests failing due to networking limitations
|
||||
rm mail/src/test/java/com/sun/mail/imap/IMAPIdleUntaggedResponseTest.java
|
||||
rm mail/src/test/java/com/sun/mail/smtp/SMTPWriteTimeoutTest.java
|
||||
|
||||
%pom_remove_parent .
|
||||
for i in mail mailapi mailapijar smtp imap gimap pop3 dsn; do
|
||||
%pom_remove_parent ${i};
|
||||
%pom_xpath_inject pom:project "<version>%{version}</version>" ${i}
|
||||
done
|
||||
|
||||
%build
|
||||
%{ant} -Djavac.source=1.8 -Djavac.target=1.8 \
|
||||
-Dactivation.jar=$(find-jar glassfish-activation-api) \
|
||||
jar jars docs
|
||||
|
||||
%install
|
||||
get_name() {
|
||||
%if 0%{?suse_version} < 1320
|
||||
xpath ${1} '/project/artifactId/text()' 2>&1 | grep -vi node
|
||||
%else
|
||||
xpath -q -e '/project/artifactId/text()' ${1}
|
||||
%endif
|
||||
}
|
||||
|
||||
# jars
|
||||
install -dm 0755 %{buildroot}%{_javadir}/%{name}
|
||||
install -pm 0644 target/release/mail.jar %{buildroot}%{_javadir}/%{name}/$(get_name mail/pom.xml).jar
|
||||
for i in mailapi smtp imap gimap pop3 dsn; do
|
||||
install -pm 0644 target/release/lib/${i}.jar %{buildroot}%{_javadir}/%{name}/$(get_name ${i}/pom.xml).jar
|
||||
done
|
||||
install -pm 0644 target/release/lib/mailapi.jar %{buildroot}%{_javadir}/%{name}/$(get_name mailapijar/pom.xml).jar
|
||||
ln -sf javax.mail.jar %{buildroot}%{_javadir}/%{name}/mail.jar
|
||||
ln -sf %{name}/javax.mail.jar %{buildroot}%{_javadir}/javax.mail.jar
|
||||
install -d -m 755 %{buildroot}%{_javadir}/javax.mail/
|
||||
ln -sf ../%{name}/javax.mail.jar %{buildroot}%{_javadir}/javax.mail/
|
||||
|
||||
# poms
|
||||
install -dm 0755 %{buildroot}%{_mavenpomdir}/%{name}
|
||||
install -pm 0644 pom.xml %{buildroot}%{_mavenpomdir}/%{name}/$(get_name pom.xml).pom
|
||||
pompart=%{name}/$(get_name pom.xml).pom
|
||||
%add_maven_depmap ${pompart}
|
||||
for i in mailapijar smtp imap gimap pop3 dsn; do
|
||||
install -pm 0644 ${i}/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/$(get_name ${i}/pom.xml).pom
|
||||
pompart=%{name}/$(get_name ${i}/pom.xml).pom
|
||||
jarpart=%{name}/$(get_name ${i}/pom.xml).jar
|
||||
%add_maven_depmap ${pompart} ${jarpart}
|
||||
done
|
||||
install -pm 0644 mail/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/$(get_name mail/pom.xml).pom
|
||||
pompart=%{name}/$(get_name mail/pom.xml).pom
|
||||
jarpart=%{name}/$(get_name mail/pom.xml).jar
|
||||
%add_maven_depmap ${pompart} ${jarpart} -a javax.mail:mail,org.eclipse.jetty.orbit:javax.mail.glassfish,com.sun.mail:jakarta.mail
|
||||
install -pm 0644 mailapi/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/$(get_name mailapi/pom.xml).pom
|
||||
pompart=%{name}/$(get_name mailapi/pom.xml).pom
|
||||
jarpart=%{name}/$(get_name mailapi/pom.xml).jar
|
||||
%add_maven_depmap ${pompart} ${jarpart} -a javax.mail:mailapi
|
||||
|
||||
# javadoc
|
||||
mkdir -p %{buildroot}%{_javadocdir}
|
||||
cp -pr target/release/docs %{buildroot}%{_javadocdir}/%{name}
|
||||
%fdupes -s %{buildroot}%{_javadocdir}
|
||||
|
||||
%files -f .mfiles
|
||||
%doc mail/src/main/java/overview.html
|
||||
%license mail/src/main/resources/META-INF/LICENSE.txt
|
||||
%{_javadir}/javax.mail
|
||||
%{_javadir}/javax.mail.jar
|
||||
%{_javadir}/%{name}/mail.jar
|
||||
|
||||
%files javadoc
|
||||
%{_javadocdir}/%{name}
|
||||
%license mail/src/main/resources/META-INF/LICENSE.txt
|
||||
|
||||
%changelog
|
Loading…
Reference in New Issue
Block a user