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