Name: javamail
Version: 1.5.2
Release: 11%{?dist}
Summary: Java Mail API
License: CDDL-1.0 or GPLv2 with exceptions
URL: http://www.oracle.com/technetwork/java/javamail
BuildArch: noarch
Source: https://java.net/projects/javamail/downloads/download/source/javamail-%{version}-src.zip
BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(net.java:jvnet-parent:pom:)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-dependency-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
# Adapted from the classpathx-mail (and JPackage glassfish-javamail) Provides.
Provides: javamail-monolithic = %{version}-%{release}
Provides: javax.mail
%description
The JavaMail API provides a platform-independent and protocol-independent
framework to build mail and messaging applications.
%package javadoc
Summary: Javadoc for %{name}
%description javadoc
%{summary}.
%prep
%setup -q -c
add_dep() {
%pom_xpath_inject pom:project "" ${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 in
# Fedora so we'll set ${mail.osgiversion} explicitly.
%pom_remove_plugin org.glassfish.hk2:osgiversion-maven-plugin
%pom_remove_dep javax.activation:activation
%pom_xpath_inject /pom:project/pom:properties "%{version}"
%pom_xpath_inject /pom:project/pom:build/pom:plugins/pom:plugin/pom:configuration/pom:instructions "<_nouses>true"
# Alternative names for super JAR containing API and implementation.
%mvn_alias com.sun.mail:mailapi javax.mail:mailapi
%mvn_alias com.sun.mail:javax.mail javax.mail:mail \
org.eclipse.jetty.orbit:javax.mail.glassfish
%mvn_file "com.sun.mail:{javax.mail}" %{name}/@1 %{name}/mail
%build
# Some tests fail on Koji due to networking limitations
%mvn_build -- -Dmaven.test.failure.ignore=true
%install
%mvn_install
install -d -m 755 %{buildroot}%{_javadir}/javax.mail/
ln -sf ../%{name}/javax.mail.jar %{buildroot}%{_javadir}/javax.mail/
%files -f .mfiles
%doc mail/src/main/java/overview.html
%doc mail/src/main/resources/META-INF/LICENSE.txt
%{_javadir}/javax.mail/
%files javadoc -f .mfiles-javadoc
%doc mail/src/main/resources/META-INF/LICENSE.txt
%changelog
* Wed Jan 29 2020 Fedora Release Engineering - 1.5.2-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Thu Jul 25 2019 Fedora Release Engineering - 1.5.2-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Fri Feb 01 2019 Fedora Release Engineering - 1.5.2-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Fri Jul 13 2018 Fedora Release Engineering - 1.5.2-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Wed Feb 07 2018 Fedora Release Engineering - 1.5.2-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Thu Nov 09 2017 Michael Simacek - 1.5.2-6
- Specify CDDL license version
* Wed Jul 26 2017 Fedora Release Engineering - 1.5.2-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Fri Feb 10 2017 Fedora Release Engineering - 1.5.2-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Thu Feb 04 2016 Fedora Release Engineering - 1.5.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Wed Jun 17 2015 Fedora Release Engineering - 1.5.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Fri Mar 6 2015 Alexander Kurtakov 1.5.2-1
- Update to upstream 1.5.2 using upstream tarball.
* Fri Mar 6 2015 Alexander Kurtakov 1.5.1-5
- Remove javax.activation:activation dependency.
* Mon Aug 4 2014 Mikolaj Izdebski - 1.5.1-4
- Fix build-requires on jvnet-parent
* Sat Jun 07 2014 Fedora Release Engineering - 1.5.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Mon Mar 31 2014 Mikolaj Izdebski - 1.5.1-2
- Regenerate build-requires
* Mon Mar 31 2014 Mikolaj Izdebski - 1.5.1-1
- Update to upstream version 1.5.1
* Mon Mar 31 2014 Alexander Kurtakov 1.5.0-8
- Do not generate uses clauses for osgi -too strict linking.
* Tue Mar 04 2014 Stanislav Ochotnicky - 1.5.0-7
- Use Requires: java-headless rebuild (#1067528)
* Mon Aug 12 2013 Stanislav Ochotnicky - 1.5.0-6
- Add forgotten provides
* Mon Aug 12 2013 Stanislav Ochotnicky - 1.5.0-5
- Add javax.mail provides and directory
* Sat Aug 03 2013 Fedora Release Engineering - 1.5.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Fri Jun 28 2013 Mikolaj Izdebski - 1.5.0-3
- Add compat symlink for javax.mail:mail
* Mon Jun 24 2013 Mikolaj Izdebski - 1.5.0-2
- Add Maven alias for javax.mail:mail
* Mon Jun 24 2013 Mikolaj Izdebski - 1.5.0-1
- Update to upstream version 1.5.0
* Thu Mar 7 2013 Mikolaj Izdebski - 1.4.6-1
- Update to upstream version 1.4.6
* Mon Mar 4 2013 Mikolaj Izdebski - 1.4.3-16
- Add depmap for org.eclipse.jetty.orbit
- Resolves: rhbz#917624
* Thu Feb 14 2013 Fedora Release Engineering - 1.4.3-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Wed Feb 06 2013 Java SIG - 1.4.3-14
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
- Replace maven BuildRequires with maven-local
* Thu Oct 11 2012 Mikolaj Izdebski - 1.4.3-13
- Fix URL
* Thu Jul 19 2012 Fedora Release Engineering - 1.4.3-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Mon Jun 11 2012 Mikolaj Izdebski - 1.4.3-11
- Update OSGi manifest patch
* Tue May 29 2012 Gerard Ryan - 1.4.3-10
- Add extra information to OSGi manifest
- Fix rpmlint error about mavendepmapfragdir
* Wed Mar 21 2012 Alexander Kurtakov 1.4.3-9
- Drop tomcat6-jsp-api requires - it's dependency management not dependency, hence not needed.
* Fri Jan 13 2012 Fedora Release Engineering - 1.4.3-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Tue Nov 29 2011 Alexander Kurtakov 1.4.3-7
- Build with maven3.
- Adapt to current guidelines.
* Wed Feb 09 2011 Fedora Release Engineering - 1.4.3-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Wed Dec 8 2010 Stanislav Ochotnicky - 1.4.3-5
- Fix pom filenames (#655806)
- Versionless jars/javadocs (new guidelines)
- Migrate to tomcat6 (#652004)
- Other cleanups
* Wed Sep 8 2010 Alexander Kurtakov 1.4.3-4
- Add surefire provider BR.
* Wed Sep 8 2010 Alexander Kurtakov 1.4.3-3
- Drop gcj_support.
- Use javadoc:aggregate.
* Fri Jan 8 2010 Mary Ellen Foster 1.4.3-2
- Remove unnecessary (build)requirement tomcat5-servlet-2.4-api
- Move jar files into subdirectory
* Wed Dec 2 2009 Mary Ellen Foster 1.4.3-1
- Initial package