libiodbc-vl.spec 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. ## admin gui build currently busted, FIXME?
  2. #define _enable_gui --enable-gui
  3. Name: libiodbc
  4. Summary: iODBC Driver Manager
  5. Summary(ja): iODBC ドライバマネージャ
  6. Version: 3.52.9
  7. Release: 1%{?_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. %if 0%{?_enable_gui:1}
  31. %package admin
  32. Summary: Gui administrator for iODBC development
  33. Group: Development/Libraries
  34. Requires: %{name} = %{version}-%{release}
  35. %description admin
  36. This package contains a Gui administrator program for maintaining
  37. DSN information in odbc.ini and odbcinst.ini files.
  38. %endif
  39. %prep
  40. %setup -q
  41. #patch1 -p0 -b .multilib
  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. * Fri Sep 12 2014 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.52.9-1
  94. - new upstream release
  95. * Sun Aug 24 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.52.7-4
  96. - rebuild with VineSeed environment
  97. * Sat Oct 02 2010 Shu KONNO <owa@bg.wakwak.com> 3.52.7-3
  98. - rebuilt with rpm-4.8.1 for pkg-config
  99. * Thu Feb 11 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.52.7-2
  100. - initial build for Vine Linux
  101. * Tue Oct 20 2009 Rex Dieter <rdieter@fedoraproject.org> 3.52.7-1
  102. - libiodbc-3.52.7
  103. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.52.6-5
  104. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  105. * Sat Jun 06 2009 Rex Dieter <rdieter@fedoraproject.org> 3.52.6-4
  106. - -devel: install headers to /usr/include/libiodbc/ to better avoid
  107. conflicts and need for bogus unixODBC-devel dep
  108. * Thu Jun 04 2009 Rex Dieter <rdieter@fedoraproject.org> 3.52.6-3
  109. - capitalize Name,Summary,Version tags
  110. - -devel: capitalize Summary
  111. - fix spurious permissions on header files
  112. - refresh upstream source
  113. - -admin,-devel: add %%defattr(...)
  114. * Thu Jun 04 2009 Rex Dieter <rdieter@fedoraproject.org> 3.52.6-2
  115. - iodbc-config multilib patch
  116. * Wed Jun 03 2009 Rex Dieter <rdieter@fedoraproject.org> 3.52.6-1
  117. - first try, based on upstream src.rpm