diff --git a/xom.spec b/xom.spec index aadf77d..0e06e6e 100644 --- a/xom.spec +++ b/xom.spec @@ -28,10 +28,15 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # +# To build with dom4j issue rpmbuild --with dom4j xom.spec + +%define with_dom4j %{?_with_dom4j:1}%{!?_with_dom4j:0} +%define without_dom4j %{!?_with_dom4j:1}%{?_with_dom4j:0} + Summary: XML Pull Parser Name: xom Version: 1.0 -Release: 3jpp.2%{?dist} +Release: 3jpp.3%{?dist} Epoch: 0 License: LGPL URL: http://www.xom.nu @@ -51,10 +56,13 @@ BuildRequires: junit BuildRequires: xalan-j2 BuildRequires: xerces-j2 BuildRequires: icu4j +%if %{with_dom4j} +BuildRequires: dom4j +%endif BuildRequires: xml-commons-apis BuildRequires: tagsoup -# JAXP implementation in libgcj +# Use JAXP implementation in libgcj BuildRequires: libgcj BuildRequires: xml-commons-resolver BuildRequires: servlet @@ -109,6 +117,11 @@ mkdir lib2 pushd lib2 ln -sf $(build-classpath tagsoup) tagsoup-1.0rc1.jar ln -sf $(build-classpath xml-commons-resolver) resolver.jar + +%if %{with_dom4j} +ln -sf $(build-classpath dom4j) dom4j.jar +%endif + ln -sf $(build-classpath servlet) servlet.jar popd @@ -164,6 +177,9 @@ rm -rf $RPM_BUILD_ROOT %{_datadir}/%{name}-%{version}/xom-samples.jar %changelog +* Mon Mar 12 2007 Vivek Lakshmanan 0:1.0-3jpp.3.fc7 +- Make build with dom4j optional (off by default) + * Mon Mar 12 2007 Vivek Lakshmanan 0:1.0-3jpp.2.fc7 - Remove BR on classpathx-jaxp since libgcj includes the required bits