Name: javamail Version: 1.6.5 Release: 2%{?dist} Summary: Java Mail API License: EPL-2.0 or GPLv2 with exceptions URL: https://github.com/eclipse-ee4j/mail BuildArch: noarch Source: https://github.com/eclipse-ee4j/mail/archive/%{version}.tar.gz BuildRequires: maven-local BuildRequires: mvn(org.apache.maven.plugins:maven-dependency-plugin) BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin) BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin) BuildRequires: mvn(org.eclipse.ee4j:project:pom:) BuildRequires: mvn(com.sun.activation:jakarta.activation) # Adapted from the classpathx-mail (and JPackage glassfish-javamail) Provides. Provides: javamail-monolithic = %{version}-%{release} Provides: javax.mail = %{version}-%{release} %description The JavaMail API provides a platform-independent and protocol-independent framework to build mail and messaging applications. The JavaMail API is available as an optional package for use with the Java SE platform and is also included in the Java EE platform. %package javadoc Summary: Javadoc for %{name} %description javadoc %{summary}. %prep %setup -q -n mail-%{version} %pom_disable_module android %pom_remove_plugin :osgiversion-maven-plugin %pom_remove_plugin :maven-enforcer-plugin # Remove profiles containing demos and other stuff that is not # supposed to be deployable. %pom_xpath_remove /pom:project/pom:profiles # Alias to artifact name used in previous versions %mvn_alias "com.sun.mail:jakarta.mail" "com.sun.mail:javax.mail" %mvn_alias "jakarta.mail:jakarta.mail-api" "javax.mail:javax.mail-api" # Alternative names for super JAR containing API and implementation. %mvn_alias com.sun.mail:mailapi javax.mail:mailapi %mvn_alias com.sun.mail:jakarta.mail javax.mail:mail \ org.eclipse.jetty.orbit:javax.mail.glassfish %mvn_file "com.sun.mail:{javax.mail}" %{name}/@1 %{name}/mail %build # skip javadoc generation # ignore test failures %mvn_build -j -- -Dmaven.test.failure.ignore=true -Dmail.osgiversion=1.6.5 %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 README.md %license LICENSE.md %{_javadir}/javax.mail/ %changelog * Wed Aug 12 2020 Alex Macdonald 1.6.5-2 - Fix the mvn alias on javax.mail:mail * Tue Jun 16 2020 Jie Kang - 1.6.5-1 - Update to upstream 1.6.5 * Fri May 31 2019 Jie Kang - 1.6.3-4 - Remove unnecessary plugins * Fri Jan 4 2019 Jie Kang - 1.6.3-3 - Update BRs, fix setup process and fix build process * Thu Nov 22 2018 Salman Siddiqui - 1.6.3-2 - Use official version 1.6.3 release * Tue Oct 16 2018 Salman Siddiqui - 1.6.3-1 - Version update (new sources: https://github.com/eclipse-ee4j/javamail) * Tue Aug 21 2018 Salman Siddiqui - 1.6.1-1 - Version update (new sources: https://github.com/javaee/javamail) * 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