- drop junit from dependencies, it's not needed and cause a build cycle
OBS-URL: https://build.opensuse.org/package/show/Java:packages/hamcrest?expand=0&rev=11
This commit is contained in:
parent
eee6d90e82
commit
fec38b9fd1
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Oct 29 12:51:11 UTC 2013 - mvyskocil@suse.com
|
||||||
|
|
||||||
|
- drop junit from dependencies, it's not needed and cause a build cycle
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Oct 21 11:34:31 UTC 2013 - mvyskocil@suse.com
|
Mon Oct 21 11:34:31 UTC 2013 - mvyskocil@suse.com
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
%define _without_tests 1
|
%define _without_tests 1
|
||||||
%define _withouth_jarjar 1
|
%define _withouth_jarjar 1
|
||||||
|
|
||||||
# This option controls integration which requires easymock2 and jmock
|
# This option controls integration which requires easymock2 and jmock and junit
|
||||||
%bcond_without integration
|
%bcond_without integration
|
||||||
|
|
||||||
# This option controls jarjar on qdox
|
# This option controls jarjar on qdox
|
||||||
@ -76,7 +76,6 @@ Requires: jmock
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
BuildRequires: ant >= 1.6.5
|
BuildRequires: ant >= 1.6.5
|
||||||
#BuildRequires: ant-junit
|
|
||||||
BuildRequires: java-devel >= 1.6.0
|
BuildRequires: java-devel >= 1.6.0
|
||||||
BuildRequires: javapackages-tools
|
BuildRequires: javapackages-tools
|
||||||
BuildRequires: zip
|
BuildRequires: zip
|
||||||
@ -87,15 +86,10 @@ BuildRequires: easymock2
|
|||||||
BuildRequires: jarjar
|
BuildRequires: jarjar
|
||||||
%endif
|
%endif
|
||||||
%if %with integration
|
%if %with integration
|
||||||
|
BuildRequires: ant-junit
|
||||||
BuildRequires: jmock
|
BuildRequires: jmock
|
||||||
%endif
|
|
||||||
BuildRequires: junit
|
BuildRequires: junit
|
||||||
#FIXME: build with junit4 once we will update junit4 to 4.11
|
%endif
|
||||||
# and remove bundled hamcrest parts, prevents us to build
|
|
||||||
# hamcrest itself
|
|
||||||
#BuildRequires: junit4
|
|
||||||
#junit4 does require hamcrest, but we don't need it for building itself
|
|
||||||
#!BuildIgnore: hamcrest
|
|
||||||
BuildRequires: qdox
|
BuildRequires: qdox
|
||||||
%if %with tests
|
%if %with tests
|
||||||
BuildRequires: testng
|
BuildRequires: testng
|
||||||
@ -149,11 +143,11 @@ ln -sf $(build-classpath easymock2) lib/integration/
|
|||||||
# BUILD/%{name}-%{version}/lib/integration/jmock-%{version}0RC1.jar.no
|
# BUILD/%{name}-%{version}/lib/integration/jmock-%{version}0RC1.jar.no
|
||||||
%if %with integration
|
%if %with integration
|
||||||
ln -sf $(build-classpath jmock) lib/integration/
|
ln -sf $(build-classpath jmock) lib/integration/
|
||||||
%endif
|
|
||||||
# BUILD/%{name}-%{version}/lib/integration/junit-3.8.1.jar.no
|
# BUILD/%{name}-%{version}/lib/integration/junit-3.8.1.jar.no
|
||||||
ln -sf $(build-classpath junit) lib/integration/
|
ln -sf $(build-classpath junit) lib/integration/
|
||||||
# BUILD/%{name}-%{version}/lib/integration/junit-4.0.jar.no
|
# BUILD/%{name}-%{version}/lib/integration/junit-4.0.jar.no
|
||||||
#ln -sf $(build-classpath junit4) lib/integration/
|
#ln -sf $(build-classpath junit4) lib/integration/
|
||||||
|
%endif
|
||||||
# BUILD/%{name}-%{version}/lib/integration/testng-4.6-jdk15.jar.no
|
# BUILD/%{name}-%{version}/lib/integration/testng-4.6-jdk15.jar.no
|
||||||
%if %with tests
|
%if %with tests
|
||||||
ln -sf $(build-classpath testng-jdk15) lib/integration/
|
ln -sf $(build-classpath testng-jdk15) lib/integration/
|
||||||
@ -172,7 +166,9 @@ perl -pi -e 's/\r$//g' LICENSE.txt
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
export CLASSPATH=$(build-classpath qdox)
|
export CLASSPATH=$(build-classpath qdox)
|
||||||
|
%if %with integration
|
||||||
export OPT_JAR_LIST="junit ant/ant-junit"
|
export OPT_JAR_LIST="junit ant/ant-junit"
|
||||||
|
%endif
|
||||||
# The unit-test goal is switched off as some tests fail with JDK 7
|
# The unit-test goal is switched off as some tests fail with JDK 7
|
||||||
# see https://github.com/hamcrest/JavaHamcrest/issues/30
|
# see https://github.com/hamcrest/JavaHamcrest/issues/30
|
||||||
ant -Dant.build.javac.source=1.5 -Dversion=%{version} -Dbuild.sysclasspath=last clean core generator library bigjar javadoc
|
ant -Dant.build.javac.source=1.5 -Dversion=%{version} -Dbuild.sysclasspath=last clean core generator library bigjar javadoc
|
||||||
|
Loading…
Reference in New Issue
Block a user