No hamcrest src

This commit is contained in:
Tomas Radej 2013-03-21 14:49:27 +01:00
parent 9ea9d9ba1f
commit 8834406809
4 changed files with 35 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
junit3.8.2.zip
/junit-4.10.tar.xz
/r4.11.tar.gz

View File

@ -0,0 +1,31 @@
diff --git a/build.xml b/build.xml
index 0efaf87..62e1df3 100644
--- a/build.xml
+++ b/build.xml
@@ -30,7 +30,6 @@
<property name="javadoczip" location="${dist}-javadoc.zip" />
<property name="hamcrestlib" location="lib/hamcrest-core-1.3.jar" />
<property name="hamcrestlibsources" location="lib/hamcrest-core-1.3-sources.jar" />
- <property name="hamcrestsrc" location="${dist}/temp.hamcrest.source" />
<property name="maven.deploy.goal" value="org.apache.maven.plugins:maven-gpg-plugin:1.1:sign-and-deploy-file" />
@@ -125,10 +124,6 @@
</copy>
</target>
- <target name="unjar.hamcrest">
- <unjar src="${hamcrestlibsources}" dest="${hamcrestsrc}" />
- </target>
-
<target name="release-notes">
<property name="basename" value="doc/ReleaseNotes${version-base}" />
<exec executable="perl" failonerror="true">
@@ -151,7 +146,6 @@
<excludepackage name="org.junit.experimental.theories.internal.*" />
<sourcepath location="${src}" />
- <sourcepath location="${hamcrestsrc}" />
<link href="http://java.sun.com/javase/6/docs/api/" />
</javadoc>
</target>

View File

@ -41,6 +41,7 @@ BuildArch: noarch
Source0: https://github.com/junit-team/junit/archive/r%{version}.tar.gz
Source2: junit-OSGi-MANIFEST.MF
Patch0: %{name}-removed-test.patch
Patch1: %{name}-no-hamcrest-src.patch
BuildRequires: ant
BuildRequires: ant-contrib
@ -96,6 +97,7 @@ Demonstrations and samples for %{name}.
%prep
%setup -q -n %{name}-r%{version}
#%patch0 -p1
%patch1 -p1
cp build/maven/junit-pom-template.xml pom.xml
find -iname '*.class' -o -iname '*.jar' -delete
ln -s $(build-classpath hamcrest/core) lib/hamcrest-core-1.3.jar

View File

@ -1 +1 @@
48a301080612344294fdfe123f7abe91 junit-4.10.tar.xz
bf62095e510f50baf0962af329438647 r4.11.tar.gz