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