Geoffrey Lee wrote:
>>>>>- Minor typo fix in description.
>>>>>
>>>>>
>>>>>
>>>>:)
>>>>
>>>>
>>>hum, hang on ...
>>>
>>>a solution for ODBC should be correct?
>>>
>>>
>>ODBC is an open specification for providing application developers with
>>a predictable API with which to access Data Sources. Data Sources
>>include SQL Servers and any Data Source with an ODBC Driver.
>>
>>
>>
>
>
>
>oh, :)
>
>
>I'll do it now.
>
>thanks,
>
> -- Geoff.
>
>
>
>
Can you also put in a define for building the qt gui? unixODBC BR
qt3-devel, and qt3-devel BR unixODBC... It would be nice to have a
mechanism to build unixODBC (without the qt-gui) in order to build
qt3-devel...
The patch is against an older version of unix ODBC (I was working on it
this weekend)...
--- unixODBC.spec.orig 2002-07-07 21:25:26.000000000 +0200
+++ unixODBC.spec 2002-07-07 23:09:11.000000000 +0200
@@ -1,5 +1,6 @@
%define major 2
%define libname lib%{name}%{major}
+%define gui_qt 0
Summary: Unix ODBC driver manager and database drivers
Name: unixODBC
@@ -13,8 +14,12 @@
License: LGPL
URL: http://www.unixODBC.org
BuildRoot: %_tmppath/%name-%version-%release-root
-BuildRequires: autoconf automake byacc flex gnome-libs-devel readline-devel
+BuildRequires: bison
+BuildRequires: flex
+BuildRequires: gnome-libs-devel
+%if %{gui_qt}
BuildRequires: libqt3-devel
+%endif
%description
UnixODBC is a free/open and solution for ODBC. ODBC is an open
@@ -42,7 +47,7 @@
unixODBC aims to provide a complete ODBC solution for the Linux platform.
This package contains the include files and static libraries for
development.
-
+%if %{gui_qt}
%package gui-qt
Summary: ODBC configurator, Data Source browser and ODBC test tool based
on Qt
Group: Databases
@@ -54,6 +59,7 @@
This package contains two Qt based GUI programs for unixODBC:
ODBCConfig and DataManager
+%endif
%package gui-gtk
@@ -109,6 +115,7 @@
install -d $RPM_BUILD_ROOT%{_menudir}
# ODBCConfig
+%if %{gui_qt}
cat << EOF > $RPM_BUILD_ROOT%{_menudir}/unixODBC-gui-qt
?package(%{name}-gui-qt): \
needs="x11" \
@@ -134,6 +141,7 @@
icon="databases_section.png" \
command="odbctest"
EOF
+%endif
# gODBCConfig
# Put capital G in title and longtitle to shut rpmlint warnings
@@ -162,11 +170,13 @@
%postun -n %{libname}-devel -p /sbin/ldconfig
+%if %{gui_qt}
%post gui-qt
%{update_menus}
%postun gui-qt
%{clean_menus}
+%endif
%post gui-gtk
%{update_menus}
@@ -195,12 +205,14 @@
%{_libdir}/lib*.la
%{_includedir}/*
+%if %{gui_qt}