]>
Commit | Line | Data |
---|---|---|
1 | # --with iodbs build with libiodbc not with unixODBC | |
2 | Summary: MyODBC: an ODBC driver for MySQL | |
3 | Summary(pl): MyODBC: driver ODBC dla MySQL | |
4 | Name: MyODBC | |
5 | Version: 2.50.39 | |
6 | Release: 1 | |
7 | License: Public Domain | |
8 | Vendor: MySQL AB | |
9 | Group: Applications/Databases | |
10 | #Source0: http://www.mysql.com/Downloads/MyODBC/%{name}-%{version}.tar.gz | |
11 | Source0: ftp://sunsite.icm.edu.pl/pub/unix/mysql/Downloads/MyODBC/%{name}-%{version}.tar.gz | |
12 | URL: http://www.mysql.com/ | |
13 | %if %{?_with_iodbc:0}%{!?_with_iodbc:1} | |
14 | BuildRequires: unixODBC-devel | |
15 | %else | |
16 | BuildRequires: libiodbc-devel | |
17 | %endif | |
18 | BuildRequires: mysql-devel >= 3.23.38-2 | |
19 | BuildRequires: autoconf | |
20 | BuildRequires: automake | |
21 | BuildRequires: libtool | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | MyODBC: an ODBC driver for MySQL. | |
26 | ||
27 | %description -l pl | |
28 | MyODBC: sterownik ODBC dla MySQL. | |
29 | ||
30 | %prep | |
31 | %setup -q | |
32 | ||
33 | %build | |
34 | rm -f missing | |
35 | libtoolize --copy --force | |
36 | aclocal | |
37 | automake -a -c -i | |
38 | autoconf | |
39 | autoheader | |
40 | %configure \ | |
41 | %{!?_with_iodbc:--with-unixODBC=/usr} \ | |
42 | %{?_with_iodbc:--with-iODBC=/usr --with-odbc-ini=/etc/odbc.ini} | |
43 | %{__make} | |
44 | ||
45 | %install | |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | %{__make} DESTDIR=$RPM_BUILD_ROOT install | |
48 | ||
49 | gzip -9fn INSTALL ChangeLog | |
50 | ||
51 | %clean | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
54 | %files | |
55 | %defattr(644,root,root,755) | |
56 | %doc {INSTALL,ChangeLog}.gz | |
57 | %attr(755,root,root) %{_libdir}/libmyodbc* |