]> git.pld-linux.org Git - packages/MyODBC.git/blame - MyODBC.spec
rel ++
[packages/MyODBC.git] / MyODBC.spec
CommitLineData
c4d6ce8d
JB
1#
2# Conditional build:
3%bcond_with iodbc # build with libiodbc instead of unixODBC
4#
d256a3dd 5Summary: MyODBC: an ODBC driver for MySQL
e8e7026e 6Summary(pl): MyODBC: driver ODBC dla MySQL
5c85c610 7Name: MyODBC
5727d15b 8Version: 3.51.10
0ef14a26 9Release: 2
5727d15b 10License: GPL v2+
5c85c610 11Vendor: MySQL AB
5727d15b 12Group: Libraries
3dc51c84 13#Source0: http://www.mysql.com/Downloads/MyODBC/%{name}-%{version}.tar.gz
836c7669 14Source0: ftp://sunsite.icm.edu.pl/pub/unix/mysql/Downloads/MyODBC3/%{name}-%{version}.tar.gz
5727d15b 15# Source0-md5: 34334272eb6f60dffc793c9aa3d29154
d256a3dd 16URL: http://www.mysql.com/
0d350d71
PG
17BuildRequires: autoconf
18BuildRequires: automake
c4d6ce8d 19%if %{with iodbc}
faa859df 20BuildRequires: libiodbc-devel
dc7011ee
AM
21%else
22BuildRequires: unixODBC-devel
faa859df 23%endif
7ea365a2 24BuildRequires: libltdl-devel
88023e2d 25BuildRequires: libtool
0d350d71 26BuildRequires: mysql-devel >= 4.0.10
5727d15b 27BuildRequires: qt-devel
dc7011ee 28Requires(post): /usr/bin/odbcinst
cdc48e20 29BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
d256a3dd 30
d256a3dd 31%description
e8e7026e
JB
32MyODBC: an ODBC driver for MySQL.
33
34%description -l pl
a9d5ffcc 35MyODBC: sterownik ODBC dla MySQL.
d256a3dd 36
5727d15b
JB
37%package qt
38Summary: MyODBC - Qt-based setup library
39Summary(pl): MyODBC - Oparta o Qt biblioteka konfiguracyjna
40Group: Libraries
41Requires: %{name} = %{version}-%{release}
42
43%description qt
44MyODBC - Qt-based setup library.
45
46%description qt -l pl
47MyODBC - Oparta o Qt biblioteka konfiguracyjna.
48
d256a3dd 49%prep
8b0c791b 50%setup -q
d256a3dd
AF
51
52%build
47780f9b 53%{__libtoolize}
d00ddd52 54%{__aclocal}
55%{__automake} -i
b7e0fc20 56%{__autoconf}
d00ddd52 57%{__autoheader}
5727d15b 58LDFLAGS="%{rpmldflags} -L/usr/X11R6/%{_lib}"
cdc48e20 59%configure \
dc7011ee
AM
60%if %{with iodbc}
61 --with-iODBC=/usr \
62 --with-odbc-ini=/etc/odbc.ini
63%else
64 --with-unixODBC=/usr
65%endif
66
cdc48e20 67%{__make}
d256a3dd 68
d256a3dd 69%install
cdc48e20 70rm -rf $RPM_BUILD_ROOT
0d350d71
PG
71
72%{__make} install \
73 DESTDIR=$RPM_BUILD_ROOT
d256a3dd 74
5727d15b
JB
75rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la
76
c7b2ac5a 77%clean
e8e7026e
JB
78rm -rf $RPM_BUILD_ROOT
79
dc7011ee
AM
80%post
81/sbin/ldconfig
82# install text driver
83/usr/bin/odbcinst -i -d -r <<EOF
84[MySQL]
85Description = ODBC for MySQL
86Driver = %{_libdir}/libmyodbc3.so
87FileUsage = 1
88EOF
89
90%postun -p /sbin/ldconfig
91
5727d15b
JB
92%post qt -p /sbin/ldconfig
93%postun qt -p /sbin/ldconfig
94
c7b2ac5a 95%files
cdc48e20 96%defattr(644,root,root,755)
5727d15b
JB
97%doc ChangeLog INSTALL README
98%attr(755,root,root) %{_libdir}/libmyodbc3-*.so
99%attr(755,root,root) %{_libdir}/libmyodbc3.so
100%attr(755,root,root) %{_libdir}/libmyodbc3_r-*.so
101%attr(755,root,root) %{_libdir}/libmyodbc3_r.so
102
103%files qt
104%defattr(644,root,root,755)
105%attr(755,root,root) %{_libdir}/libmyodbc3S-*.so
106%attr(755,root,root) %{_libdir}/libmyodbc3S.so
This page took 0.090995 seconds and 4 git commands to generate.