3 # _with_msdblib - use MS-style dblib
5 # %%define tdsver - protocol version; valid versions:
6 # 4.2 (used by Sybase SQLServer <= 10 and MS SQL Server 6.5)
8 # 5.0 (used by Sybase SQLServer >= 11)
9 # 7.0 (used by MS SQL Server 7.0) [default]
10 # 8.0 (not finished yet!)
12 %{!?tdsver:%define tdsver 7.0}
14 Summary: Free implementation of Sybase's db-lib
15 Summary(pl): Wolnodostêpna implementacja db-lib firmy Sybase
21 Source0: ftp://ftp.ibiblio.org/pub/Linux/ALPHA/freetds/stable/%{name}-%{version}.tgz
22 # Source0-md5: 15cc9829beb534606deb3020b3118eb9
23 Patch0: %{name}-nolibnsl.patch
24 URL: http://www.freetds.org/
25 BuildRequires: autoconf
26 BuildRequires: automake
27 BuildRequires: glib-devel
28 BuildRequires: libltdl-devel
29 BuildRequires: libtool
30 BuildRequires: unixODBC-devel
31 Requires(post): /sbin/ldconfig
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 %define _sysconfdir /etc/tds
37 FreeTDS is a free (open source) implementation of Sybase's db-lib,
38 ct-lib, and ODBC libraries (which can be used also to work with MS SQL
39 databases). Currently, dblib and ctlib are most mature. Both of these
40 libraries have several programs known to compile and run against them.
41 ODBC is not quite as mature, but may work depending on your needs.
44 FreeTDS to wolnodostêpna (z otwartymi ¼ród³ami) implementacja
45 bibliotek db-lib, ct-lib i ODBC firmy Sybase (których mo¿na u¿ywaæ
46 tak¿e do pracy z bazami MS SQL). Aktualnie najlepiej dzia³aj± dblib i
47 ctlib - istnieje trochê programów, o których wiadomo, ¿e kompiluj± siê
48 i dzia³aj± z tymi bibliotekami. ODBC nie jest jeszcze na tyle
49 skoñczony, ale mo¿e dzia³aæ w zale¿no¶ci od potrzeb.
52 Summary: FreeTDS header files
53 Summary(pl): Pliki nag³ówkowe FreeTDS
54 Group: Development/Libraries
55 Requires: %{name} = %{version}
60 %description devel -l pl
61 Pliki nag³ówkowe FreeTDS.
64 Summary: FreeTDS static libraries
65 Summary(pl): Statyczne biblioteki FreeTDS
66 Group: Development/Libraries
67 Requires: %{name}-devel = %{version}
70 FreeTDS static libraries.
72 %description static -l pl
73 Statyczne biblioteki FreeTDS.
85 --with-tdsver=%{tdsver} \
86 %{?_with_msdblib:--with-msdblib} \
92 rm -rf $RPM_BUILD_ROOT
94 DESTDIR=$RPM_BUILD_ROOT \
95 ETC=$RPM_BUILD_ROOT%{_sysconfdir}
97 mv -f src/pool/BUGS BUGS.pool
98 mv -f src/pool/README README.pool
99 mv -f src/pool/TODO TODO.pool
102 rm -rf $RPM_BUILD_ROOT
106 if [ -f /etc/freetds.conf ]; then
107 mv -f /etc/freetds.conf %{_sysconfdir}/freetds.conf
110 %postun -p /sbin/ldconfig
113 %defattr(644,root,root,755)
114 %doc AUTHORS BUGS* ChangeLog README* TODO*
115 %attr(755,root,root) %{_libdir}/lib*.so.*.*
116 %attr(755,root,root) %{_bindir}/*
118 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/freetds.conf
119 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/locales.conf
120 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/pool.conf
124 %defattr(644,root,root,755)
125 %attr(755,root,root) %{_libdir}/lib*.so
130 %defattr(644,root,root,755)