From: Jakub Bogusz Date: Sun, 2 Mar 2003 19:44:43 +0000 (+0000) Subject: - added nolibnsl patch, fixed ac/am/lt X-Git-Tag: auto/ac/freetds-0_61-2~5 X-Git-Url: https://git.pld-linux.org/?a=commitdiff_plain;h=bff0c4983cf696818182703d28956b2636cd058f;p=packages%2Ffreetds.git - added nolibnsl patch, fixed ac/am/lt - release 2 Changed files: freetds-nolibnsl.patch -> 1.1 freetds.spec -> 1.6 --- diff --git a/freetds-nolibnsl.patch b/freetds-nolibnsl.patch new file mode 100644 index 0000000..b6e992b --- /dev/null +++ b/freetds-nolibnsl.patch @@ -0,0 +1,13 @@ +--- freetds-0.60/configure.in.orig Tue Sep 10 20:58:13 2002 ++++ freetds-0.60/configure.in Sun Mar 2 19:00:13 2003 +@@ -25,8 +25,8 @@ + dnl ------------------------------------------------------------ + dnl Checks for libraries. + dnl ------------------------------------------------------------ +-AC_CHECK_LIB(socket, socket, NETWORK_LIBS="$NETWORK_LIBS -lsocket") +-AC_CHECK_LIB(nsl, gethostbyname, NETWORK_LIBS="$NETWORK_LIBS -lnsl") ++AC_CHECK_FUNC(socket,,[AC_CHECK_LIB(socket, socket, NETWORK_LIBS="$NETWORK_LIBS -lsocket")]) ++AC_CHECK_FUNC(gethostbyname,,[AC_CHECK_LIB(nsl, gethostbyname, NETWORK_LIBS="$NETWORK_LIBS -lnsl")]) + AC_SUBST(NETWORK_LIBS) + + dnl ------------------------------------------------------------ diff --git a/freetds.spec b/freetds.spec index 0344e76..1ee7a1b 100644 --- a/freetds.spec +++ b/freetds.spec @@ -1,3 +1,4 @@ +# # Conditional build: # _with_msdblib - use MS-style dblib # @@ -14,13 +15,16 @@ Summary: Free implementation of Sybase's db-lib Summary(pl): Wolnodostêpna implementacja db-lib firmy Sybase Name: freetds Version: 0.60 -Release: 1 +Release: 2 License: LGPL Group: Libraries Source0: ftp://ftp.ibiblio.org/pub/Linux/ALPHA/freetds/stable/%{name}-%{version}.tgz +Patch0: %{name}-nolibnsl.patch URL: http://www.freetds.org/ BuildRequires: autoconf +BuildRequires: automake BuildRequires: glib-devel +BuildRequires: libtool BuildRequires: unixODBC-devel Requires(post): /sbin/ldconfig BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -68,9 +72,13 @@ Statyczne biblioteki FreeTDS. %prep %setup -q +%patch -p1 %build +%{__libtoolize} +%{__aclocal} %{__autoconf} +%{__automake} %configure \ --with-tdsver=%{tdsver} \ %{?_with_msdblib:--with-msdblib} \