%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} Name: cx_Oracle Version: 5.0.2 Release: 1%{?dist} Summary: Python interface to Oracle License: Python Software Foundation License Group: Development/Libraries Url: http://cx-oracle.sourceforge.net/ Source0: http://downloads.sourceforge.net/cx-oracle/%{name}-%{version}.tar.gz BuildRequires: python-devel BuildRequires: oracle-instantclient-devel BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %description Python interface to Oracle conforming to the Python DB API 2.0 specification. %prep %setup -q %build CFLAGS="$RPM_OPT_FLAGS" python setup.py build %install rm -rf $RPM_BUILD_ROOT python setup.py install --root $RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %{python_sitearch}/* %doc LICENSE.txt README.txt HISTORY.txt html test %changelog * Mon Dec 28 2009 Peter Lemenkov - 5.0.2-1 - Ver. 5.0.2 * Mon Apr 27 2009 Peter Lemenkov - 5.0.1-1 - Ver. 5.0.1 * Thu Nov 20 2008 Peter Lemenkov - 4.4.1-1 - Ver. 4.4.1 * Wed Nov 5 2008 Peter Lemenkov - 4.4-2 - Added Eggs * Thu Oct 23 2008 Peter Lemenkov - 4.4-1 - Initial package