110 lines
3.8 KiB
RPMSpec
110 lines
3.8 KiB
RPMSpec
%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 '/<script>/s/</</' src/main/java/org/apache/commons/mail/ImageHtmlEmail.java
|
|
|
|
%build
|
|
%mvn_build
|
|
|
|
%install
|
|
%mvn_install
|
|
|
|
%files -f .mfiles
|
|
%license LICENSE.txt NOTICE.txt
|
|
%doc RELEASE-NOTES.txt
|
|
|
|
%files javadoc -f .mfiles-javadoc
|
|
%license LICENSE.txt NOTICE.txt
|
|
|
|
%changelog
|
|
* Fri Aug 11 2017 Mat Booth <mat.booth@redhat.com> - 1.5-1
|
|
- Update to latest upstream release
|
|
- Enable tests (patch out tests that require Internet access)
|
|
|
|
* Fri Aug 11 2017 Mat Booth <mat.booth@redhat.com> - 1.3.1-9
|
|
- Fix javadoc error during build
|
|
|
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-8
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-7
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
* Wed Jun 15 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.3.1-6
|
|
- Regenerate build-requires
|
|
|
|
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-5
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.3.1-2
|
|
- Use Requires: java-headless rebuild (#1067528)
|
|
- Rely on automatic requires
|
|
|
|
* Wed Jul 31 2013 Mat Booth <fedora@matbooth.co.uk> - 1.3.1-1
|
|
- Update to latest upstream, rhbz #975516
|
|
- Remove activation dep from pom, rhbz #820963
|
|
- Adapt for current packaging guidelines
|
|
|
|
* Tue Feb 19 2013 Mat Booth <fedora@matbooth.co.uk> - 1.2-5
|
|
- Add missing BuildRequires on maven-local
|
|
|
|
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
* Sat Apr 16 2011 Chris Spike <spike@fedoraproject.org> 1.2-1
|
|
- Initial version of the package
|