#
# Conditional build:
-# _with_msdblib - use MS-style dblib
+%bcond_with msdblib # use MS-style dblib
#
# %%define tdsver - protocol version; valid versions:
# 4.2 (used by Sybase SQLServer <= 10 and MS SQL Server 6.5)
Summary: Free implementation of Sybase's db-lib
Summary(pl): Wolnodostêpna implementacja db-lib firmy Sybase
Name: freetds
-Version: 0.60
-Release: 2
+Version: 0.63
+Release: 3
License: LGPL
Group: Libraries
-Source0: ftp://ftp.ibiblio.org/pub/Linux/ALPHA/freetds/stable/%{name}-%{version}.tgz
-Patch0: %{name}-nolibnsl.patch
+Source0: ftp://ftp.ibiblio.org/pub/Linux/ALPHA/freetds/stable/%{name}-%{version}.tar.gz
+# Source0-md5: a0a5038cfb708180308b381f848baf75
URL: http://www.freetds.org/
BuildRequires: autoconf
BuildRequires: automake
-BuildRequires: glib-devel
+BuildRequires: libltdl-devel
BuildRequires: libtool
BuildRequires: unixODBC-devel
Requires(post): /sbin/ldconfig
Summary: FreeTDS header files
Summary(pl): Pliki nag³ówkowe FreeTDS
Group: Development/Libraries
-Requires: %{name} = %{version}
+Requires: %{name} = %{version}-%{release}
%description devel
FreeTDS header files.
Summary: FreeTDS static libraries
Summary(pl): Statyczne biblioteki FreeTDS
Group: Development/Libraries
-Requires: %{name}-devel = %{version}
+Requires: %{name}-devel = %{version}-%{release}
%description static
FreeTDS static libraries.
%prep
%setup -q
-%patch -p1
%build
%{__libtoolize}
%{__automake}
%configure \
--with-tdsver=%{tdsver} \
- %{?_with_msdblib:--with-msdblib} \
- --with-unixodbc
+ %{?with_msdblib:--with-msdblib} \
+ --with-unixodbc=/usr
%{__make}
DESTDIR=$RPM_BUILD_ROOT \
ETC=$RPM_BUILD_ROOT%{_sysconfdir}
+mv -f src/pool/BUGS BUGS.pool
+mv -f src/pool/README README.pool
+mv -f src/pool/TODO TODO.pool
+
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc AUTHORS BUGS ChangeLog README* TODO
+%doc AUTHORS BUGS* ChangeLog NEWS README* TODO*
%attr(755,root,root) %{_libdir}/lib*.so.*.*
%attr(755,root,root) %{_bindir}/*
%dir %{_sysconfdir}
%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/freetds.conf
%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/locales.conf
+%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/pool.conf
%{_mandir}/man1/*
%files devel