2 # _with_msdblib - use MS-style dblib
4 # %%define tdsver - protocol version; valid versions:
5 # 4.2 (used by MS SQL Server 6.0)
7 # 5.0 (used by Sybase only)
8 # 7.0 (used by MS SQL Server 7.0) [default]
9 # 8.0 [only login works now]
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/%{name}-%{version}.tgz
21 URL: http://www.freetds.org/
22 BuildRequires: autoconf
23 BuildRequires: glib-devel
24 BuildRequires: unixODBC-devel
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 FreeTDS is a free (open source) implementation of Sybase's db-lib,
29 ct-lib, and ODBC libraries (which can be used also to work with MS SQL
30 databases). Currently, dblib and ctlib are most mature. Both of these
31 libraries have several programs known to compile and run against them.
32 ODBC is not quite as mature, but may work depending on your needs.
35 FreeTDS to wolnodostêpna (z otwartymi ¼ród³ami) implementacja
36 bibliotek db-lib, ct-lib i ODBC firmy Sybase (których mo¿na u¿ywaæ
37 tak¿e do pracy z bazami MS SQL). Aktualnie najlepiej dzia³aj± dblib i
38 ctlib - istnieje trochê programów, o których wiadomo, ¿e kompiluj± siê
39 i dzia³aj± z tymi bibliotekami. ODBC nie jest jeszcze na tyle
40 skoñczony, ale mo¿e dzia³aæ w zale¿no¶ci od potrzeb.
43 Summary: FreeTDS header files
44 Summary(pl): Pliki nag³ówkowe FreeTDS
45 Group: Development/Libraries
46 Requires: %{name} = %{version}
51 %description devel -l pl
52 Pliki nag³ówkowe FreeTDS.
55 Summary: FreeTDS static libraries
56 Summary(pl): Statyczne biblioteki FreeTDS
57 Group: Development/Libraries
58 Requires: %{name}-devel = %{version}
61 FreeTDS static libraries.
63 %description static -l pl
64 Statyczne biblioteki FreeTDS.
72 --with-tdsver=%{tdsver} \
73 %{?_with_msdblib:--with-msdblib} \
79 rm -rf $RPM_BUILD_ROOT
81 DESTDIR=$RPM_BUILD_ROOT \
82 ETC=$RPM_BUILD_ROOT%{_sysconfdir}
84 gzip -9nf AUTHORS BUGS NEWS README TODO
87 rm -rf $RPM_BUILD_ROOT
89 %post -p /sbin/ldconfig
90 %postun -p /sbin/ldconfig
93 %defattr(644,root,root,755)
95 %attr(755,root,root) %{_libdir}/lib*.so.*.*
96 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/freetds.conf
99 %defattr(644,root,root,755)
100 %attr(755,root,root) %{_libdir}/lib*.so
101 %attr(755,root,root) %{_libdir}/lib*.la
105 %defattr(644,root,root,755)