35866da
Name: freetds
35866da
Summary: Implementation of the TDS (Tabular DataStream) protocol
35866da
Version: 0.64
4bd0d8a
Release: 6%{?dist}
35866da
Group: System Environment/Libraries
35866da
License: LGPL 
35866da
URL: http://www.freetds.org/
35866da
Source:	ftp://ftp.ibiblio.org/pub/Linux/ALPHA/freetds/stable/freetds-%{version}.tar.gz
35866da
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
35866da
BuildRequires: unixODBC-devel
35866da
BuildRequires: doxygen, docbook-style-dsssl
35866da
Patch0: freetds-0.64-makefile-doc.patch
35866da
 
35866da
35866da
%description 
35866da
FreeTDS is a project to document and implement the TDS (Tabular
35866da
DataStream) protocol. TDS is used by Sybase(TM) and Microsoft(TM) for
35866da
client to database server communications. FreeTDS includes call
35866da
level interfaces for DB-Lib, CT-Lib, and ODBC.
35866da
35866da
35866da
%package devel
35866da
Summary: Header files, libraries and development documentation for %{name}
35866da
Group: Development/Libraries
35866da
Requires: %{name} = %{version}-%{release}
35866da
35866da
%description devel
35866da
This package contains the header files and development documentation
35866da
for %{name}. If you like to develop programs using %{name}, you will need
35866da
to install %{name}-devel.
35866da
35866da
35866da
%prep 
35866da
%setup -q
35866da
%patch0 -p1
35866da
35866da
# cleanup the initial source
35866da
sed -i 's/\r//' doc/tds_ssl.html
35866da
sed -i '1 s,#!.*/perl,#!%{__perl},' samples/*.pl doc/api_status.txt
35866da
35866da
find doc/ samples/ COPYING* -type f -print0 | xargs -0 chmod -x
35866da
find . -name "*.[ch]" -print0 | xargs -0 chmod -x
35866da
35866da
# cause to rebuild docs
35866da
rm doc/doc/freetds-%{version}/reference/index.html
35866da
rm doc/doc/freetds-%{version}/userguide/index.htm
35866da
35866da
 
35866da
%build 
35866da
%configure \
35866da
	--disable-dependency-tracking \
35866da
	%{!?_with_static: --disable-static} \
35866da
	--with-tdsver="4.2" \
35866da
	--with-unixodbc="%{_prefix}" \
35866da
	--enable-msdblib \
35866da
	--enable-sybase-compat
35866da
35866da
# avoid any rpath
35866da
sed -i -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
35866da
	-e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
35866da
35866da
make %{?_smp_mflags} DOCBOOK_DSL="`rpm -ql docbook-style-dsssl | fgrep html/docbook.dsl`"
35866da
35866da
chmod -x samples/*.template
35866da
35866da
 
35866da
%install 
35866da
rm -rf $RPM_BUILD_ROOT
35866da
35866da
make install DESTDIR=$RPM_BUILD_ROOT
35866da
35866da
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
35866da
35866da
rm -f samples/Makefile* samples/*.in samples/README
35866da
35866da
35866da
%post -p /sbin/ldconfig
35866da
35866da
%postun -p /sbin/ldconfig
35866da
 
35866da
35866da
%clean 
35866da
rm -rf $RPM_BUILD_ROOT
35866da
 
35866da
35866da
%files 
35866da
%defattr(-, root, root, -) 
35866da
%{_bindir}/*
35866da
%{_libdir}/*.so.*
35866da
%config(noreplace) %{_sysconfdir}/*.conf
35866da
%doc AUTHORS BUGS COPYING* NEWS README TODO 
35866da
%doc doc/*.html doc/doc/freetds-%{version}/userguide
35866da
%{_mandir}/*/*
35866da
35866da
 
35866da
%files devel 
35866da
%defattr (-, root, root) 
35866da
%doc samples doc/doc/freetds-%{version}/reference
35866da
%{?_with_static: %{_libdir}/*.a}
35866da
%{_libdir}/*.so
35866da
%{_includedir}/*
35866da
 
35866da
35866da
%changelog 
4bd0d8a
* Fri Jun 15 2007 Dmitry Butskoy <Dmitry@Butskoy.name> - 0.64-6 
4bd0d8a
- bump release to provide update path over Livna
4bd0d8a
35866da
* Wed Jun 13 2007 Dmitry Butskoy <Dmitry@Butskoy.name> - 0.64-5
35866da
- spec file cleanups
35866da
- allowed for Fedora (no patent issues exist), clarification by
35866da
  James K. Lowden <jklowden [AT] freetds.org>
35866da
- approved for Fedora (review by Hans de Goede <j.w.r.degoede@hhs.nl>)
35866da
35866da
* Wed Aug  2 2006 Dmitry Butskoy <Dmitry@Butskoy.name> - 0.64-4
35866da
- approved for Livna (review by Hans de Goede <j.w.r.degoede@hhs.nl>)
35866da
35866da
* Tue Aug  1 2006 Dmitry Butskoy <Dmitry@Butskoy.name> - 0.64-4
35866da
- add patch to fix sed scripts in the doc/ Makefile
35866da
- avoid using rpath in binaries
35866da
- cleanup in samples/ dir
35866da
35866da
* Thu Jul 27 2006 Dmitry Butskoy <Dmitry@Butskoy.name> - 0.64-3
35866da
- rebuild userguide too.
35866da
- move reference docs to -devel
35866da
35866da
* Mon Jul 24 2006 Dmitry Butskoy <Dmitry@Butskoy.name> - 0.64-2
35866da
- Properly clear extra executable bit in source
35866da
- Regenerate docs using doxygen
35866da
35866da
* Thu Jul 20 2006 Dmitry Butskoy <Dmitry@Butskoy.name> - 0.64-1
35866da
- Upgrade to 0.64
35866da
- Some spec file and distro cleanups
35866da
35866da
* Tue Sep 20 2005 V.C.G.Yeah <VCGYeah@iname.com> - 0.63-1
35866da
- Upgrade to 0.63
35866da
- spec file cleanups
35866da
- build static libs conditional
35866da
35866da
* Thu Sep  2 2004 V.C.G.Yeah <VCGYeah@iname.com> - 0.62.4-1Y
35866da
- Updated to release 0.62.4.
35866da
- Leave includes in system default include dir (needed for php-mssql build)
35866da
35866da
* Mon May 17 2004 Dag Wieers <dag@wieers.com> - 0.62.3-1
35866da
- Updated to release 0.62.3.
35866da
35866da
* Wed Feb 04 2004 Dag Wieers <dag@wieers.com> - 0.61.2-0
35866da
- Added --enable-msdblib configure option. (Dean Mumby)
35866da
- Updated to release 0.61.2.
35866da
35866da
* Fri Jun 13 2003 Dag Wieers <dag@wieers.com> - 0.61-0
35866da
- Initial package. (using DAR)