1 | ## admin gui build currently busted, FIXME? |
---|
2 | #define _enable_gui --enable-gui |
---|
3 | |
---|
4 | Name: libiodbc |
---|
5 | Summary: iODBC Driver Manager |
---|
6 | Summary(ja): iODBC ドライバマネージャ |
---|
7 | Version: 3.52.9 |
---|
8 | Release: 1%{?_dist_release} |
---|
9 | |
---|
10 | Group: System Environment/Libraries |
---|
11 | License: LGPLv2 or BSD |
---|
12 | URL: http://www.iodbc.org/ |
---|
13 | |
---|
14 | Source0: http://www.iodbc.org/downloads/iODBC/libiodbc-%{version}.tar.gz |
---|
15 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
16 | |
---|
17 | Patch1: libiodbc-3.52.6-multilib.patch |
---|
18 | |
---|
19 | %{?_enable_gui:BuildRequires: gtk2-devel} |
---|
20 | BuildRequires: chrpath |
---|
21 | |
---|
22 | %description |
---|
23 | The iODBC Driver Manager is a free implementation of the SAG CLI and |
---|
24 | ODBC compliant driver manager which allows developers to write ODBC |
---|
25 | compliant applications that can connect to various databases using |
---|
26 | appropriate backend drivers. |
---|
27 | |
---|
28 | %package devel |
---|
29 | Summary: Header files and libraries for iODBC development |
---|
30 | Summary(ja): iODBC の開発に必要なヘッダファイル/ライブラリ |
---|
31 | Group: Development/Libraries |
---|
32 | Requires: %{name} = %{version}-%{release} |
---|
33 | Requires: pkgconfig |
---|
34 | |
---|
35 | %description devel |
---|
36 | This package contains the header files and libraries needed to develop |
---|
37 | programs that use the driver manager. |
---|
38 | |
---|
39 | %if 0%{?_enable_gui:1} |
---|
40 | %package admin |
---|
41 | Summary: Gui administrator for iODBC development |
---|
42 | Group: Development/Libraries |
---|
43 | Requires: %{name} = %{version}-%{release} |
---|
44 | |
---|
45 | %description admin |
---|
46 | This package contains a Gui administrator program for maintaining |
---|
47 | DSN information in odbc.ini and odbcinst.ini files. |
---|
48 | |
---|
49 | %endif |
---|
50 | |
---|
51 | %prep |
---|
52 | %setup -q |
---|
53 | |
---|
54 | #patch1 -p0 -b .multilib |
---|
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 |
---|
123 | * Fri Sep 12 2014 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.52.9-1 |
---|
124 | - new upstream release |
---|
125 | |
---|
126 | * Sun Aug 24 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.52.7-4 |
---|
127 | - rebuild with VineSeed environment |
---|
128 | |
---|
129 | * Sat Oct 02 2010 Shu KONNO <owa@bg.wakwak.com> 3.52.7-3 |
---|
130 | - rebuilt with rpm-4.8.1 for pkg-config |
---|
131 | |
---|
132 | * Thu Feb 11 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.52.7-2 |
---|
133 | - initial build for Vine Linux |
---|
134 | |
---|
135 | * Tue Oct 20 2009 Rex Dieter <rdieter@fedoraproject.org> 3.52.7-1 |
---|
136 | - libiodbc-3.52.7 |
---|
137 | |
---|
138 | * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.52.6-5 |
---|
139 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
140 | |
---|
141 | * Sat Jun 06 2009 Rex Dieter <rdieter@fedoraproject.org> 3.52.6-4 |
---|
142 | - -devel: install headers to /usr/include/libiodbc/ to better avoid |
---|
143 | conflicts and need for bogus unixODBC-devel dep |
---|
144 | |
---|
145 | * Thu Jun 04 2009 Rex Dieter <rdieter@fedoraproject.org> 3.52.6-3 |
---|
146 | - capitalize Name,Summary,Version tags |
---|
147 | - -devel: capitalize Summary |
---|
148 | - fix spurious permissions on header files |
---|
149 | - refresh upstream source |
---|
150 | - -admin,-devel: add %%defattr(...) |
---|
151 | |
---|
152 | * Thu Jun 04 2009 Rex Dieter <rdieter@fedoraproject.org> 3.52.6-2 |
---|
153 | - iodbc-config multilib patch |
---|
154 | |
---|
155 | * Wed Jun 03 2009 Rex Dieter <rdieter@fedoraproject.org> 3.52.6-1 |
---|
156 | - first try, based on upstream src.rpm |
---|
157 | |
---|