MyODBC-vl.spec 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. %define __libtoolize true
  2. Summary: ODBC driver for MySQL
  3. Name: MyODBC
  4. Version: 3.51.11
  5. Release: 1%{?_dist_release}
  6. URL: http://www.mysql.com/downloads/api-myodbc.html
  7. Source: http://www.mysql.com/Downloads/MyODBC/MyODBC-%{version}.tar.gz
  8. License: Public Domain
  9. Group: System Environment/Libraries
  10. Requires: unixODBC
  11. BuildRequires: MySQL-devel unixODBC-devel XOrg-devel qt-devel
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. %description
  14. An ODBC driver for MySQL, for use with unixODBC.
  15. %prep
  16. %setup -q
  17. %build
  18. %configure \
  19. --with-unixODBC=%{_prefix} \
  20. --with-odbc-ini=/etc/odbc.ini \
  21. --with-mysql-dirs=%{_libdir}/mysql \
  22. --with-mysql-includes=%{_includedir}/mysql \
  23. --with-ldflags=-L/usr/X11R6/%{_lib}
  24. make
  25. %install
  26. [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
  27. %makeinstall
  28. rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la
  29. %clean
  30. [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
  31. %post -p /sbin/ldconfig
  32. %postun -p /sbin/ldconfig
  33. %files
  34. %defattr(-,root,root)
  35. %doc COPYING ChangeLog README README.unix
  36. %{_libdir}/lib*so
  37. %changelog
  38. * Sun Sep 14 2008 Shu KONNO <owa@bg.wakwak.com> 3.51.11-1vl5
  39. - applied new versioning policy, spec in utf-8
  40. * Thu Dec 20 2007 Shu KONNO <owa@bg.wakwak.com> 3.51.11-0vl4
  41. - updated lib to %%{_lib} in %%configure
  42. * Sun May 27 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.51.11-0vl3
  43. - rebuilt with new toolchain
  44. * Mon Oct 30 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.51.11-0vl2
  45. - rebuilt with MySQL 5.0.27
  46. - added %post and %postun section
  47. * Sat Sep 10 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.51.11-0vl1
  48. - updated to 3.51.11
  49. * Sat Feb 23 2002 Satoshi MACHINO <machino@vinelinux.org> 2.50.39-0vl1
  50. - first build on VineLinux