]> git.pld-linux.org Git - packages/MyODBC.git/commitdiff
some people need libiodbc version, bcond added
authorArtur Frysiak <artur@frysiak.net>
Thu, 7 Feb 2002 10:41:50 +0000 (10:41 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    MyODBC.spec -> 1.8

MyODBC.spec

index 33f583b46f6179b7aba3062b6da2f03850577cf0..910670abeda75f7bdf7da94999fc8a29fe6b4407 100644 (file)
@@ -1,3 +1,4 @@
+# --with iodbs  build with libiodbc not with unixODBC
 Summary:       MyODBC: an ODBC driver for MySQL
 Summary(pl):   MyODBC: driver ODBC dla MySQL
 Name:          MyODBC
@@ -11,7 +12,11 @@ Group(pl):   Aplikacje/Bazy danych
 #Source0:      http://www.mysql.com/Downloads/MyODBC/%{name}-%{version}.tar.gz
 Source0:       ftp://sunsite.icm.edu.pl/pub/unix/mysql/Downloads/MyODBC/%{name}-%{version}.tar.gz
 URL:           http://www.mysql.com/
+%if %{?_with_iodbc:0}%{!?_with_iodbc:1}
 BuildRequires: unixODBC-devel
+%else
+BuildRequires: libiodbc-devel
+%endif
 BuildRequires: mysql-devel >= 3.23.38-2
 BuildRequires: autoconf
 BuildRequires: automake
@@ -35,7 +40,8 @@ automake -a -c -i
 autoconf
 autoheader
 %configure \
-       --with-unixODBC=/usr
+       %{!?_with_iodbc:--with-unixODBC=/usr} \
+       %{?_with_iodbc:--with-iODBC=/usr --with-odbc-ini=/etc/odbc.ini} 
 %{__make}
 
 %install
This page took 0.080878 seconds and 4 git commands to generate.