]> git.pld-linux.org Git - packages/MyODBC.git/blame - MyODBC.spec
- rel 2
[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
53282aa7 8Version: 3.51.11
29cb0740 9Release: 2
53282aa7 10License: GPL v2+ + MySQL FLOSS Exception
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
53282aa7 15# Source0-md5: fb295a2a07dab09caf608f2227b531ef
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 \
b4cb80a6 60 --with-qt-libraries=%{_libdir} \
dc7011ee
AM
61%if %{with iodbc}
62 --with-iODBC=/usr \
63 --with-odbc-ini=/etc/odbc.ini
64%else
65 --with-unixODBC=/usr
66%endif
67
cdc48e20 68%{__make}
d256a3dd 69
d256a3dd 70%install
cdc48e20 71rm -rf $RPM_BUILD_ROOT
0d350d71
PG
72
73%{__make} install \
74 DESTDIR=$RPM_BUILD_ROOT
d256a3dd 75
5727d15b
JB
76rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la
77
c7b2ac5a 78%clean
e8e7026e
JB
79rm -rf $RPM_BUILD_ROOT
80
dc7011ee
AM
81%post
82/sbin/ldconfig
83# install text driver
84/usr/bin/odbcinst -i -d -r <<EOF
85[MySQL]
86Description = ODBC for MySQL
87Driver = %{_libdir}/libmyodbc3.so
88FileUsage = 1
89EOF
90
91%postun -p /sbin/ldconfig
92
5727d15b
JB
93%post qt -p /sbin/ldconfig
94%postun qt -p /sbin/ldconfig
95
c7b2ac5a 96%files
cdc48e20 97%defattr(644,root,root,755)
53282aa7 98%doc ChangeLog EXCEPTIONS README
5727d15b
JB
99%attr(755,root,root) %{_libdir}/libmyodbc3-*.so
100%attr(755,root,root) %{_libdir}/libmyodbc3.so
101%attr(755,root,root) %{_libdir}/libmyodbc3_r-*.so
102%attr(755,root,root) %{_libdir}/libmyodbc3_r.so
103
104%files qt
105%defattr(644,root,root,755)
106%attr(755,root,root) %{_libdir}/libmyodbc3S-*.so
107%attr(755,root,root) %{_libdir}/libmyodbc3S.so
This page took 0.042626 seconds and 4 git commands to generate.