Sophie

Sophie

distrib > PLD > ra > i386 > media > dist-src > by-pkgid > 00191918dea70c1b6389b8bc017b6f9f > files > 2

freetds-0.60-1.src.rpm

# $Revision: 1.4 $, $Date: 2002/09/13 20:26:37 $
# Conditional build:
# _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)
# 4.6
# 5.0 (used by Sybase SQLServer >= 11)
# 7.0 (used by MS SQL Server 7.0) [default]
# 8.0 (not finished yet!)

%{!?tdsver:%define tdsver 7.0}

Summary:	Free implementation of Sybase's db-lib
Summary(pl):	Wolnodostêpna implementacja db-lib firmy Sybase
Name:		freetds
Version:	0.60
Release:	1
License:	LGPL
Group:		Libraries
Source0:	ftp://ftp.ibiblio.org/pub/Linux/ALPHA/freetds/stable/%{name}-%{version}.tgz
URL:		http://www.freetds.org/
BuildRequires:	autoconf
BuildRequires:	glib-devel
BuildRequires:	unixODBC-devel
Requires(post):	/sbin/ldconfig
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%define		_sysconfdir	/etc/tds

%description
FreeTDS is a free (open source) implementation of Sybase's db-lib,
ct-lib, and ODBC libraries (which can be used also to work with MS SQL
databases). Currently, dblib and ctlib are most mature. Both of these
libraries have several programs known to compile and run against them.
ODBC is not quite as mature, but may work depending on your needs.

%description -l pl
FreeTDS to wolnodostêpna (z otwartymi ¼ród³ami) implementacja
bibliotek db-lib, ct-lib i ODBC firmy Sybase (których mo¿na u¿ywaæ
tak¿e do pracy z bazami MS SQL). Aktualnie najlepiej dzia³aj± dblib i
ctlib - istnieje trochê programów, o których wiadomo, ¿e kompiluj± siê
i dzia³aj± z tymi bibliotekami. ODBC nie jest jeszcze na tyle
skoñczony, ale mo¿e dzia³aæ w zale¿no¶ci od potrzeb.

%package devel
Summary:	FreeTDS header files
Summary(pl):	Pliki nag³ówkowe FreeTDS
Group:		Development/Libraries
Requires:	%{name} = %{version}

%description devel
FreeTDS header files.

%description devel -l pl
Pliki nag³ówkowe FreeTDS.

%package static
Summary:	FreeTDS static libraries
Summary(pl):	Statyczne biblioteki FreeTDS
Group:		Development/Libraries
Requires:	%{name}-devel = %{version}

%description static
FreeTDS static libraries.

%description static -l pl
Statyczne biblioteki FreeTDS.

%prep
%setup -q

%build
%{__autoconf}
%configure \
	--with-tdsver=%{tdsver} \
	%{?_with_msdblib:--with-msdblib} \
	--with-unixodbc

%{__make}

%install
rm -rf $RPM_BUILD_ROOT
%{__make} install \
	DESTDIR=$RPM_BUILD_ROOT \
	ETC=$RPM_BUILD_ROOT%{_sysconfdir}

%clean
rm -rf $RPM_BUILD_ROOT

%post
/sbin/ldconfig
if [ -f /etc/freetds.conf ]; then
	mv -f /etc/freetds.conf %{_sysconfdir}/freetds.conf
fi

%postun	-p /sbin/ldconfig

%files
%defattr(644,root,root,755)
%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
%{_mandir}/man1/*

%files devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/lib*.so
%attr(755,root,root) %{_libdir}/lib*.la
%{_includedir}/*

%files static
%defattr(644,root,root,755)
%{_libdir}/lib*.a

%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
* %{date} PLD Team <feedback@pld.org.pl>
All persons listed below can be reached at <cvs_login>@pld.org.pl

$Log: freetds.spec,v $
Revision 1.4  2002/09/13 20:26:37  qboosh
- updated to 0.60
- configuration moved to /etc/tds (new file with rather common name appeared)

Revision 1.3  2002/07/25 05:38:56  kloczek
- use new %doc.

Revision 1.2  2002/05/21 23:13:02  kloczek
perl -pi -e "s/^automake -a -c -f --foreing/\%\{__automake\}/; \
             s/^automake -a -c -f/\%\{__automake\}/; \
	     s/^autoconf/\%\{__autoconf\}/"

Revision 1.1  2002/03/22 22:12:30  qboosh
- new