libiodbc-vl.spec 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. ## admin gui build currently busted, FIXME?
  2. #define _enable_gui --enable-gui
  3. Summary: iODBC Driver Manager
  4. Summary(ja): iODBC ドライバマネージャ
  5. Name: libiodbc
  6. Version: 3.52.7
  7. Release: 3%{?_dist_release}
  8. Group: System Environment/Libraries
  9. License: LGPLv2 or BSD
  10. URL: http://www.iodbc.org/
  11. Source0: http://www.iodbc.org/downloads/iODBC/libiodbc-%{version}.tar.gz
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. Patch1: libiodbc-3.52.6-multilib.patch
  14. %{?_enable_gui:BuildRequires: gtk2-devel}
  15. BuildRequires: chrpath
  16. %description
  17. The iODBC Driver Manager is a free implementation of the SAG CLI and
  18. ODBC compliant driver manager which allows developers to write ODBC
  19. compliant applications that can connect to various databases using
  20. appropriate backend drivers.
  21. %package devel
  22. Summary: Header files and libraries for iODBC development
  23. Summary(ja): iODBC の開発に必要なヘッダファイル/ライブラリ
  24. Group: Development/Libraries
  25. Requires: %{name} = %{version}-%{release}
  26. Requires: pkgconfig
  27. %description devel
  28. This package contains the header files and libraries needed to develop
  29. programs that use the driver manager.
  30. %package admin
  31. Summary: Gui administrator for iODBC development
  32. Group: Development/Libraries
  33. Requires: %{name} = %{version}-%{release}
  34. %description admin
  35. This package contains a Gui administrator program for maintaining
  36. DSN information in odbc.ini and odbcinst.ini files.
  37. %prep
  38. %setup -q
  39. %patch1 -p0 -b .multilib
  40. # fix header permissions
  41. chmod -x include/*.h
  42. %build
  43. # --disable-libodbc to minimize conflicts with unixODBC
  44. %configure \
  45. --enable-odbc3 \
  46. --with-iodbc-inidir=%{_sysconfdir} \
  47. --enable-pthreads \
  48. --disable-libodbc \
  49. --disable-static \
  50. --includedir=%{_includedir}/libiodbc \
  51. %{?_enable_gui} %{!?_enable_gui:--disable-gui}
  52. make %{?_smp_mflags}
  53. %install
  54. rm -rf %{buildroot}
  55. make install DESTDIR=%{buildroot}
  56. # nuke rpaths
  57. chrpath --delete %{buildroot}%{_bindir}/iodbctest
  58. chrpath --delete %{buildroot}%{_bindir}/iodbctestw
  59. # unpackaged files
  60. rm -f %{buildroot}%{_libdir}/lib*.la
  61. rm -rf %{buildroot}%{_datadir}/libiodbc/samples
  62. %clean
  63. rm -rf %{buildroot}
  64. %post -p /sbin/ldconfig
  65. %postun -p /sbin/ldconfig
  66. %files
  67. %defattr(-,root,root,-)
  68. %doc AUTHORS ChangeLog LICENSE* README
  69. %doc etc/odbc*.ini.sample
  70. %{_bindir}/iodbctest
  71. %{_bindir}/iodbctestw
  72. %{_libdir}/libiodbc.so.2*
  73. %{_libdir}/libiodbcinst.so.2*
  74. %{_mandir}/man1/iodbctest.1*
  75. %{_mandir}/man1/iodbctestw.1*
  76. %files devel
  77. %defattr(-,root,root,-)
  78. %{_bindir}/iodbc-config
  79. %{_includedir}/libiodbc/
  80. %{_libdir}/libiodbc.so
  81. %{_libdir}/libiodbcinst.so
  82. %{_mandir}/man1/iodbc-config.1*
  83. %{_libdir}/pkgconfig/libiodbc.pc
  84. %if 0%{?_enable_gui:1}
  85. %files admin
  86. %defattr(-,root,root,-)
  87. %{_bindir}/iodbcadm-gtk
  88. %{_libdir}/libdrvproxy.so*
  89. %{_libdir}/libiodbcadm.so*
  90. %{_mandir}/man1/iodbcadm-gtk.1*
  91. %endif
  92. %changelog
  93. * Sat Oct 02 2010 Shu KONNO <owa@bg.wakwak.com> 3.52.7-3
  94. - rebuilt with rpm-4.8.1 for pkg-config
  95. * Thu Feb 11 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.52.7-2
  96. - initial build for Vine Linux
  97. * Tue Oct 20 2009 Rex Dieter <rdieter@fedoraproject.org> 3.52.7-1
  98. - libiodbc-3.52.7
  99. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.52.6-5
  100. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  101. * Sat Jun 06 2009 Rex Dieter <rdieter@fedoraproject.org> 3.52.6-4
  102. - -devel: install headers to /usr/include/libiodbc/ to better avoid
  103. conflicts and need for bogus unixODBC-devel dep
  104. * Thu Jun 04 2009 Rex Dieter <rdieter@fedoraproject.org> 3.52.6-3
  105. - capitalize Name,Summary,Version tags
  106. - -devel: capitalize Summary
  107. - fix spurious permissions on header files
  108. - refresh upstream source
  109. - -admin,-devel: add %%defattr(...)
  110. * Thu Jun 04 2009 Rex Dieter <rdieter@fedoraproject.org> 3.52.6-2
  111. - iodbc-config multilib patch
  112. * Wed Jun 03 2009 Rex Dieter <rdieter@fedoraproject.org> 3.52.6-1
  113. - first try, based on upstream src.rpm