]> git.pld-linux.org Git - packages/MyODBC.git/blobdiff - MyODBC.spec
- removed all Group fields translations (oure rpm now can handle translating
[packages/MyODBC.git] / MyODBC.spec
index a15c029a415c72dc192d17668eae84853f15459b..cc4137c04df06917af0d781a67f3ed33d88ee394 100644 (file)
@@ -1,16 +1,20 @@
-Name:          MyODBC
+# --with iodbs  build with libiodbc not with unixODBC
 Summary:       MyODBC: an ODBC driver for MySQL
 Summary(pl):   MyODBC: driver ODBC dla MySQL
-Group:         Applications/Databases
-Group(de):     Applikationen/Dateibanken
-Group(pl):     Aplikacje/Bazy danych
-Version:       2.50.37
+Name:          MyODBC
+Version:       2.50.39
 Release:       1
 License:       Public Domain
-Source0:       http://www.mysql.com/Downloads/MyODBC/%{name}-%{version}.tar.gz
-URL:           http://www.mysql.com/
 Vendor:                MySQL AB
+Group:         Applications/Databases
+#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
@@ -34,7 +38,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.050706 seconds and 4 git commands to generate.