Working SCL
This commit is contained in:
parent
ab66e7908c
commit
1997fb6284
@ -2,6 +2,8 @@
|
|||||||
%global with_python2 0
|
%global with_python2 0
|
||||||
%global with_python3 1
|
%global with_python3 1
|
||||||
|
|
||||||
|
%{?scl:%global py3dir %{_builddir}/python3-%{name}-%{version}-%{release}}
|
||||||
|
|
||||||
# This controls whether setuptools is build as a wheel or not,
|
# This controls whether setuptools is build as a wheel or not,
|
||||||
# simplifying Python 3.4 bootstraping process
|
# simplifying Python 3.4 bootstraping process
|
||||||
%global build_wheel 0
|
%global build_wheel 0
|
||||||
@ -170,7 +172,6 @@ rm -rf %{buildroot}%{python3_sitelib}/setuptools/tests
|
|||||||
sed -i '/^setuptools\/tests\//d' %{buildroot}%{python3_record}
|
sed -i '/^setuptools\/tests\//d' %{buildroot}%{python3_record}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
install -p -m 0644 %{SOURCE1} %{SOURCE2} %{py3dir}
|
|
||||||
find %{buildroot}%{python3_sitelib} -name '*.exe' | xargs rm -f
|
find %{buildroot}%{python3_sitelib} -name '*.exe' | xargs rm -f
|
||||||
chmod +x %{buildroot}%{python3_sitelib}/setuptools/command/easy_install.py
|
chmod +x %{buildroot}%{python3_sitelib}/setuptools/command/easy_install.py
|
||||||
popd
|
popd
|
||||||
@ -188,10 +189,11 @@ rm -rf %{buildroot}%{python_sitelib}/setuptools/tests
|
|||||||
sed -i '/^setuptools\/tests\//d' %{buildroot}%{python2_record}
|
sed -i '/^setuptools\/tests\//d' %{buildroot}%{python2_record}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
install -p -m 0644 %{SOURCE1} %{SOURCE2} .
|
|
||||||
find %{buildroot}%{python_sitelib} -name '*.exe' | xargs rm -f
|
find %{buildroot}%{python_sitelib} -name '*.exe' | xargs rm -f
|
||||||
chmod +x %{buildroot}%{python_sitelib}/setuptools/command/easy_install.py
|
chmod +x %{buildroot}%{python_sitelib}/setuptools/command/easy_install.py
|
||||||
%endif # with_python2
|
%endif # with_python2
|
||||||
|
|
||||||
|
install -p -m 0644 %{SOURCE1} %{SOURCE2} .
|
||||||
%{?scl:EOF}
|
%{?scl:EOF}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@ -223,8 +225,13 @@ rm -rf %{buildroot}
|
|||||||
%if 0%{?with_python3}
|
%if 0%{?with_python3}
|
||||||
%files -n %{?scl_prefix}python3-setuptools
|
%files -n %{?scl_prefix}python3-setuptools
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc psfl.txt zpl.txt docs
|
%doc *.txt docs
|
||||||
%{python3_sitelib}/*
|
%{python3_sitelib}/*
|
||||||
|
|
||||||
|
%if ! 0%{?with_python2}
|
||||||
|
%{_bindir}/easy_install
|
||||||
|
%endif # !with_python2
|
||||||
|
|
||||||
%{_bindir}/easy_install-3.*
|
%{_bindir}/easy_install-3.*
|
||||||
%endif # with_python3
|
%endif # with_python3
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user