From d93e3b36abfcff203142d27c651547a20c5018c2 Mon Sep 17 00:00:00 2001 From: Tomas Repik Date: Tue, 29 Aug 2017 11:01:23 +0200 Subject: [PATCH] Fdd FreeTDS support - provide libtdsS.so in the main package - add tds config to odbcinst.ini Resolves: rhbz#1448890 Version: 2.3.4-8 --- odbcinst.ini | 11 +++++++++++ unixODBC.spec | 8 ++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/odbcinst.ini b/odbcinst.ini index 9038b05..fb4d6c7 100644 --- a/odbcinst.ini +++ b/odbcinst.ini @@ -20,3 +20,14 @@ Setup = /usr/lib/libodbcmyS.so Driver64 = /usr/lib64/libmyodbc5.so Setup64 = /usr/lib64/libodbcmyS.so FileUsage = 1 + + +# Driver from the freetds-libs package +# Setup from the unixODBC package +[FreeTDS] +Description = Free Sybase & MS SQL Driver +Driver = /usr/lib/libtdsodbc.so +Setup = /usr/lib/libtdsS.so +Driver64 = /usr/lib64/libtdsodbc.so +Setup64 = /usr/lib64/libtdsS.so +Port = 1433 diff --git a/unixODBC.spec b/unixODBC.spec index 348deac..b34f2b8 100644 --- a/unixODBC.spec +++ b/unixODBC.spec @@ -1,7 +1,7 @@ Summary: A complete ODBC driver manager for Linux Name: unixODBC Version: 2.3.4 -Release: 7%{?dist} +Release: 8%{?dist} Group: System Environment/Libraries URL: http://www.unixODBC.org/ # Programs are GPL, libraries are LGPL, except News Server library is GPL. @@ -108,7 +108,7 @@ find $RPM_BUILD_ROOT%{_libdir} -name "*.so.*" | sed "s|^$RPM_BUILD_ROOT||" > bas find $RPM_BUILD_ROOT%{_libdir} -name "*.so" | sed "s|^$RPM_BUILD_ROOT||" > devel-so-list # move these to main package, they're often dlopened... -for lib in libodbc.so libodbcinst.so libodbcpsqlS.so libodbcmyS.so +for lib in libodbc.so libodbcinst.so libodbcpsqlS.so libodbcmyS.so libtdsS.so do echo "%{_libdir}/$lib" >> base-so-list grep -v "/$lib$" devel-so-list > devel-so-list.x @@ -134,6 +134,10 @@ done %postun -p /sbin/ldconfig %changelog +* Wed Aug 30 2017 Tomas Repik - 2.3.4-8 +- move libtdsS.so to the main package and add tds config to odbcinst.ini +- rhbz#1448890 + * Thu Aug 03 2017 Fedora Release Engineering - 2.3.4-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild