File project.diff of Package python-cheetah
--- python-cheetah.spec.orig
+++ python-cheetah.spec
@@ -1,3 +1,5 @@
+%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+
%define modname cheetah
Name: python-%{modname}
Version: 2.2.2
@@ -8,7 +10,9 @@ License: Other License(s), see pa
Group: Development/Libraries/Python
Source: Cheetah-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-buildroot
+%if 0%{?suse_version} >= 1030
%{py_requires}
+%endif
BuildRequires: python-devel
%description
@@ -29,14 +33,27 @@ export CFLAGS="$RPM_OPT_FLAGS"
python setup.py build
%install
+%if 0%{?suse_version} >= 1030
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES
-%fdupes %buildroot
+#%fdupes %buildroot
+%else
+python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT
+%endif
%clean
rm -rf %{buildroot}
+%if 0%{?suse_version} >= 1030
%files -f INSTALLED_FILES
+%else
+%files
+%endif
%defattr(-,root,root)
%doc CHANGES LICENSE README TODO
+%if 0%{?suse_version} <= 0
+%{_bindir}/*
+%{python_sitelib}*
+%endif
+
%changelog