X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=freetds.spec;h=4f5e89c56a801259191242fd999625a4070a6f49;hb=a47ebbf2dd8dc01f7cf9f88d3a2600542de093c7;hp=1ee7a1b2b5b2e97703da302bf3f8432c550dbfd9;hpb=bff0c4983cf696818182703d28956b2636cd058f;p=packages%2Ffreetds.git diff --git a/freetds.spec b/freetds.spec index 1ee7a1b..4f5e89c 100644 --- a/freetds.spec +++ b/freetds.spec @@ -1,30 +1,34 @@ # # Conditional build: -# _with_msdblib - use MS-style dblib +%bcond_with msdblib # use MS-style dblib instead of SYB-style +%bcond_without kerberos5 # Kerberos5 support (via Heimdal) # -# %%define tdsver - protocol version; valid versions: +# %%define tdsver - default 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!) +# 7.0 (used by MS SQL Server 7.0) [spec default] +# 7.1 (used by MS SQL Server 2000) %{!?tdsver:%define tdsver 7.0} Summary: Free implementation of Sybase's db-lib -Summary(pl): Wolnodostêpna implementacja db-lib firmy Sybase +Summary(pl.UTF-8): Wolnodostępna implementacja db-lib firmy Sybase Name: freetds -Version: 0.60 +Version: 0.91 Release: 2 -License: LGPL +License: LGPL v2+ Group: Libraries -Source0: ftp://ftp.ibiblio.org/pub/Linux/ALPHA/freetds/stable/%{name}-%{version}.tgz -Patch0: %{name}-nolibnsl.patch +Source0: ftp://ftp.ibiblio.org/pub/Linux/ALPHA/freetds/stable/%{name}-%{version}.tar.gz +# Source0-md5: b14db5823980a32f0643d1a84d3ec3ad URL: http://www.freetds.org/ -BuildRequires: autoconf +BuildRequires: autoconf >= 2.53 BuildRequires: automake -BuildRequires: glib-devel +BuildRequires: gettext-devel +%{?with_kerberos5:BuildRequires: heimdal-devel} +BuildRequires: libltdl-devel BuildRequires: libtool +BuildRequires: openssl-devel BuildRequires: unixODBC-devel Requires(post): /sbin/ldconfig BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -38,60 +42,87 @@ 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. +%description -l pl.UTF-8 +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 +Summary(pl.UTF-8): Pliki nagłówkowe FreeTDS Group: Development/Libraries -Requires: %{name} = %{version} +Requires: %{name} = %{version}-%{release} +%{?with_kerberos5:Requires: heimdal-devel} +Requires: openssl-devel %description devel FreeTDS header files. -%description devel -l pl -Pliki nag³ówkowe FreeTDS. +%description devel -l pl.UTF-8 +Pliki nagłówkowe FreeTDS. %package static Summary: FreeTDS static libraries -Summary(pl): Statyczne biblioteki FreeTDS +Summary(pl.UTF-8): Statyczne biblioteki FreeTDS Group: Development/Libraries -Requires: %{name}-devel = %{version} +Requires: %{name}-devel = %{version}-%{release} %description static FreeTDS static libraries. -%description static -l pl +%description static -l pl.UTF-8 Statyczne biblioteki FreeTDS. +%package odbc +Summary: FreeTDS ODBC driver for unixODBC +Summary(pl.UTF-8): Sterownik ODBC FreeTDS dla unixODBC +Group: Libraries +Requires(post): /sbin/ldconfig +Requires(post): /usr/bin/odbcinst +Requires: %{name} = %{version}-%{release} +Requires: unixODBC + +%description odbc +FreeTDS ODBC driver for unixODBC. + +%description odbc -l pl.UTF-8 +Sterownik ODBC FreeTDS dla unixODBC. + %prep %setup -q -%patch -p1 %build %{__libtoolize} -%{__aclocal} +%{__aclocal} -I m4 %{__autoconf} +%{__autoheader} %{__automake} %configure \ + %{?with_kerberos5:--enable-krb5=gssapi} \ --with-tdsver=%{tdsver} \ - %{?_with_msdblib:--with-msdblib} \ - --with-unixodbc + %{?with_msdblib:--with-msdblib} \ + --with-openssl \ + --with-unixodbc=/usr %{__make} %install rm -rf $RPM_BUILD_ROOT + %{__make} install \ 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 + +# ODBC driver, dlopen()ed +%{__rm} $RPM_BUILD_ROOT%{_libdir}/libtdsodbc.{la,a} + %clean rm -rf $RPM_BUILD_ROOT @@ -103,22 +134,69 @@ fi %postun -p /sbin/ldconfig +%post odbc +/sbin/ldconfig +/usr/bin/odbcinst -i -d -r <