+#
+# --with-iodbc build with iodbc support
+
+%bcond_with iodbc # use iodbc instead of unix-odbc
+
Summary: ODBC interface to PostgreSQL
Summary(es): Driver ODBC para acceder un servidor PostgreSQL
Summary(pl): Interfejs ODBC do PostgreSQL
# Source0-md5: 701c7c55831652d35937c2efaeaab26d
URL: http://gborg.postgresql.org/project/psqlodbc/projdisplay.php
BuildRequires: postgresql-devel
-BuildRequires: unixODBC-devel
+%{?!with_iodbc:BuildRequires: unixODBC-devel}
+%{?with_iodbc:BuildRequires: libiodbc-devel}
+%{?with_iodbc:Requires: libiodbc}
+
Obsoletes: postgresql-odbc
Obsoletes: postgresql-odbc-devel
Obsoletes: postgresql-odbc-static
%description
This package includes library for interface ODBC.
+%{?with_iodbc:This rpm uses libiODBC}
%description -l es
Driver para acceder un servidor PostgreSQL, a través de ODBC.
+%{?with_iodbc:This rpm uses libiODBC}
%description -l pl
Pakiet ten zawiera biblioteki dla interfejsu ODBC.
+%{?with_iodbc:Ta paczka rpm u¿ywa libiODBC}
%description -l pt_BR
Driver ODBC necessário para acessar um servidor PostgreSQL.
+%{?with_iodbc:This rpm uses libiODBC}
%prep
%setup -q
%build
%configure \
- --with-unixodbc
+%{?with_iodbc: --with-iodbc}
+# --with-unixodbc
%{__make}
%install