# # spec file for package unixODBC-gui-qt (Version 2.2.12) # # Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: unixODBC-gui-qt BuildRequires: qt3-devel Version: 2.2.12 Release: 13 Summary: ODBC Configuration Utility, Data Source Browser, and ODBC Test Tool based License: GNU General Public License (GPL) URL: http://www.unixodbc.org/ Group: Productivity/Databases/Tools Requires: unixODBC = %{version} Autoreqprov: on Source: unixODBC-%{version}.tar.bz2 Source1: README.SuSE Patch1: unixODBC-paths.patch Patch4: unixODBC-odbctest.patch Patch5: unixODBC-iaddr.patch Patch6: unixODBC-nonvoid.patch Patch7: unixODBC-gccwarnings.patch Patch8: unixODBC-%{version}-dm.patch # this is applied in %%build Patch9: unixODBC-%{version}-dlopen.patch Patch10: unixODBC-%{version}-libodbcinst-exports.patch Patch11: unixODBC-%{version}-flex.patch Patch12: unixODBC-%{version}-ctracing.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description A collection of graphical tools (based on QT3) for UnixODBC. Authors: -------- Peter Harvey Nick Gorham %prep %setup -q -n unixODBC-%{version} %patch1 %patch4 %patch5 %patch6 %patch7 #patch8 -p1 # %%patch9 is in %%build %patch10 %patch11 %patch12 install -m 644 %{S:1} . %build export -n LANG LINGUAS LC_ALL rm -rf libltdl LIBTOOLIZE="libtoolize --ltdl" autoreconf --force --install patch -p0 <"%{P:9}" export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" ./configure \ --prefix=%{_prefix} \ --mandir=%{_mandir} \ --infodir=%{_infodir} \ --libdir=%{_libdir} \ --sysconfdir=%{_sysconfdir}/unixODBC \ --with-qt-dir=/usr/lib/qt3 \ --with-qt-libraries=/usr/lib/qt3/%{_lib} \ --x-libraries=`pkg-config --variable libdir x11` \ --x-includes=`pkg-config --variable includedir x11` \ --disable-stats make CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" %install make DESTDIR=$RPM_BUILD_ROOT install rm -rf $RPM_BUILD_ROOT/usr/share/libtool #remove files packaged in main specfile rm -f $RPM_BUILD_ROOT/etc/unixODBC/odbc.ini rm -f $RPM_BUILD_ROOT/etc/unixODBC/odbcinst.ini rm -f $RPM_BUILD_ROOT/usr/bin/dltest rm -f $RPM_BUILD_ROOT/usr/bin/isql rm -f $RPM_BUILD_ROOT/usr/bin/iusql rm -f $RPM_BUILD_ROOT/usr/bin/odbc_config rm -f $RPM_BUILD_ROOT/usr/bin/odbcinst rm -f $RPM_BUILD_ROOT/usr/include/autotest.h rm -f $RPM_BUILD_ROOT/usr/include/odbcconfig.h rm -f $RPM_BUILD_ROOT/usr/include/odbcinst.h rm -f $RPM_BUILD_ROOT/usr/include/odbcinstext.h rm -f $RPM_BUILD_ROOT/usr/include/sql.h rm -f $RPM_BUILD_ROOT/usr/include/sqlext.h rm -f $RPM_BUILD_ROOT/usr/include/sqltypes.h rm -f $RPM_BUILD_ROOT/usr/include/sqlucode.h rm -f $RPM_BUILD_ROOT/usr/include/uodbc_stats.h rm -f $RPM_BUILD_ROOT/usr/%_lib/libboundparam.* rm -f $RPM_BUILD_ROOT/usr/%_lib/libgtrtst.* rm -f $RPM_BUILD_ROOT/usr/%_lib/libodbc.* rm -f $RPM_BUILD_ROOT/usr/%_lib/libodbccr.* rm -f $RPM_BUILD_ROOT/usr/%_lib/libodbcinst.* rm -f $RPM_BUILD_ROOT/usr/%_lib/libtemplate.* rm -rf $RPM_BUILD_ROOT/usr/%_lib/unixODBC %clean rm -rf "$RPM_BUILD_ROOT" %files %defattr(-, root, root) %{_prefix}/bin/DataManager %{_prefix}/bin/DataManagerII %{_prefix}/bin/ODBCConfig %{_prefix}/bin/qtodbctest %{_libdir}/libodbcinstQ.* %exclude /usr/include/uodbc_extras.h %changelog -n unixODBC-gui-qt * Wed Nov 15 2006 - anosek@suse.cz - fixed compiler warning: variable is used before its value is set [#218998] (ctracing.patch) * Wed Oct 18 2006 - anosek@suse.cz - updated to version 2.2.12 * bugfixes * Tue Jul 25 2006 - mmarek@suse.de - fix build with modular Xorg * Thu Jun 15 2006 - mmarek@suse.cz - moved %%{_libdir}/unixODBC/*.so to main package, so that libfoo.so and libfooS.so can be used in driver configuration. * Thu Jun 15 2006 - mmarek@suse.cz - updated distributed libltdl to make autoconf happy - dropped unixODBC-gui-gtk * Thu Jun 08 2006 - mmarek@suse.cz - reduce BuildRequires * Wed Jan 25 2006 - mls@suse.de - converted neededforbuild to BuildRequires * Fri Jan 20 2006 - ro@suse.de - split specfile for gui packages