From bbe048ae23d09020c12b13b6db3e26c28eba3cb1 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Nov 02 2021 14:06:50 +0000 Subject: import jakarta-mail-1.6.5-5.el9 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..932611a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/mail-1.6.5.tar.gz diff --git a/.jakarta-mail.metadata b/.jakarta-mail.metadata new file mode 100644 index 0000000..89f2fae --- /dev/null +++ b/.jakarta-mail.metadata @@ -0,0 +1 @@ +87b7b390e39d6afa9d4111c2301ed0236b789ba5 SOURCES/mail-1.6.5.tar.gz diff --git a/SPECS/jakarta-mail.spec b/SPECS/jakarta-mail.spec new file mode 100644 index 0000000..62c6990 --- /dev/null +++ b/SPECS/jakarta-mail.spec @@ -0,0 +1,95 @@ +Name: jakarta-mail +Version: 1.6.5 +Release: 5%{?dist} +Summary: Jakarta Mail API +License: EPL-2.0 or GPLv2 with exceptions +URL: https://github.com/eclipse-ee4j/mail +BuildArch: noarch + +Source0: https://github.com/eclipse-ee4j/mail/archive/%{version}/mail-%{version}.tar.gz + +BuildRequires: maven-local +BuildRequires: mvn(com.sun.activation:jakarta.activation) +BuildRequires: mvn(junit:junit) +BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) +BuildRequires: mvn(org.apache.maven.plugins:maven-dependency-plugin) +BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin) +BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin) + +# package renamed in fedora 34, remove in fedora 36+ +Provides: javamail = %{version}-%{release} +Obsoletes: javamail < 1.5.2-16 + +# javadoc package is currently not built +Obsoletes: javamail-javadoc < 1.5.2-16 + +%description +The Jakarta Mail API provides a platform-independent and +protocol-independent framework to build mail and messaging applications. + +%prep +%setup -n mail-%{version} + +# remove unnecessary dependency on parent POM +%pom_remove_parent + +# disable unnecessary maven plugins +%pom_remove_plugin :maven-enforcer-plugin +%pom_remove_plugin :osgiversion-maven-plugin + +# disable android-specific code +%pom_disable_module android + +# remove profiles that only add unnecessary things +%pom_xpath_remove "pom:project/pom:profiles" + +# inject OSGi bundle versions manually instead of using osgiversion-maven-plugin +sed -i "s/\${mail\.osgiversion}/%{version}/g" mail/pom.xml +sed -i "s/\${mail\.osgiversion}/%{version}/g" mailapi/pom.xml + +# add aliases for old maven artifact coordinates +%mvn_alias com.sun.mail:mailapi \ + javax.mail:mailapi +%mvn_alias com.sun.mail:jakarta.mail \ + com.sun.mail:javax.mail \ + javax.mail:mail \ + org.eclipse.jetty.orbit:javax.mail.glassfish +%mvn_alias jakarta.mail:jakarta.mail-api \ + javax.mail:javax.mail-api + +# add symlinks for compatibilty with old classpaths +%mvn_file com.sun.mail:jakarta.mail \ + %{name}/jakarta.mail \ + javamail/mail \ + javamail/javax.mail \ + javax.mail/javax.mail + +%build +# skip javadoc build due to https://github.com/fedora-java/xmvn/issues/58 +%mvn_build -j + +%install +%mvn_install + +%files -f .mfiles +%license LICENSE.md NOTICE.md +%doc README.md + +%changelog +* Mon Aug 09 2021 Mohan Boddu - 1.6.5-5 +- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags + Related: rhbz#1991688 + +* Mon Jun 28 2021 Mikolaj Izdebski - 1.6.5-4 +- Add build-dependency on junit +- Resolves: rhbz#1976998 + +* Fri Apr 16 2021 Mohan Boddu - 1.6.5-3 +- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937 + +* Tue Jan 26 2021 Fedora Release Engineering - 1.6.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Sat Sep 19 2020 Fabio Valentini - 1.6.5-1 +- Initial package renamed from javamail. +