Browse Source

python-setuptools-25.1.1-1

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@10733 ec354946-7b23-47d6-9f5a-488ba84defc7
tomop 7 years ago
parent
commit
1682dcc06d
1 changed files with 23 additions and 5 deletions
  1. 23 5
      p/python-setuptools/python-setuptools-vl.spec

+ 23 - 5
p/python-setuptools/python-setuptools-vl.spec

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