]> git.pld-linux.org Git - packages/MyODBC.git/blobdiff - MyODBC.spec
- massive attack: adding Source-md5
[packages/MyODBC.git] / MyODBC.spec
index 16cb4218810c2cceda45670a02ced8a86a81f3e7..e035d963783ce540e6864cb5fd6f0324f7d5e858 100644 (file)
@@ -1,17 +1,22 @@
+# --with iodbs  build with libiodbc not with unixODBC
 Summary:       MyODBC: an ODBC driver for MySQL
 Summary(pl):   MyODBC: driver ODBC dla MySQL
 Name:          MyODBC
-Version:       2.50.39
-Release:       1
+Version:       3.51.05
+Release:       2
 License:       Public Domain
 Vendor:                MySQL AB
 Group:         Applications/Databases
-Group(de):     Applikationen/Dateibanken
-Group(pl):     Aplikacje/Bazy danych
-Source0:       http://www.mysql.com/Downloads/MyODBC/%{name}-%{version}.tar.gz
+#Source0:      http://www.mysql.com/Downloads/MyODBC/%{name}-%{version}.tar.gz
+Source0:       ftp://sunsite.icm.edu.pl/pub/unix/mysql/Downloads/MyODBC3/%{name}-%{version}.tar.gz
+# Source0-md5: 78cdf7175de224fb445daf2634683e98
 URL:           http://www.mysql.com/
+%if %{?_with_iodbc:0}%{!?_with_iodbc:1}
 BuildRequires: unixODBC-devel
-BuildRequires: mysql-devel >= 3.23.38-2
+%else
+BuildRequires: libiodbc-devel
+%endif
+BuildRequires: mysql-devel >= 4.0.10
 BuildRequires: autoconf
 BuildRequires: automake
 BuildRequires: libtool
@@ -21,32 +26,31 @@ BuildRoot:  %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 MyODBC: an ODBC driver for MySQL.
 
 %description -l pl
-MyODBC: driver ODBC dla MySQL.
+MyODBC: sterownik ODBC dla MySQL.
 
 %prep
 %setup -q
 
 %build
 rm -f missing
-libtoolize --copy --force
-aclocal
-automake -a -c -i
-autoconf
-autoheader
+%{__libtoolize}
+%{__aclocal}
+%{__automake} -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
 rm -rf $RPM_BUILD_ROOT
 %{__make} DESTDIR=$RPM_BUILD_ROOT install
 
-gzip -9fn INSTALL ChangeLog
-
 %clean 
 rm -rf $RPM_BUILD_ROOT
 
 %files 
 %defattr(644,root,root,755)
-%doc {INSTALL,ChangeLog}.gz
+%doc INSTALL ChangeLog
 %attr(755,root,root) %{_libdir}/libmyodbc*
This page took 0.03252 seconds and 4 git commands to generate.