From c14ed3228506c6c5331941bb0ac9dfc88aa0e6b9fe0127c0382f05b53cf682e3 Mon Sep 17 00:00:00 2001 From: Jan Matejek Date: Fri, 3 Apr 2009 13:04:07 +0000 Subject: [PATCH] fix for old distros OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-setuptools?expand=0&rev=23 --- python-setuptools.spec | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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