From 23a692f837f64ecec9f5973f470730b068f14288 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Mon, 14 Oct 2024 14:33:34 +0200 Subject: [PATCH] Sync from SUSE:ALP:Source:Standard:1.0 jakarta-mail revision c2fd7a56ac7d8ba7a02b8c4d71e12e16 --- .gitattributes | 23 ++++++ jakarta-mail-build.xml | 163 +++++++++++++++++++++++++++++++++++++++++ jakarta-mail.changes | 4 + jakarta-mail.spec | 87 ++++++++++++++++++++++ mail-2.1.0.tar.gz | 3 + 5 files changed, 280 insertions(+) create mode 100644 .gitattributes create mode 100644 jakarta-mail-build.xml create mode 100644 jakarta-mail.changes create mode 100644 jakarta-mail.spec create mode 100644 mail-2.1.0.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fecc750 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/jakarta-mail-build.xml b/jakarta-mail-build.xml new file mode 100644 index 0000000..a1c7b4b --- /dev/null +++ b/jakarta-mail-build.xml @@ -0,0 +1,163 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
<![CDATA[<a href="https://reload4j.qos.ch"> + <img src="https://reload4j.qos.ch/images/logos/reload4j.jpg" height="40"/></a>]]>
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/jakarta-mail.changes b/jakarta-mail.changes new file mode 100644 index 0000000..a5fd945 --- /dev/null +++ b/jakarta-mail.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Thu Mar 3 14:16:52 UTC 2022 - Fridrich Strba + +- Initial packaging of jakarta-mail 2.1.0 diff --git a/jakarta-mail.spec b/jakarta-mail.spec new file mode 100644 index 0000000..d809436 --- /dev/null +++ b/jakarta-mail.spec @@ -0,0 +1,87 @@ +# +# spec file for package jakarta-mail +# +# 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 artifact_name jakarta.mail-api +Name: jakarta-mail +Version: 2.1.0 +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 +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) +BuildArch: noarch + +%description +Jakarta Activation lets you take advantage of standard services to: +determine the type of an arbitrary piece of data; encapsulate access to +it; discover the operations available on it; and instantiate the +appropriate bean to perform the operation(s). + +%package javadoc +Summary: Javadoc for %{name} + +%description javadoc +This package contains javadoc for %{name}. + +%prep +%setup -q -n mail-%{version} +cp %{SOURCE1} api/build.xml +mkdir -p api/lib + +%pom_remove_parent api + +%build +pushd api +build-jar-repository -s lib jakarta-activation +%{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 + +#pom +install -d -m 755 %{buildroot}%{_mavenpomdir}/%{name} +install -pm 644 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 + +%fdupes -s %{buildroot}%{_javadocdir} + +%files -f api/.mfiles +%doc README.md +%license LICENSE.md NOTICE.md + +%files javadoc +%{_javadocdir}/%{name} +%license LICENSE.md NOTICE.md + +%changelog diff --git a/mail-2.1.0.tar.gz b/mail-2.1.0.tar.gz new file mode 100644 index 0000000..20d7d97 --- /dev/null +++ b/mail-2.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d942efe8af6c52df22a1fc94d6316e216185d02480c0bda8ccd614c847d63a80 +size 1072862