|
@@ -1,4 +1,8 @@
|
|
|
+%if %{?_dist_release} == "vl6"
|
|
|
+%bcond_with python3
|
|
|
+%else
|
|
|
%bcond_without python3
|
|
|
+%endif
|
|
|
|
|
|
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
|
|
@@ -8,8 +12,8 @@
|
|
|
%endif
|
|
|
|
|
|
Name: python-setuptools
|
|
|
-Version: 18.5
|
|
|
-Release: 3%{?_dist_release}
|
|
|
+Version: 25.1.1
|
|
|
+Release: 1%{?_dist_release}
|
|
|
Summary: Download, build, install, upgrade, and uninstall Python packages
|
|
|
Summary(ja): Python パッケージのダウンロード、ビルド、インストール、アップグレードおよびアンインストール用ツール
|
|
|
Group: Development/Tools
|
|
@@ -67,7 +71,7 @@ tar xvf %{SOURCE0}
|
|
|
pushd setuptools-%{version}
|
|
|
%patch0 -p1
|
|
|
#find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python}|'
|
|
|
-cp *.txt ../../
|
|
|
+cp *.rst ../../
|
|
|
popd
|
|
|
popd
|
|
|
|
|
@@ -115,6 +119,11 @@ popd
|
|
|
%clean
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
+%pre
|
|
|
+if [ ! -L %{_bindir}/easy_install ]; then
|
|
|
+ rm -f %{_bindir}/easy_install
|
|
|
+fi
|
|
|
+
|
|
|
%post
|
|
|
update-alternatives --install %{_bindir}/easy_install easy_install \
|
|
|
%{_bindir}/easy_install-%{python_version} 30
|
|
@@ -130,6 +139,11 @@ fi
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
|
+%pre -n python3-setuptools
|
|
|
+if [ ! -L %{_bindir}/easy_install ]; then
|
|
|
+ rm -f %{_bindir}/easy_install
|
|
|
+fi
|
|
|
+
|
|
|
%post -n python3-setuptools
|
|
|
update-alternatives --install %{_bindir}/easy_install easy_install \
|
|
|
%{_bindir}/easy_install-%{python3_version} 20
|
|
@@ -144,19 +158,23 @@ fi
|
|
|
|
|
|
%files
|
|
|
%defattr(-,root,root,-)
|
|
|
-%doc *.txt
|
|
|
+%doc *.rst
|
|
|
%{_bindir}/easy_install-%{python_version}
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
%if %{with python3}
|
|
|
%files -n python3-setuptools
|
|
|
%defattr(-,root,root,-)
|
|
|
-%doc *.txt
|
|
|
+%doc *.rst
|
|
|
%{_bindir}/easy_install-%{python3_version}
|
|
|
%{python3_sitelib}/*
|
|
|
%endif
|
|
|
|
|
|
%changelog
|
|
|
+* Sat Jul 30 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 25.1.1-1
|
|
|
+- new upstream release.
|
|
|
+- enable to build on Vine6.
|
|
|
+
|
|
|
* Tue Jun 28 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 18.5-3
|
|
|
- rebuild with python3-3.5.2
|
|
|
|