From a354d18df134cfd35c8849e2c86c38a1fa3563c0 Mon Sep 17 00:00:00 2001 From: gbenson Date: Oct 07 2004 14:46:21 +0000 Subject: Build on Fedora --- diff --git a/xerces-j2.spec b/xerces-j2.spec index 78c280f..ca3f8ed 100644 --- a/xerces-j2.spec +++ b/xerces-j2.spec @@ -31,8 +31,8 @@ BuildRequires: xml-commons-resolver BuildRequires: xml-commons-apis BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot -Obsoletes: xerces-j -Provides: xerces-j +# RHEL3 and FC2 +Obsoletes: xerces-j <= 0:2.2 %description Welcome to the future! Xerces2 is the next generation of high @@ -113,6 +113,15 @@ Additional utility scripts for %{name}. %setup -T -D -a 1 -n xerces-%{cvs_version} %patch0 -p0 %patch1 -p0 +# Delete stuff that doesn't work with libgcj (#130006). +if java -version 2>&1 | grep -q "gcj"; then + rm -f samples/dom/traversal/IteratorView.java + rm -f samples/dom/traversal/TreeWalkerView.java + rm -f samples/ui/DOMTreeFull.java + rm -f samples/ui/DOMTree.java + rm -f samples/ui/TreeView.java + rm -f samples/ui/TreeViewer.java +fi %build unset CLASSPATH