pkg://MyODBC-2.50.39-11.src.rpm:231271/MyODBC.spec
info downloads
Summary: ODBC driver for MySQL
Name: MyODBC
Version: 2.50.39
Release: 11
URL: http://www.mysql.com/downloads/api-myodbc.html
Source: http://www.mysql.com/Downloads/MyODBC/MyODBC-%{version}.tar.gz
License: Public Domain
Group: System Environment/Libraries
Requires: unixODBC
BuildRequires: mysql-devel unixODBC-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
An ODBC driver for MySQL, for use with unixODBC.
%prep
%setup -q
%build
libtoolize --copy --force
%ifarch x86_64 s390x
export LDFLAGS=-L%{_libdir}/mysql
%endif
./configure --with-unixODBC=/usr/foo --with-odbc-ini=/etc/odbc.ini --prefix=/usr --sysconfdir=/etc --libdir=%{_libdir}
make
%install
rm -rf $RPM_BUILD_ROOT
%makeinstall
rm -rf $RPM_BUILD_ROOT%{_libdir}/libmyodbc.la
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc INSTALL ChangeLog odbc.ini
%{_libdir}/lib*so
%changelog
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
- rebuilt
* Mon Jan 13 2003 Karsten Hopp <karsten@redhat.de> 2.50.39-10
- use lib64 on s390x
* Thu Dec 19 2002 Phil Knirsch <pknirsch@redhat.com> 2.50.39-9
- Fix unpackaged files.
- Fix build on x86_64.
* Wed Dec 11 2002 Tim Powers <timp@redhat.com> 2.50.39-8
- lib64'ize
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
- automated rebuild
* Thu May 23 2002 Tim Powers <timp@redhat.com>
- automated rebuild
* Mon May 13 2002 Trond Eivind Glomsrød <teg@redhat.com> 2.50.39-5
- Don't do automake tricks - just do a libtoolize
- Don't use %%configure
* Wed Feb 27 2002 Trond Eivind Glomsrød <teg@redhat.com> 2.50.39-4
- Rebuild
* Thu Jan 24 2002 Trond Eivind Glomsrød <teg@redhat.com> 2.50.39-3
- Rebuild
- libtoolize, autoreconf
- specify unixODBC prefix as "/var/tmp" (which exists, but isn't used).
If you specify /usr, gcc will complain about a system path being
listed (and thus configure will fail) if you don't, autoconf will
think the prefix is "yes" and do a "-Lyes/lib". POC.
* Mon Oct 1 2001 Trond Eivind Glomsrød <teg@redhat.com> 2.50.39-1
- 2.50.39
* Fri Jul 13 2001 Trond Eivind Glomsrød <teg@redhat.com>
- move requirement of unixODBC-devel from runtime to buildtime
* Tue Apr 24 2001 Trond Eivind Glomsrød <teg@redhat.com>
- Initial build.