Name: python-sybase Version: 0.39 Release: 6%{?dist} Summary: Sybase module for python Group: Development/Tools License: BSD URL: http://python-sybase.sourceforge.net/ Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: python-devel python-setuptools freetds-devel #Requires: %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} %define debug_package %{nil} # Only arch-specific file is inside a python egg file %description Sybase module for python %prep %setup -q rm doc/.cvsignore chmod -x doc/pstumble %build export SYBASE="%{_prefix}" python setup.py build_ext -D HAVE_FREETDS %install rm -rf $RPM_BUILD_ROOT export PYTHONPATH="$RPM_BUILD_ROOT%{python_sitearch}" mkdir -p $PYTHONPATH export SYBASE="%{_prefix}" python setup.py install --prefix=$RPM_BUILD_ROOT%{_prefix} rm $PYTHONPATH/site.* rm $PYTHONPATH/easy-install.pth %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc LICENCE ChangeLog doc examples %{python_sitearch}/* %changelog * Sat Oct 25 2008 Andy Theuninck - 0.39-6 - Remove easy-install.pth from the installation * Thu Oct 23 2008 Andy Theuninck - 0.39-5 - Note about debug info - Proper permissions for documentation * Fri Oct 10 2008 Andy Theuninck - 0.39-4 - Use sitearch instead of sitelib to support other arches correct - Added python-setuptools requirement * Thu Oct 09 2008 Andy Theuninck - 0.39-3 - Changes requested in package approval process - Mostly increasted use of macros * Wed Aug 20 2008 Andy Theuninck - 0.39-2 - Added documentation and examples * Wed Aug 20 2008 Andy Theuninck - 0.39-1 - Initial RPM package