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