SPECS: gdal.spec - added xerces and odbc build conditionals - rel. 3

wrobell wrobell at pld-linux.org
Fri Dec 15 13:27:22 CET 2006


Author: wrobell                      Date: Fri Dec 15 12:27:21 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added xerces and odbc build conditionals
- rel. 3

---- Files affected:
SPECS:
   gdal.spec (1.33 -> 1.34) 

---- Diffs:

================================================================
Index: SPECS/gdal.spec
diff -u SPECS/gdal.spec:1.33 SPECS/gdal.spec:1.34
--- SPECS/gdal.spec:1.33	Tue Dec 12 07:34:41 2006
+++ SPECS/gdal.spec	Fri Dec 15 13:27:16 2006
@@ -1,9 +1,14 @@
 # $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	odbc	# disable odbc support
+%bcond_without	xerces	# disable xerces support
+#
 Summary:	Geospatial Data Abstraction Library
 Summary(pl):	Biblioteka abstrakcji danych dotyczących powierzchni Ziemi
 Name:		gdal
 Version:	1.3.2
-Release:	2
+Release:	3
 License:	BSD-like
 Group:		Libraries
 Source0:	ftp://ftp.gdal.org/gdal/%{name}-%{version}.tar.gz
@@ -34,8 +39,8 @@
 BuildRequires:	postgresql-backend-devel
 BuildRequires:	python-devel
 BuildRequires:	sqlite3-devel >= 3
-BuildRequires:	unixODBC-devel
-BuildRequires:	xerces-c-devel >= 2.2.0
+%{?with_odbc:BuildRequires:	unixODBC-devel}
+%{?with_xerces:BuildRequires:	xerces-c-devel >= 2.2.0}
 BuildRequires:	zlib-devel >= 1.1.4
 Requires:	geos >= 2.0
 Requires:	libgeotiff >= 1.2.1
@@ -80,8 +85,8 @@
 Requires:	ogdi-devel >= 3.1
 Requires:	postgresql-devel
 Requires:	sqlite3-devel >= 3
-Requires:	unixODBC-devel
-Requires:	xerces-c-devel >= 2.2.0
+%{?with_odbc:Requires:	unixODBC-devel}
+%{?with_xerces:Requires:	xerces-c-devel >= 2.2.0}
 
 %description devel
 GDAL library header files.
@@ -130,7 +135,7 @@
 	--with-dods-root=/usr \
 	--with-pymoddir=%{py_sitedir} \
 	--with-sqlite \
-	--with-xerces \
+	%{?with_xerces:--with-xerces} \
 	--with-xerces-inc=/usr/include/xercesc \
 	--with-xerces-lib="-lxerces-c" \
 	--without-grass \
@@ -193,6 +198,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.34  2006/12/15 12:27:16  wrobell
+- added xerces and odbc build conditionals
+- rel. 3
+
 Revision 1.33  2006/12/12 06:34:41  qboosh
 - added ac patch
 - compile python modules
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/gdal.spec?r1=1.33&r2=1.34&f=u



More information about the pld-cvs-commit mailing list