Make easymock3 dependency conditional for Fedora

This commit is contained in:
Stanislav Ochotnicky 2012-08-27 18:04:08 +02:00
parent a00cbbc9a2
commit 7c89621c6e

View File

@ -4,7 +4,7 @@
Name: apache-%{short_name}
Version: 3.1
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Provides a host of helper utilities for the java.lang API
License: ASL 2.0
Group: Development/Libraries
@ -19,7 +19,10 @@ BuildRequires: maven
BuildRequires: apache-commons-parent
BuildRequires: apache-commons-io
BuildRequires: junit4
%if 0%{?rhel} <= 0
BuildRequires: easymock3
%endif
BuildRequires: maven-antrun-plugin
BuildRequires: maven-plugin-bundle
BuildRequires: maven-resources-plugin
@ -58,7 +61,11 @@ Requires: jpackage-utils
%setup -q -n %{short_name}-%{version}-src
%build
mvn-rpmbuild install javadoc:javadoc
mvn-rpmbuild \
%if 0%{?rhel}
-Dmaven.test.skip=true \
%endif
install javadoc:aggregate
%install
@ -88,6 +95,9 @@ cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
%doc %{_javadocdir}/%{name}
%changelog
* Mon Aug 27 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.1-3
- Make easymock3 dependency conditional for Fedora
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild