]> git.pld-linux.org Git - packages/MyODBC.git/blob - MyODBC.spec
- updated to 3.51.09
[packages/MyODBC.git] / MyODBC.spec
1 #
2 # Conditional build:
3 %bcond_with     iodbc   # build with libiodbc instead of unixODBC
4 #
5 Summary:        MyODBC: an ODBC driver for MySQL
6 Summary(pl):    MyODBC: driver ODBC dla MySQL
7 Name:           MyODBC
8 Version:        3.51.09
9 Release:        1
10 License:        Public Domain
11 Vendor:         MySQL AB
12 Group:          Applications/Databases
13 #Source0:       http://www.mysql.com/Downloads/MyODBC/%{name}-%{version}.tar.gz
14 Source0:        ftp://sunsite.icm.edu.pl/pub/unix/mysql/Downloads/MyODBC3/%{name}-%{version}.tar.gz
15 # Source0-md5:  2ef0652d82fc327e28db76b8554dbf31
16 URL:            http://www.mysql.com/
17 BuildRequires:  autoconf
18 BuildRequires:  automake
19 %if %{with iodbc}
20 BuildRequires:  libiodbc-devel
21 %else
22 BuildRequires:  unixODBC-devel
23 %endif
24 BuildRequires:  libltdl-devel
25 BuildRequires:  libtool
26 BuildRequires:  mysql-devel >= 4.0.10
27 Requires(post): /usr/bin/odbcinst
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %description
31 MyODBC: an ODBC driver for MySQL.
32
33 %description -l pl
34 MyODBC: sterownik ODBC dla MySQL.
35
36 %prep
37 %setup -q
38
39 %build
40 %{__libtoolize}
41 %{__aclocal}
42 %{__automake} -i
43 %{__autoconf}
44 %{__autoheader}
45 %configure \
46 %if %{with iodbc}
47         --with-iODBC=/usr \
48         --with-odbc-ini=/etc/odbc.ini
49 %else
50         --with-unixODBC=/usr
51 %endif
52
53 %{__make}
54
55 %install
56 rm -rf $RPM_BUILD_ROOT
57
58 %{__make} install \
59         DESTDIR=$RPM_BUILD_ROOT
60
61 %clean
62 rm -rf $RPM_BUILD_ROOT
63
64 %post
65 /sbin/ldconfig
66 # install text driver
67 /usr/bin/odbcinst -i -d -r <<EOF
68 [MySQL]
69 Description = ODBC for MySQL
70 Driver = %{_libdir}/libmyodbc3.so
71 FileUsage = 1
72 EOF
73
74 %postun -p /sbin/ldconfig
75
76 %files
77 %defattr(644,root,root,755)
78 %doc INSTALL ChangeLog
79 %attr(755,root,root) %{_libdir}/libmyodbc*
This page took 0.048287 seconds and 3 git commands to generate.