2004-09-09 13:47:53 +00:00
|
|
|
|
Summary: A complete ODBC driver manager for Linux.
|
2004-09-09 13:45:16 +00:00
|
|
|
|
Name: unixODBC
|
2004-09-09 13:51:34 +00:00
|
|
|
|
Version: 2.2.5
|
|
|
|
|
Release: 9
|
2004-09-09 13:46:32 +00:00
|
|
|
|
License: LGPL
|
2004-09-09 13:45:16 +00:00
|
|
|
|
Group: System Environment/Libraries
|
2004-09-09 13:51:34 +00:00
|
|
|
|
Source: http://www.unixODBC.org/%{name}-%{version}-rh.tar.gz
|
2004-09-09 13:45:16 +00:00
|
|
|
|
Source1: odbcinst.ini
|
|
|
|
|
Source2: ODBCConfig.desktop
|
|
|
|
|
Source3: DataManager.desktop
|
|
|
|
|
URL: http://www.unixODBC.org/
|
|
|
|
|
Conflicts: iodbc
|
2004-09-09 13:51:34 +00:00
|
|
|
|
#ExcludeArch:x86_64 ppc64 s390x
|
|
|
|
|
BuildPrereq: kdelibs-devel qt-devel libmng-devel automake autoconf
|
2004-09-09 13:45:16 +00:00
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
|
|
|
|
%description
|
2004-09-09 13:47:53 +00:00
|
|
|
|
Install unixODBC if you want to access databases through ODBC. This
|
|
|
|
|
package includes drivers for PostgreSQL and local files. If you want
|
|
|
|
|
to develop programs that will access data through ODBC, you need to
|
|
|
|
|
install the unixODBC package.
|
2004-09-09 13:45:16 +00:00
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Development files for programs which will use the unixODBC library.
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
Requires: unixODBC = %{version}
|
|
|
|
|
|
|
|
|
|
%description devel
|
2004-09-09 13:47:53 +00:00
|
|
|
|
The unixODBC package can be used to access databases through ODBC
|
|
|
|
|
drivers. If you want to develop programs that will access data through
|
|
|
|
|
ODBC, you need to install this package.
|
2004-09-09 13:45:16 +00:00
|
|
|
|
|
2004-09-09 13:46:32 +00:00
|
|
|
|
%package kde
|
2004-09-09 13:47:53 +00:00
|
|
|
|
Summary: KDE driver manager components for ODBC.
|
2004-09-09 13:46:32 +00:00
|
|
|
|
Group: System Environment/Libraries
|
2004-09-09 13:51:34 +00:00
|
|
|
|
Requires: qt >= 2.1
|
2004-09-09 13:45:16 +00:00
|
|
|
|
|
2004-09-09 13:46:32 +00:00
|
|
|
|
%description kde
|
2004-09-09 13:47:53 +00:00
|
|
|
|
This package contains components for the ODBCConfig and DataManager
|
|
|
|
|
(KDE) components of unixODBC.
|
2004-09-09 13:45:16 +00:00
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
# pick up qt path
|
|
|
|
|
export QTDIR=
|
|
|
|
|
. /etc/profile.d/qt.sh
|
|
|
|
|
# clean up old moc files
|
|
|
|
|
(cd ODBCConfig && rm -f mclass*.cpp)
|
|
|
|
|
(cd DataManager && rm -f mclass*.cpp)
|
2004-09-09 13:51:34 +00:00
|
|
|
|
aclocal
|
|
|
|
|
automake
|
|
|
|
|
autoconf
|
2004-09-09 13:46:58 +00:00
|
|
|
|
%configure --with-gnu-ld=yes --enable-threads=yes --enable-gui=yes --enable-static=yes --enable-drivers
|
2004-09-09 13:45:16 +00:00
|
|
|
|
make all
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
# pick up qt path
|
|
|
|
|
export QTDIR=
|
|
|
|
|
. /etc/profile.d/qt.sh
|
|
|
|
|
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2004-09-09 13:50:02 +00:00
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/share/applications
|
2004-09-09 13:51:34 +00:00
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/share/icons
|
2004-09-09 13:45:16 +00:00
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons
|
|
|
|
|
|
|
|
|
|
%makeinstall
|
2004-09-09 13:48:37 +00:00
|
|
|
|
install -m644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}
|
2004-09-09 13:50:02 +00:00
|
|
|
|
install -m644 %{SOURCE2} $RPM_BUILD_ROOT/usr/share/applications
|
|
|
|
|
install -m644 %{SOURCE3} $RPM_BUILD_ROOT/usr/share/applications
|
2004-09-09 13:48:37 +00:00
|
|
|
|
cp DataManager/LinuxODBC.xpm $RPM_BUILD_ROOT%{_datadir}/icons
|
2004-09-09 13:50:02 +00:00
|
|
|
|
cp DataManager/ODBC.xpm $RPM_BUILD_ROOT%{_datadir}/icons/odbc.xpm
|
2004-09-09 13:51:34 +00:00
|
|
|
|
cp DataManagerII/LinuxODBC.xpm $RPM_BUILD_ROOT/usr/share/icons
|
|
|
|
|
cp DataManagerII/ODBC.xpm $RPM_BUILD_ROOT/usr/share/icons/odbc.xpm
|
2004-09-09 13:48:51 +00:00
|
|
|
|
find $RPM_BUILD_ROOT/%{_libdir} -name "*.so.*" |sed "s|$RPM_BUILD_ROOT||" |grep -i -v libodbcinstQ > foo-list
|
2004-09-09 13:51:34 +00:00
|
|
|
|
find $RPM_BUILD_ROOT/%{_libdir} -name "*.so" |sed "s|$RPM_BUILD_ROOT||" |grep -i -v libodbcinstQ |grep -v -E "libodbc.so$" |grep -v -E "libodbcpsqlS?.so$" |grep -v -E "libodbcmyS.so$" > foo-list2
|
2004-09-09 13:50:27 +00:00
|
|
|
|
|
|
|
|
|
# move to main package, it's often dlopened...
|
|
|
|
|
echo "%{_libdir}/libodbc.so" >> foo-list
|
2004-09-09 13:51:34 +00:00
|
|
|
|
echo "%{_libdir}/libodbcpsql.so" >> foo-list
|
|
|
|
|
echo "%{_libdir}/libodbcpsqlS.so" >> foo-list
|
|
|
|
|
echo "%{_libdir}/libodbcmyS.so" >> foo-list
|
2004-09-09 13:45:16 +00:00
|
|
|
|
|
2004-09-09 13:50:35 +00:00
|
|
|
|
# remove unpackaged files from the buildroot
|
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
|
|
|
|
|
2004-09-09 13:45:16 +00:00
|
|
|
|
%clean
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
2004-09-09 13:48:37 +00:00
|
|
|
|
%files -f foo-list
|
2004-09-09 13:45:16 +00:00
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%doc README COPYING AUTHORS ChangeLog NEWS INSTALL doc
|
2004-09-09 13:46:58 +00:00
|
|
|
|
%config(noreplace) %{_sysconfdir}/odbc*
|
2004-09-09 13:48:37 +00:00
|
|
|
|
#{_libdir}/*so.*
|
2004-09-09 13:45:16 +00:00
|
|
|
|
%{_bindir}/odbcinst
|
|
|
|
|
%{_bindir}/isql
|
|
|
|
|
%{_bindir}/dltest
|
2004-09-09 13:50:27 +00:00
|
|
|
|
%{_bindir}/iusql
|
2004-09-09 13:51:34 +00:00
|
|
|
|
#%{_bindir}/odbctest
|
|
|
|
|
|
2004-09-09 13:50:27 +00:00
|
|
|
|
|
2004-09-09 13:51:34 +00:00
|
|
|
|
#{_libdir}/libodbcinstQ*
|
2004-09-09 13:50:27 +00:00
|
|
|
|
|
2004-09-09 13:48:51 +00:00
|
|
|
|
%files devel -f foo-list2
|
2004-09-09 13:45:16 +00:00
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{_includedir}/*
|
|
|
|
|
%{_libdir}/*.a
|
|
|
|
|
|
2004-09-09 13:46:32 +00:00
|
|
|
|
%files kde
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{_bindir}/ODBCConfig
|
|
|
|
|
%{_bindir}/DataManager
|
2004-09-09 13:50:35 +00:00
|
|
|
|
%{_bindir}/DataManagerII
|
2004-09-09 13:51:34 +00:00
|
|
|
|
%{_bindir}/odbctest
|
|
|
|
|
/usr/share/applications/ODBCConfig.desktop
|
|
|
|
|
/usr/share/applications/DataManager.desktop
|
|
|
|
|
/usr/share/icons/LinuxODBC.xpm
|
|
|
|
|
/usr/share/icons/odbc.xpm
|
2004-09-09 13:48:51 +00:00
|
|
|
|
%{_libdir}/libodbcinstQ*so
|
|
|
|
|
%{_libdir}/libodbcinstQ*so.*
|
2004-09-09 13:45:16 +00:00
|
|
|
|
|
2004-09-09 13:46:32 +00:00
|
|
|
|
%post kde -p /sbin/ldconfig
|
|
|
|
|
%postun kde -p /sbin/ldconfig
|
2004-09-09 13:45:16 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%changelog
|
2004-09-09 13:51:34 +00:00
|
|
|
|
* Thu Oct 16 2003 Fernando Nasser <fnasser@redhat.com> 2.2.5-9
|
|
|
|
|
- Add comments to the /etc/odbcinst.ini file regarding the proper
|
|
|
|
|
setup for MySQL and the origin of each library needed.
|
|
|
|
|
|
|
|
|
|
* Tue Oct 14 2003 Fernando Nasser <fnasser@redhat.com> 2.2.5-8
|
|
|
|
|
- Move libodbcmyS.so to the main package as well. It is used the
|
|
|
|
|
same way as libodbcpsqlS.so.
|
|
|
|
|
|
|
|
|
|
* Tue Oct 14 2003 Fernando Nasser <fnasser@redhat.com> 2.2.5-7
|
|
|
|
|
- Bumped the version so it rebuilds.
|
|
|
|
|
|
|
|
|
|
* Tue Oct 14 2003 Fernando Nasser <fnasser@redhat.com> 2.2.5-4
|
|
|
|
|
- Revert previous change and special case libodbcpsql.so and
|
|
|
|
|
libodbcpsqlS.so instead. Here is the explanation (from Elliot
|
|
|
|
|
Lee):
|
|
|
|
|
".so files are only used at link time for normal dynamic libraries.
|
|
|
|
|
The libraries referred to here are being used as dynamically loaded
|
|
|
|
|
modules, so I guess moving those particular .so files back to the
|
|
|
|
|
main package would make sense, but the other .so files should stay
|
|
|
|
|
in the devel subpackage."
|
|
|
|
|
|
|
|
|
|
* Fri Oct 10 2003 Fernando Nasser <fnasser@redhat.com> 2.2.5-3
|
|
|
|
|
- Moved all the shared library symlinks to the main package.
|
|
|
|
|
They were deliberatedly being added to the devel package for
|
|
|
|
|
unknown reasons but this was forcing users to install the
|
|
|
|
|
devel package always.
|
|
|
|
|
- No need to special-case libodbc.so anymore
|
|
|
|
|
|
|
|
|
|
* Fri Sep 05 2003 Elliot Lee <sopwith@redhat.com> 2.2.5-2
|
|
|
|
|
- Run auto* so it rebuilds.
|
|
|
|
|
|
|
|
|
|
* Mon Jul 07 2003 Fernando Nasser <fnasser@redhat.com> 2.2.5-1
|
|
|
|
|
- Moved odbctest to the kde package to remove require on Qt stuff
|
|
|
|
|
from the main package.
|
|
|
|
|
- Removed stray "\" from doc/Makefile.am
|
|
|
|
|
- Applied libtool fix (provided by Alex Oliva) so that it build
|
|
|
|
|
with cross-compilers (which are used by 64 bit systems)
|
|
|
|
|
- Updated sources to the 2.2.5 community release
|
|
|
|
|
- Changed the included libtool to the 1.5-3 one so that
|
|
|
|
|
it properly link the libraries with the newly generated ones
|
|
|
|
|
and not with the ones installed on the build system (or give
|
|
|
|
|
an error if an old version is not installed (# 91110)
|
|
|
|
|
- Added new files for executable DataManagerII and icons LinuxODBC.xpm
|
|
|
|
|
and odbc.xpm
|
|
|
|
|
|
|
|
|
|
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
|
|
|
|
|
- rebuilt
|
|
|
|
|
|
2004-09-09 13:50:49 +00:00
|
|
|
|
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
|
|
|
|
|
- rebuilt
|
|
|
|
|
|
|
|
|
|
* Thu Jan 9 2003 Bill Nottingham <notting@redhat.com> 2.2.3-5
|
|
|
|
|
- debloat
|
|
|
|
|
|
|
|
|
|
* Tue Dec 17 2002 Elliot Lee <sopwith@redhat.com> 2.2.3-4
|
|
|
|
|
- Run libtoolize etc.
|
|
|
|
|
|
|
|
|
|
* Thu Dec 12 2002 Elliot Lee <sopwith@redhat.com> 2.2.3-3
|
|
|
|
|
- Rebuild to fix filelist errors...?
|
|
|
|
|
|
2004-09-09 13:50:35 +00:00
|
|
|
|
* Fri Nov 29 2002 Tim Powers <timp@redhat.com> 2.2.3-2
|
|
|
|
|
- remove unpackaged files from the buildroot
|
|
|
|
|
|
|
|
|
|
* Tue Nov 19 2002 Elliot Lee <sopwith@redhat.com> 2.2.3-1
|
|
|
|
|
- Rebuild, update to 2.2.3
|
|
|
|
|
|
2004-09-09 13:50:27 +00:00
|
|
|
|
* Mon Aug 26 2002 Trond Eivind Glomsr<EFBFBD>d <teg@redhat.com> 2.2.2-3
|
|
|
|
|
- Move libodbc.so to the main package, so programs dlopening
|
|
|
|
|
it don't break (#72653)
|
|
|
|
|
|
2004-09-09 13:50:07 +00:00
|
|
|
|
* Sat Aug 10 2002 Elliot Lee <sopwith@redhat.com>
|
|
|
|
|
- rebuilt with gcc-3.2 (we hope)
|
|
|
|
|
|
2004-09-09 13:50:02 +00:00
|
|
|
|
* Mon Jul 22 2002 Trond Eivind Glomsr<EFBFBD>d <teg@redhat.com> 2.2.2-1
|
|
|
|
|
- 2.2.2
|
|
|
|
|
- desktop file changes (# 69371)
|
|
|
|
|
|
|
|
|
|
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
|
|
|
|
|
- automated rebuild
|
|
|
|
|
|
|
|
|
|
* Sun May 26 2002 Tim Powers <timp@redhat.com>
|
|
|
|
|
- automated rebuild
|
|
|
|
|
|
|
|
|
|
* Mon May 20 2002 Trond Eivind Glomsr<EFBFBD>d <teg@redhat.com> 2.2.1-1
|
|
|
|
|
- 2.2.1
|
|
|
|
|
- Reenable other archs, as this should now build on 64 bit archs
|
|
|
|
|
|
|
|
|
|
* Sun May 19 2002 Florian La Roche <Florian.LaRoche@redhat.de>
|
|
|
|
|
- add at least mainframe; should this really be a i386-only rpm?
|
|
|
|
|
|
2004-09-09 13:49:13 +00:00
|
|
|
|
* Wed Apr 17 2002 Bernhard Rosenkraenzer <bero@redhat.com> 2.2.0-5
|
|
|
|
|
- rebuild
|
|
|
|
|
|
2004-09-09 13:48:51 +00:00
|
|
|
|
* Fri Apr 5 2002 Trond Eivind Glomsr<EFBFBD>d <teg@redhat.com> 2.2.0-4
|
|
|
|
|
- Avoid having files in more than one package (#62755)
|
|
|
|
|
|
|
|
|
|
* Tue Mar 26 2002 Trond Eivind Glomsr<EFBFBD>d <teg@redhat.com> 2.2.0-3
|
|
|
|
|
- Don't include kde plugin .so as a devel symlink (#61039)
|
|
|
|
|
|
2004-09-09 13:48:37 +00:00
|
|
|
|
* Fri Mar 8 2002 Bernhard Rosenkraenzer <bero@redhat.com> 2.2.0-2
|
|
|
|
|
- Rebuild with KDE 3.x
|
|
|
|
|
|
|
|
|
|
* Tue Feb 26 2002 Trond Eivind Glomsr<EFBFBD>d <teg@redhat.com> 2.2.0-1
|
|
|
|
|
- Just build on i386 now, there are 64 bit oddities
|
|
|
|
|
- 2.2.0
|
|
|
|
|
|
|
|
|
|
* Fri Jan 11 2002 Trond Eivind Glomsr<EFBFBD>d <teg@redhat.com> 2.1.1-2
|
|
|
|
|
- move libodbcinstQ* to the kde subpackage
|
|
|
|
|
|
|
|
|
|
* Fri Jan 11 2002 Trond Eivind Glomsr<EFBFBD>d <teg@redhat.com> 2.1.1-1
|
|
|
|
|
- 2.1.1
|
|
|
|
|
- minor cleanups
|
|
|
|
|
|
|
|
|
|
* Fri Dec 14 2001 Trond Eivind Glomsr<EFBFBD>d <teg@redhat.com> 2.0.7-5
|
|
|
|
|
- Rebuild
|
|
|
|
|
|
2004-09-09 13:47:53 +00:00
|
|
|
|
* Wed Sep 12 2001 Tim Powers <timp@redhat.com>
|
|
|
|
|
- rebuild with new gcc and binutils
|
|
|
|
|
|
2004-09-09 13:47:05 +00:00
|
|
|
|
* Sun Jun 24 2001 Than Ngo <than@redhat.com>
|
|
|
|
|
- rebuild against qt-2.3.1, kde-2.1.x
|
|
|
|
|
|
2004-09-09 13:46:58 +00:00
|
|
|
|
* Fri Jun 15 2001 Trond Eivind Glomsr<EFBFBD>d <teg@redhat.com>
|
|
|
|
|
- Better default odbcinst.ini
|
|
|
|
|
- Minor cleanups
|
|
|
|
|
|
|
|
|
|
* Wed Jun 6 2001 Trond Eivind Glomsr<EFBFBD>d <teg@redhat.com>
|
|
|
|
|
- 2.0.7
|
|
|
|
|
|
|
|
|
|
* Wed Apr 25 2001 Trond Eivind Glomsr<EFBFBD>d <teg@redhat.com>
|
|
|
|
|
- Fix for isql segfault on EOF/ctrl-d exit
|
|
|
|
|
|
|
|
|
|
* Fri Apr 20 2001 Trond Eivind Glomsr<EFBFBD>d <teg@redhat.com>
|
|
|
|
|
- 2.0.6
|
|
|
|
|
- add patch for 64 bit archs (dword shouldn't be "long int")
|
2004-09-09 13:46:36 +00:00
|
|
|
|
|
2004-09-09 13:46:32 +00:00
|
|
|
|
* Wed Feb 28 2001 Trond Eivind Glomsr<EFBFBD>d <teg@redhat.com>
|
|
|
|
|
- rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Nov 28 2000 Trond Eivind Glomsr<EFBFBD>d <teg@redhat.com>
|
|
|
|
|
- 1.8.13
|
|
|
|
|
|
|
|
|
|
* Tue Oct 10 2000 Trond Eivind Glomsr<EFBFBD>d <teg@redhat.com>
|
|
|
|
|
- enable GUI now that we have KDE compiled with the standard
|
|
|
|
|
compiler
|
|
|
|
|
- move the applnk entries to the KDE package
|
|
|
|
|
|
2004-09-09 13:45:16 +00:00
|
|
|
|
* Thu Aug 24 2000 Nalin Dahyabhai <nalin@redhat.com>
|
|
|
|
|
- add the missing shared libs to the non-devel package
|
|
|
|
|
|
|
|
|
|
* Wed Aug 23 2000 Preston Brown <pbrown@redhat.com>
|
|
|
|
|
- 1.8.12 fixes problems with the postgresql driver
|
|
|
|
|
|
|
|
|
|
* Mon Jul 31 2000 Trond Eivind Glomsr<EFBFBD>d <teg@redhat.com>
|
|
|
|
|
- disable KDE subpackage to avoid the mess that is C++ binary
|
|
|
|
|
compatibility
|
|
|
|
|
|
|
|
|
|
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
|
|
|
|
|
- automatic rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jun 30 2000 Florian La Roche <laroche@redhat.com>
|
|
|
|
|
- improved QTDIR detection
|
|
|
|
|
|
|
|
|
|
* Thu Jun 28 2000 Trond Eivind Glomsr<EFBFBD>d <teg@redhat.com>
|
|
|
|
|
- 1.8.10
|
|
|
|
|
- use %%{_tmppath}
|
|
|
|
|
- update URL
|
|
|
|
|
- including two missing libraries
|
|
|
|
|
|
|
|
|
|
* Tue Jun 13 2000 Preston Brown <pbrown@redhat.com>
|
|
|
|
|
- 1.8.9
|
|
|
|
|
|
|
|
|
|
* Fri Jun 09 2000 Preston Brown <pbrown@redhat.com>
|
|
|
|
|
- adopted for Winston, changed to Red Hat packaging standards
|
|
|
|
|
|
|
|
|
|
* Tue Apr 18 2000 Murray Todd Williams <murray@codingapes.com>
|
|
|
|
|
- added a unixODBC-devel RPM to the group, added KDE links and icons to system
|
|
|
|
|
- all of which came from recommendations from Fredrick Meunier
|
|
|
|
|
- <Fredrick.Meunier@computershare.com.au>
|
|
|
|
|
|
|
|
|
|
* Mon Apr 17 2000 Murray Todd Williams <murray@codingapes.com>
|
|
|
|
|
- unixODBC-1.8.7
|
|
|
|
|
- moved install to $RPM_BUILD_ROOT so it didn't overrun existing files.
|