Name: javamail Version: 1.5.1 Release: %mkrel 1 Summary: Java Mail API License: CDDL or GPLv2 with exceptions URL: http://www.oracle.com/technetwork/java/javamail BuildArch: noarch Group: Development/Java # hg clone https://hg.java.net/hg/javamail~mercurial # (cd ./javamail~mercurial && hg archive -r JAVAMAIL-%(sed s/\\./_/g <<<"%{version}") ../%{name}-%{version}) # tar caf %{name}-%{version}.tar.xz %{name}-%{version} Source: %{name}-%{version}.tar.xz BuildRequires: maven-local BuildRequires: mvn(junit:junit) BuildRequires: mvn(net.java:jvnet-parent) 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} Group: Documentation %description javadoc %{summary}. %prep %setup -q add_dep() { %pom_xpath_inject pom:project "<dependencies/>" ${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_xpath_inject /pom:project/pom:properties "<mail.osgiversion>%{version}</mail.osgiversion>" %pom_xpath_inject /pom:project/pom:build/pom:plugins/pom:plugin/pom:configuration/pom:instructions "<_nouses>true</_nouses>" # 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 Dec 31 2014 pterjan <pterjan> 1.5.1-1.mga5 + Revision: 807653 - Sync with Fedora 21 (update to 1.5.1) * Wed Oct 15 2014 umeabot <umeabot> 1.5.0-6.mga5 + Revision: 739982 - Second Mageia 5 Mass Rebuild - Mageia 5 Mass Rebuild - Mageia 4 Mass Rebuild * Mon Sep 23 2013 dmorgan <dmorgan> 1.5.0-3.mga4 + Revision: 484155 - Add javax.mail provides and directory * Sat Jul 13 2013 dmorgan <dmorgan> 1.5.0-1.mga4 + Revision: 453732 - New version * Sat Jan 12 2013 umeabot <umeabot> 1.4.3-11.mga3 + Revision: 354843 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Sat Dec 29 2012 spuhler <spuhler> 1.4.3-10.mga3 + Revision: 336135 - bumped rel for rebuild and get it signed + dmorgan <dmorgan> - Build with maven3 - Add workaround for file provide * Thu Apr 28 2011 dmorgan <dmorgan> 1.4.3-7.mga1 + Revision: 92534 - Rebuild after bootstrapping - imported package javamail * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.3-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Wed Dec 8 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 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 <akurtako@redhat.com> 1.4.3-4 - Add surefire provider BR. * Wed Sep 8 2010 Alexander Kurtakov <akurtako@redhat.com> 1.4.3-3 - Drop gcj_support. - Use javadoc:aggregate. * Fri Jan 8 2010 Mary Ellen Foster <mefoster at gmail.com> 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 <mefoster at gmail.com> 1.4.3-1 - Initial package