fix for old distros
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-setuptools?expand=0&rev=23
This commit is contained in:
parent
938b91f3ba
commit
c14ed32285
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user