SPECS: hamcrest.spec - jdk bconds - dropped EA - use system qdox

pawelz pawelz at pld-linux.org
Fri Apr 3 17:54:02 CEST 2009


Author: pawelz                       Date: Fri Apr  3 15:54:02 2009 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- jdk bconds
- dropped EA
- use system qdox

---- Files affected:
SPECS:
   hamcrest.spec (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SPECS/hamcrest.spec
diff -u SPECS/hamcrest.spec:1.1 SPECS/hamcrest.spec:1.2
--- SPECS/hamcrest.spec:1.1	Sun Sep  9 11:28:03 2007
+++ SPECS/hamcrest.spec	Fri Apr  3 17:53:56 2009
@@ -6,6 +6,12 @@
 # Conditional build:
 %bcond_without tests	# don't perform ant unit-test
 #
+%if "%{pld_release}" == "ti"
+%bcond_without	java_sun	# build with gcj
+%else
+%bcond_with	java_sun	# build with java-sun
+%endif
+#
 %include	/usr/lib/rpm/macros.java
 Summary:	Hamcrest - a library of matchers
 Summary(pl.UTF-8):	Hamcrest - biblioteka klas dopasowujących
@@ -17,17 +23,21 @@
 Source0:	http://hamcrest.googlecode.com/files/%{name}-%{version}.tgz
 # Source0-md5:	1bd4fd301c1a0dc748082378a59cb281
 Patch0:		%{name}-nosrc.patch
+Patch1:		%{name}-target.patch
 URL:		http://code.google.com/p/hamcrest/
 BuildRequires:	ant >= 1.6
 %{?with_tests:BuildRequires:	ant-junit >= 1.6}
-BuildRequires:	jdk >= 1.5
+%{!?with_java_sun:BuildRequires:	java-gcj-compat-devel}
+%{?with_tests:BuildRequires:	java-junit}
+BuildRequires:	java-qdox
+%{?with_java_sun:BuildRequires:	java-sun >= 1.5}
 BuildRequires:	jpackage-utils
-%{?with_tests:BuildRequires:	junit}
+BuildRequires:	rpm >= 4.4.9-56
 BuildRequires:	rpm-javaprov
 BuildRequires:	rpmbuild(macros) >= 1.300
 Requires:	jpackage-utils
+Requires:	java-qdox
 BuildArch:	noarch
-ExclusiveArch:	i586 i686 pentium3 pentium4 athlon %{x8664} noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -53,12 +63,15 @@
 %prep
 %setup -q
 %patch0 -p1
+#%%patch1 -p1
 
 rm -f lib/integration/junit*
 
 %build
 export JAVA_HOME="%{java_home}"
 
+CLASSPATH=$(find-jar qdox)
+
 %ant bigjar \
 	-Dversion=%{version}
 
@@ -112,5 +125,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.2  2009/04/03 15:53:56  pawelz
+- jdk bconds
+- dropped EA
+- use system qdox
+
 Revision 1.1  2007/09/09 09:28:03  qboosh
 - new
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/hamcrest.spec?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list