diff --git a/python-setuptools.spec b/python-setuptools.spec index 178e741..53ed51a 100644 --- a/python-setuptools.spec +++ b/python-setuptools.spec @@ -19,7 +19,15 @@ Name: python-setuptools -BuildRequires: fdupes python-base +%if 0%{?suse_version} > 1020 +BuildRequires: fdupes +%endif +%if 0%{?suse_version} >= 1110 +BuildRequires: python-base +%else +BuildRequires: python-devel +Requires: python-devel +%endif Version: 0.6c9 Release: 10 Summary: Download, build, install, upgrade, and uninstall Python packages -- easily! @@ -65,7 +73,9 @@ install -p -m 0644 %{SOURCE1} %{SOURCE2} . find $RPM_BUILD_ROOT%{py_sitedir} -name '*.exe' | xargs rm -f find $RPM_BUILD_ROOT%{py_sitedir} -name '*.txt' | xargs chmod -x chmod +x $RPM_BUILD_ROOT%{py_sitedir}/setuptools/command/easy_install.py +%if 0%{?suse_version} > 1020 %fdupes $RPM_BUILD_ROOT%{py_sitedir} +%endif %clean rm -rf $RPM_BUILD_ROOT