packages: subversion/subversion.spec - add csvn bcond for ctypes based Pyth...

glen glen at pld-linux.org
Sun Mar 13 16:31:40 CET 2011


Author: glen                         Date: Sun Mar 13 15:31:40 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- add csvn bcond for ctypes based Python bindings

---- Files affected:
packages/subversion:
   subversion.spec (1.302 -> 1.303) 

---- Diffs:

================================================================
Index: packages/subversion/subversion.spec
diff -u packages/subversion/subversion.spec:1.302 packages/subversion/subversion.spec:1.303
--- packages/subversion/subversion.spec:1.302	Sun Mar 13 16:29:34 2011
+++ packages/subversion/subversion.spec	Sun Mar 13 16:31:34 2011
@@ -7,14 +7,15 @@
 %bcond_with	net_client_only		# build only net client
 %bcond_without	neon			# use serf instead of neon
 %bcond_without	swig			# disable bindings generation with Swig
-%bcond_without	python			# build without python bindings (broken)
-%bcond_without	perl			# build without perl bindings
-%bcond_without	ruby			# build without ruby bindings
+%bcond_without	python			# build without Python bindings (broken)
+%bcond_without	csvn			# build Python csvn bindings
+%bcond_without	perl			# build without Perl bindings
+%bcond_without	ruby			# build without Ruby bindings
 %bcond_without	apache			# build without Apache support (webdav, etc)
 %bcond_without	javahl			# build without javahl support (Java high-level bindings)
 %bcond_without	tests			# don't perform "make check"
 %bcond_without	kwallet			# build without kde4 wallet support
-%bcond_without	kde			# build without kde4 support (alias for kwallet)
+%bcond_without	kde				# build without kde4 support (alias for kwallet)
 %bcond_without	gnome			# build without gnome keyring support
 %bcond_without	db				# disable Subversion Berkeley DB based filesystem library
 
@@ -83,9 +84,11 @@
 BuildRequires:	rpm-perlprov >= 4.1-13
 BuildRequires:	swig-perl >= 1.3.24
 %endif
-%if %{with python}
+%if %{with csvn}
 BuildRequires:	python-ctypesgen
-BuildRequires:	python-devel >= 1:2.5
+%endif
+%if %{with python}
+BuildRequires:	python-devel >= 1:2.4
 BuildRequires:	swig-python >= 1.3.24
 %endif
 %if %{with ruby}
@@ -453,7 +456,7 @@
 %if %{without ruby}
 	ac_cv_path_RUBY=none \
 %endif
-	%{?with_python:--with-ctypesgen=%{_bindir}/ctypesgen.py} \
+	%{?with_csvn:--with-ctypesgen=%{_bindir}/ctypesgen.py} \
 	--%{?with_javahl:en}%{!?with_javahl:dis}able-javahl \
 	--with-jdk="%{java_home}" \
 	--without-jikes \
@@ -478,8 +481,10 @@
 
 # python
 %if %{with python}
+%if %{with csvn}
 # ctypes bindings
 %{__make} ctypes-python
+%endif
 # swig bindings
 %{__make} swig-py \
 	swig_pydir=%{py_sitedir}/libsvn \
@@ -506,7 +511,9 @@
 %if %{with tests}
 %{__make} check
 %if %{with python}
+%if %{with csvn}
 %{__make} check-ctypes-python
+%endif
 %{__make} check-swig-py
 %endif
 %if %{with perl}
@@ -533,8 +540,10 @@
 %endif
 %if %{with python}
 	install-swig-py \
+%if %{with csvn}
 	install-ctypes-python \
 %endif
+%endif
 %if %{with ruby}
 	install-swig-rb install-swig-rb-doc \
 %endif
@@ -821,6 +830,7 @@
 %{py_sitedir}/svn/*.py[co]
 %{_examplesdir}/python-%{name}-%{version}
 
+%if %{with csvn}
 %files -n python-csvn
 %defattr(644,root,root,755)
 %doc subversion/bindings/ctypes-python/{README,TODO}
@@ -833,6 +843,7 @@
 %{py_sitescriptdir}/csvn/ext/*.py[co]
 %{py_sitescriptdir}/svn_ctypes_python_bindings-0.1-py*.egg-info
 %endif
+%endif
 
 %if %{with perl}
 %files -n perl-subversion
@@ -883,6 +894,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.303  2011/03/13 15:31:34  glen
+- add csvn bcond for ctypes based Python bindings
+
 Revision 1.302  2011/03/13 15:29:34  glen
 - make --without ruby to work
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/subversion/subversion.spec?r1=1.302&r2=1.303&f=u



More information about the pld-cvs-commit mailing list