Summary: A Python interface to MySQL
Summary(pl): Interfejs Pythona do MySQL
Name: python-MySQLdb
-Version: 0.9.3b2
+Version: 1.1.0
Release: 1
License: GPL
Group: Libraries/Python
Source0: http://dl.sourceforge.net/mysql-python/MySQL-python-%{version}.tar.gz
-# Source0-md5: 05467d8f6458527becb0b70c19b67498
+# Source0-md5: e961a6bca10dc3d502db74ad75423b0e
URL: http://sourceforge.net/projects/mysql-python/
#Requires: mysql >= 3.23.49
BuildRequires: mysql-devel >= 4.0.10
%install
rm -rf $RPM_BUILD_ROOT
-python -- setup.py install --root=$RPM_BUILD_ROOT --optimize=2
+python -- setup.py install \
+ --root=$RPM_BUILD_ROOT \
+ --install-lib=%{py_sitescriptdir} \
+ --optimize=2
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc README CHANGELOG doc/*.html
-%attr(755,root,root) %{py_sitedir}/*.so
-%{py_sitedir}/*.py?
+%doc README CHANGELOG doc/*
+%attr(755,root,root) %{py_sitescriptdir}/*.so
+%{py_sitescriptdir}/*.py?
-%dir %{py_sitedir}/MySQLdb
-%{py_sitedir}/MySQLdb/*.py?
+%dir %{py_sitescriptdir}/MySQLdb
+%{py_sitescriptdir}/MySQLdb/*.py?
-%dir %{py_sitedir}/MySQLdb/constants
-%{py_sitedir}/MySQLdb/constants/*.py?
+%dir %{py_sitescriptdir}/MySQLdb/constants
+%{py_sitescriptdir}/MySQLdb/constants/*.py?