%define bits 32 Name: libfreetds Version: 0.82 Release: 1mamba Summary: a database communication library for Sybase and Microsoft SQL Server. Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: gil URL: http://www.freetds.org/ Source0: ftp://ftp.ibiblio.org/pub/Linux/ALPHA/freetds/stable/freetds-%{version}.tar.gz Source1: libfreetds-0.82-tds_sysdep_public.h Patch0: ftp://ftp.ibiblio.org/pub/Linux/ALPHA/freetds/stable/cspublic.BLK_VERSION_150.patch Patch1: freetds-0.82-shared-libtds.patch Patch2: freetds-0.82-libtool.patch License: GPL, LGPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libgcrypt-devel BuildRequires: libgnutls-devel BuildRequires: libgpg-error-devel BuildRequires: libltdl-devel BuildRequires: libncurses-devel BuildRequires: libodbc-devel BuildRequires: libreadline-devel BuildRequires: libtasn1-devel BuildRequires: libz-devel ## AUTOBUILDREQ-END BuildRoot: %{_tmppath}/%{name}-%{version}-root %description FreeTDS is a database communication library for Sybase and Microsoft SQL Server. It includes an ODBC driver and the older DB-Library and CT-Library interfaces. It works with tools such as DBD::Sybase and DBD::ODBC for Perl, and the Sybase and ODBC module %package devel Group: Development/Libraries Summary: Libraries and headers for %{name} Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description devel FreeTDS is a database communication library for Sybase and Microsoft SQL Server. It includes an ODBC driver and the older DB-Library and CT-Library interfaces. It works with tools such as DBD::Sybase and DBD::ODBC for Perl, and the Sybase and ODBC module This package contains libraries and header files need for development. %package doc Group: Documentation Summary: Development documentation for %{name} %description doc FreeTDS is a database communication library for Sybase and Microsoft SQL Server. It includes an ODBC driver and the older DB-Library and CT-Library interfaces. It works with tools such as DBD::Sybase and DBD::ODBC for Perl, and the Sybase and ODBC module This package contains the development documentation for %{name}. %package static Group: Development/Libraries Summary: Static libraries for %{name} Requires: %{name}-devel = %{?epoch:%epoch:}%{version}-%{release} %description static FreeTDS is a database communication library for Sybase and Microsoft SQL Server. It includes an ODBC driver and the older DB-Library and CT-Library interfaces. It works with tools such as DBD::Sybase and DBD::ODBC for Perl, and the Sybase and ODBC module This package contains static libraries need for development. %prep %setup -q -n freetds-%{version} %patch0 -p0 %patch1 -p1 %patch2 -p1 # fix perl path sed -i '1 s,#!.*/perl,#!%{__perl},' samples/*.pl chmod -x samples/*.sh rm -f m4/lib-*.m4 autoreconf -f -i %build %configure\ --disable-dependency-tracking \ --disable-rpath \ --with-tdsver="4.2" \ --with-unixodbc="%{_prefix}" \ --enable-msdblib \ --enable-sybase-compat \ --with-gnutls %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall mv -f %{buildroot}%{_includedir}/tds_sysdep_public.h \ %{buildroot}%{_includedir}/tds_sysdep_public_%{bits}.h install -p -m 644 %{S:1} %{buildroot}%{_includedir}/tds_sysdep_public.h rm -f samples/Makefile* samples/*.in samples/README mv -f samples/unixodbc.freetds.driver.template \ samples/unixodbc.freetds.driver.template-%{bits} rm -rf %{buildroot}%{_docdir}/freetds-%{version}/ %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root) %config(noreplace) %{_sysconfdir}/freetds.conf %config(noreplace) %{_sysconfdir}/locales.conf %config(noreplace) %{_sysconfdir}/pool.conf %{_bindir}/bsqldb %{_bindir}/bsqlodbc %{_bindir}/datacopy %{_bindir}/defncopy %{_bindir}/fisql %{_bindir}/freebcp %{_bindir}/osql %{_bindir}/tdspool %{_bindir}/tsql %{_libdir}/libct.so.* %{_libdir}/libsybdb.so.* %{_libdir}/libtdsodbc.so.* %{_mandir}/man1/*.1.gz %{_mandir}/man5/freetds.conf.5.gz %doc AUTHORS BUGS COPYING* ChangeLog NEWS README TODO %doc doc/*.html doc/doc/freetds-%{version}/userguide doc/images %files devel %defattr(-,root,root) %{_includedir}/*.h %{_libdir}/libct.so %{_libdir}/libsybdb.so %{_libdir}/libtds.so %{_libdir}/libtdsodbc.so %doc samples %files static %defattr(-,root,root) %{_libdir}/libct.*a %{_libdir}/libsybdb.*a %{_libdir}/libtds.*a %{_libdir}/libtdsodbc.*a %{_libdir}/libtds-%{version}.so %files doc %defattr(-,root,root) %doc doc/doc/freetds-%{version}/reference %changelog * Mon May 11 2009 gil 0.82-1mamba - package created by autospec