%global short_name commons-email Name: apache-%{short_name} Version: 1.5 Release: 1%{?dist} Summary: Apache Commons Email Package License: ASL 2.0 URL: http://commons.apache.org/proper/%{short_name}/ BuildArch: noarch Source0: http://archive.apache.org/dist/commons/email/source/%{short_name}-%{version}-src.tar.gz # Disable tests that require Internet access Patch0: disable-internet-tests.patch BuildRequires: maven-local BuildRequires: mvn(commons-io:commons-io) BuildRequires: mvn(com.sun.mail:javax.mail) BuildRequires: mvn(junit:junit) BuildRequires: mvn(org.apache.commons:commons-parent:pom:) BuildRequires: mvn(org.easymock:easymock) BuildRequires: mvn(org.powermock:powermock-api-easymock) BuildRequires: mvn(org.powermock:powermock-module-junit4) BuildRequires: mvn(org.slf4j:slf4j-jdk14) BuildRequires: mvn(org.subethamail:subethasmtp) %description Commons-Email aims to provide an API for sending email. It is built on top of the JavaMail API, which it aims to simplify. %package javadoc Summary: Javadoc for %{name} %description javadoc This package contains the API documentation for %{name}. %prep %setup -q -n %{short_name}-%{version}-src %patch0 # Compatibility links %mvn_alias "org.apache.commons:commons-email" "commons-email:commons-email" %mvn_file :commons-email %{short_name} %{name} # Javascript in Javadoc mis-detection sed -i -e '/