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