Репозитории ALT
S: | 1.3.16-alt1 |
5.1: | 0.82-alt2 |
4.1: | 0.64-alt3 |
4.0: | 0.63-alt1.1.0 |
3.0: | 0.63-alt1 |
Другие репозитории
Upstream: | 0.64 |
Группа :: Система/Библиотеки
Пакет: freetds
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%def_disable static
%define TDSVER 7.0
%define name freetds
%define release alt1
%define version 0.63
Name: %name
Version: %version
Release: %release.1.0
Summary: An OpenSource implementation of the tubular data stream protocol.
License: GPL/LGPL
Group: System/Libraries
URL: http://www.freetds.org/
Source0: ftp://ftp.ibiblio.org/pub/Linux/ALPHA/freetds/current/%name-%version.tar.bz2
Source1: %name.sh
Source2: %name.csh
# Automatically added by buildreq on Tue May 24 2005
BuildRequires: gcc-c++ libreadline-devel libstdc++-devel
%if_enabled static
# Automatically added by buildreq on Tue Jan 06 2004
BuildRequires: glibc-devel-static
%endif
%description
FreeTDS is a free (open source) implementation of Sybase's db-lib,
ct-lib, and ODBC libraries. Currently, dblib and ctlib are most mature. Both
of these libraries have several programs know to compile and run against them.
ODBC is just a roughed in skeleton, and not useful for real work.
This package is built with support of TDS version %TDSVER.
%package -n lib%name
Summary: An OpenSource implementation of the tubular data stream protocol.
License: GPL/LGPL
Group: System/Libraries
Provides: %name
%description -n lib%name
FreeTDS is a free (open source) implementation of Sybase's db-lib,
ct-lib, and ODBC libraries. Currently, dblib and ctlib are most mature. Both
of these libraries have several programs know to compile and run against them.
ODBC is just a roughed in skeleton, and not useful for real work.
This package is built with support for TDS version %TDSVER.
%package -n lib%name-devel
Summary: An OpenSource implementation of the TDS protocol. Development files.
License: GPL/LGPL
Group: Development/C
PreReq: lib%name = %version-%release
Provides: %name-devel
%description -n lib%name-devel
FreeTDS is a free (open source) implementation of Sybase's db-lib,
ct-lib, and ODBC libraries. The freetds-devel allows you to compile
applications with freetds libraries.
This package is built with support for TDS version %TDSVER.
%package -n lib%name-devel-static
Summary: An OpenSource implementation of the TDS protocol. Static libraries.
License: GPL/LGPL
Group: Development/C
PreReq: lib%name-devel = %version-%release
Provides: %name-devel-static
%description -n lib%name-devel-static
FreeTDS is a free (open source) implementation of Sybase's db-lib,
ct-lib, and ODBC libraries. The freetds-devel allows you to compile
applications with freetds libraries. Package with static libraries.
This package is built with support for TDS version %TDSVER.
%package -n %name-utils
Summary: An OpenSource implementation of the TDS protocol. Utilities.
License: GPL/LGPL
Group: Databases
PreReq: lib%name = %version-%release
Provides: %name-utils
%description -n %name-utils
FreeTDS is a free (open source) implementation of Sybase's db-lib,
ct-lib, and ODBC libraries. Currently, dblib and ctlib are most mature. Both
of these libraries have several programs know to compile and run against them.
ODBC is just a roughed in skeleton, and not useful for real work.
This package is built with support for TDS version %TDSVER and contains some
useful utilities.
%prep
%setup -q
#patch0 -p1
%build
%configure \
--sysconfdir=%_sysconfdir/%name \
--with-tdsver=%TDSVER \
--disable-odbc \
--enable-threadsafe \
--enable-sybase-compat \
%{subst_enable static}
%make_build
%install
make install DESTDIR=%buildroot
%post -n lib%name
%post_ldconfig
%postun -n lib%name
%postun_ldconfig
%files -n lib%name
%_libdir/*.so.*
%dir %_sysconfdir/%name
%config(noreplace) %_sysconfdir/%name/freetds.conf
%config(noreplace) %_sysconfdir/%name/locales.conf
%files -n lib%name-devel
%_includedir/*
%_libdir/*.so
%if_enabled static
%files -n lib%name-devel-static
%_libdir/*.a
%endif
%files -n %name-utils
%config(noreplace) %_sysconfdir/%name/pool.conf
%_bindir/freebcp
%_bindir/tdspool
%_bindir/tsql
%_bindir/bsqldb
%_bindir/defncopy
%_mandir/man1/bsqldb.1.gz
%_mandir/man1/defncopy.1.gz
%_mandir/man1/freebcp.1*
%_mandir/man1/tsql.1*
%dir %_docdir/%name-%version
%doc %_docdir/%name-%version/*
%changelog
…
Полный changelog можно просмотреть здесь
%define TDSVER 7.0
%define name freetds
%define release alt1
%define version 0.63
Name: %name
Version: %version
Release: %release.1.0
Summary: An OpenSource implementation of the tubular data stream protocol.
License: GPL/LGPL
Group: System/Libraries
URL: http://www.freetds.org/
Source0: ftp://ftp.ibiblio.org/pub/Linux/ALPHA/freetds/current/%name-%version.tar.bz2
Source1: %name.sh
Source2: %name.csh
# Automatically added by buildreq on Tue May 24 2005
BuildRequires: gcc-c++ libreadline-devel libstdc++-devel
%if_enabled static
# Automatically added by buildreq on Tue Jan 06 2004
BuildRequires: glibc-devel-static
%endif
%description
FreeTDS is a free (open source) implementation of Sybase's db-lib,
ct-lib, and ODBC libraries. Currently, dblib and ctlib are most mature. Both
of these libraries have several programs know to compile and run against them.
ODBC is just a roughed in skeleton, and not useful for real work.
This package is built with support of TDS version %TDSVER.
%package -n lib%name
Summary: An OpenSource implementation of the tubular data stream protocol.
License: GPL/LGPL
Group: System/Libraries
Provides: %name
%description -n lib%name
FreeTDS is a free (open source) implementation of Sybase's db-lib,
ct-lib, and ODBC libraries. Currently, dblib and ctlib are most mature. Both
of these libraries have several programs know to compile and run against them.
ODBC is just a roughed in skeleton, and not useful for real work.
This package is built with support for TDS version %TDSVER.
%package -n lib%name-devel
Summary: An OpenSource implementation of the TDS protocol. Development files.
License: GPL/LGPL
Group: Development/C
PreReq: lib%name = %version-%release
Provides: %name-devel
%description -n lib%name-devel
FreeTDS is a free (open source) implementation of Sybase's db-lib,
ct-lib, and ODBC libraries. The freetds-devel allows you to compile
applications with freetds libraries.
This package is built with support for TDS version %TDSVER.
%package -n lib%name-devel-static
Summary: An OpenSource implementation of the TDS protocol. Static libraries.
License: GPL/LGPL
Group: Development/C
PreReq: lib%name-devel = %version-%release
Provides: %name-devel-static
%description -n lib%name-devel-static
FreeTDS is a free (open source) implementation of Sybase's db-lib,
ct-lib, and ODBC libraries. The freetds-devel allows you to compile
applications with freetds libraries. Package with static libraries.
This package is built with support for TDS version %TDSVER.
%package -n %name-utils
Summary: An OpenSource implementation of the TDS protocol. Utilities.
License: GPL/LGPL
Group: Databases
PreReq: lib%name = %version-%release
Provides: %name-utils
%description -n %name-utils
FreeTDS is a free (open source) implementation of Sybase's db-lib,
ct-lib, and ODBC libraries. Currently, dblib and ctlib are most mature. Both
of these libraries have several programs know to compile and run against them.
ODBC is just a roughed in skeleton, and not useful for real work.
This package is built with support for TDS version %TDSVER and contains some
useful utilities.
%prep
%setup -q
#patch0 -p1
%build
%configure \
--sysconfdir=%_sysconfdir/%name \
--with-tdsver=%TDSVER \
--disable-odbc \
--enable-threadsafe \
--enable-sybase-compat \
%{subst_enable static}
%make_build
%install
make install DESTDIR=%buildroot
%post -n lib%name
%post_ldconfig
%postun -n lib%name
%postun_ldconfig
%files -n lib%name
%_libdir/*.so.*
%dir %_sysconfdir/%name
%config(noreplace) %_sysconfdir/%name/freetds.conf
%config(noreplace) %_sysconfdir/%name/locales.conf
%files -n lib%name-devel
%_includedir/*
%_libdir/*.so
%if_enabled static
%files -n lib%name-devel-static
%_libdir/*.a
%endif
%files -n %name-utils
%config(noreplace) %_sysconfdir/%name/pool.conf
%_bindir/freebcp
%_bindir/tdspool
%_bindir/tsql
%_bindir/bsqldb
%_bindir/defncopy
%_mandir/man1/bsqldb.1.gz
%_mandir/man1/defncopy.1.gz
%_mandir/man1/freebcp.1*
%_mandir/man1/tsql.1*
%dir %_docdir/%name-%version
%doc %_docdir/%name-%version/*
%changelog
…
Полный changelog можно просмотреть здесь