From 5be0495fd1452719230da67799f6452a5e2fb882 Mon Sep 17 00:00:00 2001 From: jorton Date: Mar 08 2005 11:21:24 +0000 Subject: - conditionalize java subpackage --- diff --git a/subversion.spec b/subversion.spec index 048f707..044b93e 100644 --- a/subversion.spec +++ b/subversion.spec @@ -1,5 +1,6 @@ # set to zero to avoid running test suite %define make_check 1 +%define with_java %{?_with_java:1}%{!?_with_java:0} # set JDK path to build javahl; default for JPackage %define jdk_path /usr/lib/jvm/java-1.4.2-gcj @@ -74,6 +75,7 @@ Requires: subversion = %{version}-%{release} This package includes the Perl bindings to the Subversion libraries. %endif +%if %{with_java} %package javahl Group: Development/Libraries Summary: JNI bindings to the Subversion libraries @@ -82,6 +84,7 @@ BuildPreReq: java-1.4.2-gcj-compat-devel %description javahl This package includes the JNI bindings to the Subversion libraries. +%endif %prep %setup -q @@ -89,7 +92,9 @@ This package includes the JNI bindings to the Subversion libraries. %patch2 -p1 -b .deplibs %patch3 -p1 -b .rpath %patch6 -p1 -b .pie +%if %{with_java} %patch7 -p1 -b .java +%endif rm -rf neon apr apr-util db4 @@ -108,11 +113,13 @@ export CC=gcc CXX=g++ JAVA_HOME=%{jdk_path} --with-apxs=%{_sbindir}/apxs --disable-mod-activation make %{?_smp_mflags} all %{swigdirs} #make swig-pl swig-py +%if %{with_java} make javahl +%endif %install rm -rf ${RPM_BUILD_ROOT} -make install install-javahl \ +make install %{?_with_java:install-javahl} \ DESTDIR=$RPM_BUILD_ROOT %{swigdirs} # install-swig-py install-swig-pl-lib @@ -219,10 +226,12 @@ rm -rf ${RPM_BUILD_ROOT} %{_mandir}/man*/*::* %endif +%if %{with_java} %files javahl %defattr(-,root,root,-) %{_libdir}/libsvnjavahl-1.* %{_libdir}/svn-javahl +%endif %changelog * Tue Mar 8 2005 Joe Orton 1.1.3-5