File project.diff of Package python-simplejson
--- python-simplejson.spec.orig
+++ python-simplejson.spec
@@ -15,9 +15,10 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
+%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+%define modname simplejson
Summary: Simple, fast, extensible JSON encoder/decoder for Python
-
Name: python-simplejson
Version: 2.0.9
Release: 1
@@ -26,8 +27,11 @@ Group: Development/Libraries/Py
Url: http://undefined.org/python/#simplejson
Source: simplejson-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-BuildRequires: fdupes python python-devel python-setuptools
+BuildRequires: python python-devel python-setuptools
+%if 0%{?suse_version} >= 1030
+BuildRequires: fdupes
%py_requires
+%endif
%description
simplejson is a simple, fast, complete, correct and extensible JSON
@@ -66,16 +70,26 @@ export CFLAGS="$RPM_OPT_FLAGS"
python setup.py build
%install
-python setup.py install --prefix=%{_prefix} --root="$RPM_BUILD_ROOT"
+%if 0%{?suse_version} > 1030
+python setup.py install --prefix=%{_prefix} --root="$RPM_BUILD_ROOT" --record-rpm=FILELIST
%fdupes $RPM_BUILD_ROOT
+%else
+python setup.py install --prefix=%{_prefix} --root="$RPM_BUILD_ROOT"
+%endif
%clean
%{__rm} -rf %{buildroot}
+%if 0%{?suse_version} > 1030
+%files -f FILELIST
+%else
%files
+%endif
%defattr(-, root, root, 0755)
%doc LICENSE.txt
-%{py_sitedir}*
+%if 0%{?suse_version} <= 0
+%{python_sitelib}*
+%endif
%files doc
%defattr(0644, root, root, 0755)