File project.diff of Package python-sqlite2
--- python-sqlite2.spec.orig
+++ python-sqlite2.spec
@@ -6,6 +6,7 @@
#
# norootforbuild
+%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Name: python-sqlite2
Summary: Python bindings for SQLite
@@ -17,7 +18,9 @@ Url: http://code.google.com/p/pysqlit
Source: pysqlite-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: sqlite-devel python-devel
+%if 0%{?suse_version} >= 1030
%py_requires
+%endif
%description
This packages allows you to use SQLite 3.x with python.
@@ -56,6 +59,6 @@ rm -rf doc/sphinx/.static
%files
%defattr(-, root, root, 0755)
%doc LICENSE doc/
-%{py_sitedir}*
+%{python_sitelib}*
%changelog