]> git.pld-linux.org Git - packages/freetds.git/blobdiff - freetds.spec
- specify --with-unixodbc=/usr not just --with-unixodbc to avoid evil -L
[packages/freetds.git] / freetds.spec
index 0344e763ceaa427fb6b53a14739bd119589e24f6..11f7a57f3143d1eed3131683255c707748ed9753 100644 (file)
@@ -1,3 +1,4 @@
+#
 # Conditional build:
 # _with_msdblib - use MS-style dblib
 #
 Summary:       Free implementation of Sybase's db-lib
 Summary(pl):   Wolnodostêpna implementacja db-lib firmy Sybase
 Name:          freetds
-Version:       0.60
-Release:       1
+Version:       0.61
+Release:       2
 License:       LGPL
 Group:         Libraries
 Source0:       ftp://ftp.ibiblio.org/pub/Linux/ALPHA/freetds/stable/%{name}-%{version}.tgz
+Patch0:                %{name}-nolibnsl.patch
 URL:           http://www.freetds.org/
 BuildRequires: autoconf
+BuildRequires: automake
 BuildRequires: glib-devel
+BuildRequires: libltdl-devel
+BuildRequires: libtool
 BuildRequires: unixODBC-devel
 Requires(post):        /sbin/ldconfig
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -68,13 +73,17 @@ Statyczne biblioteki FreeTDS.
 
 %prep
 %setup -q
+%patch -p1
 
 %build
+%{__libtoolize}
+%{__aclocal}
 %{__autoconf}
+%{__automake}
 %configure \
        --with-tdsver=%{tdsver} \
        %{?_with_msdblib:--with-msdblib} \
-       --with-unixodbc
+       --with-unixodbc=/usr
 
 %{__make}
 
@@ -84,6 +93,10 @@ rm -rf $RPM_BUILD_ROOT
        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
 
@@ -97,12 +110,13 @@ fi
 
 %files
 %defattr(644,root,root,755)
-%doc AUTHORS BUGS ChangeLog README* TODO
+%doc AUTHORS BUGS* ChangeLog 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
This page took 0.075313 seconds and 4 git commands to generate.