Fdd FreeTDS support

- provide libtdsS.so in the main package
- add tds config to odbcinst.ini

Resolves: rhbz#1448890
Version: 2.3.4-8
This commit is contained in:
Tomas Repik 2017-08-29 11:01:23 +02:00 committed by Pavel Raiskup
parent f5172ed969
commit d93e3b36ab
2 changed files with 17 additions and 2 deletions

View File

@ -20,3 +20,14 @@ Setup = /usr/lib/libodbcmyS.so
Driver64 = /usr/lib64/libmyodbc5.so Driver64 = /usr/lib64/libmyodbc5.so
Setup64 = /usr/lib64/libodbcmyS.so Setup64 = /usr/lib64/libodbcmyS.so
FileUsage = 1 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

View File

@ -1,7 +1,7 @@
Summary: A complete ODBC driver manager for Linux Summary: A complete ODBC driver manager for Linux
Name: unixODBC Name: unixODBC
Version: 2.3.4 Version: 2.3.4
Release: 7%{?dist} Release: 8%{?dist}
Group: System Environment/Libraries Group: System Environment/Libraries
URL: http://www.unixODBC.org/ URL: http://www.unixODBC.org/
# Programs are GPL, libraries are LGPL, except News Server library is GPL. # 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 find $RPM_BUILD_ROOT%{_libdir} -name "*.so" | sed "s|^$RPM_BUILD_ROOT||" > devel-so-list
# move these to main package, they're often dlopened... # 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 do
echo "%{_libdir}/$lib" >> base-so-list echo "%{_libdir}/$lib" >> base-so-list
grep -v "/$lib$" devel-so-list > devel-so-list.x grep -v "/$lib$" devel-so-list > devel-so-list.x
@ -134,6 +134,10 @@ done
%postun -p /sbin/ldconfig %postun -p /sbin/ldconfig
%changelog %changelog
* Wed Aug 30 2017 Tomas Repik <trepik@redhat.com> - 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 <releng@fedoraproject.org> - 2.3.4-7 * Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.4-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild