Compare commits
6 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3ef1461967 | ||
|
|
e1705a147f | ||
|
|
2bc4071fb0 | ||
|
|
82aca510e3 | ||
|
|
bbe3fd78e5 | ||
|
|
7b373fa3c7 |
3 changed files with 39 additions and 5 deletions
3
10-freetds.ini
Normal file
3
10-freetds.ini
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
[FreeTDS]
|
||||
Description = Free Sybase & MS SQL Driver
|
||||
Driver = libtdsodbc.so
|
||||
39
freetds.spec
39
freetds.spec
|
|
@ -2,14 +2,15 @@
|
|||
|
||||
Name: freetds
|
||||
Summary: Implementation of the TDS (Tabular DataStream) protocol
|
||||
Version: 1.4.23
|
||||
Release: 4%{?dist}
|
||||
Version: 1.5.18
|
||||
Release: 1%{?dist}
|
||||
# Automatically converted from old format: LGPLv2+ and GPLv2+ - review is highly recommended.
|
||||
License: LGPL-2.0-or-later AND GPL-2.0-or-later
|
||||
URL: http://www.freetds.org/
|
||||
|
||||
Source0: https://www.freetds.org/files/stable/%{name}-%{version}.tar.bz2
|
||||
Source1: freetds-tds_sysdep_public.h
|
||||
Source2: 10-freetds.ini
|
||||
|
||||
BuildRequires: unixODBC-devel, readline-devel, gnutls-devel, krb5-devel
|
||||
BuildRequires: libgcrypt-devel
|
||||
|
|
@ -99,6 +100,13 @@ make install DESTDIR=$RPM_BUILD_ROOT
|
|||
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
||||
chmod -x $RPM_BUILD_ROOT%{_sysconfdir}/*
|
||||
|
||||
# Move ODBC plugin to a dedicated subdirectory (rhbz#2453060)
|
||||
# libtdsodbc.so is a symlink to libtdsodbc.so.0 -- recreate it with
|
||||
# a correct relative path from the subdirectory back to the parent
|
||||
mkdir -p $RPM_BUILD_ROOT%{_libdir}/odbc
|
||||
unlink $RPM_BUILD_ROOT%{_libdir}/libtdsodbc.so
|
||||
ln -s ../libtdsodbc.so.0 $RPM_BUILD_ROOT%{_libdir}/odbc/libtdsodbc.so
|
||||
|
||||
mv -f $RPM_BUILD_ROOT%{_includedir}/tds_sysdep_public.h \
|
||||
$RPM_BUILD_ROOT%{_includedir}/tds_sysdep_public_%{bits}.h
|
||||
install -p -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_includedir}/tds_sysdep_public.h
|
||||
|
|
@ -111,6 +119,10 @@ mv -f samples/unixodbc.freetds.driver.template \
|
|||
mkdir samples-odbc
|
||||
mv -f samples/*odbc* samples-odbc
|
||||
|
||||
# ODBC driver registration drop-in snippet
|
||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/odbc/odbcinst.d
|
||||
install -m644 %{SOURCE2} $RPM_BUILD_ROOT%{_prefix}/lib/odbc/odbcinst.d/
|
||||
|
||||
# deinstall it for our own way...
|
||||
mv -f $RPM_BUILD_ROOT%{_docdir}/%{name} docdir
|
||||
find docdir -type f -print0 | xargs -0 chmod -x
|
||||
|
|
@ -131,7 +143,11 @@ find docdir -type f -print0 | xargs -0 chmod -x
|
|||
%files libs
|
||||
%license COPYING_LIB.txt
|
||||
%{_libdir}/*.so.*
|
||||
%{_libdir}/libtdsodbc.so
|
||||
%dir %{_libdir}/odbc
|
||||
%{_libdir}/odbc/libtdsodbc.so
|
||||
%dir %{_prefix}/lib/odbc
|
||||
%dir %{_prefix}/lib/odbc/odbcinst.d
|
||||
%{_prefix}/lib/odbc/odbcinst.d/10-freetds.ini
|
||||
%doc samples-odbc
|
||||
%config(noreplace) %{_sysconfdir}/*.conf
|
||||
%{_mandir}/man5/*
|
||||
|
|
@ -141,7 +157,7 @@ find docdir -type f -print0 | xargs -0 chmod -x
|
|||
%license COPYING_LIB.txt
|
||||
%doc samples
|
||||
%{_libdir}/*.so
|
||||
%exclude %{_libdir}/libtdsodbc.so
|
||||
%exclude %{_libdir}/odbc/libtdsodbc.so
|
||||
%{_includedir}/*
|
||||
|
||||
|
||||
|
|
@ -150,6 +166,21 @@ find docdir -type f -print0 | xargs -0 chmod -x
|
|||
|
||||
|
||||
%changelog
|
||||
* Tue Aug 11 2026 Dmitry Butskoy <Dmitry@Butskoy.name> - 1.5.18-1
|
||||
- update to 1.5.18 (#2513794)
|
||||
|
||||
* Wed Jul 29 2026 Michal Schorm <mschorm@redhat.com> - 1.4.23-8
|
||||
- Fix FTBFS with nettle 4.0: 'sha1_digest()' also lost length parameter
|
||||
|
||||
* Mon Jul 20 2026 Michal Schorm <mschorm@redhat.com> - 1.4.23-7
|
||||
- Ship drop-in snippet for ODBC driver self-registration
|
||||
|
||||
* Wed Jul 15 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.23-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
|
||||
|
||||
* Mon Mar 30 2026 Michal Schorm <mschorm@redhat.com> - 1.4.23-5
|
||||
- Move ODBC plugin libtdsodbc.so to %%{_libdir}/odbc/ (rhbz#2453060)
|
||||
|
||||
* Fri Jan 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.23-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (freetds-1.4.23.tar.bz2) = 9b51b21d9c5dc7cac3d9fdccb3a600a6b3b2a0df6f7a0396497ba3377c9a6925b3e4ea3dfbb671bd4563c321692bea82c6f70c2ccefb30eaa0d006ebd3aac249
|
||||
SHA512 (freetds-1.5.18.tar.bz2) = 9410b992d5b6a2bede00a6e81256b9f426d1477d7b9a2ea74c0481b2a5c3840c35171916a24f7820e101bfc44cf67dbf7c6c5d69010415c19178d91e7949859e
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue