From a0677e2e9462b0d2b43840bc4ec75f51f45f51fd3692c1880d427e5e1de0b4bf Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Thu, 3 Mar 2022 14:17:15 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Java:packages/jakarta-mail?expand=0&rev=1 --- .gitattributes | 23 ++++++ .gitignore | 1 + jakarta-mail-build.xml | 163 +++++++++++++++++++++++++++++++++++++++++ jakarta-mail.spec | 87 ++++++++++++++++++++++ mail-2.1.0.tar.gz | 3 + 5 files changed, 277 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 jakarta-mail-build.xml 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..9b03811 --- /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/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/jakarta-mail-build.xml b/jakarta-mail-build.xml new file mode 100644 index 0000000..ba5b427 --- /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.spec b/jakarta-mail.spec new file mode 100644 index 0000000..35772ad --- /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..e9c9175 --- /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