python-setuptools-vl.spec 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
  2. Name: python-setuptools
  3. Version: 18.5
  4. Release: 1%{?_dist_release}
  5. Summary: Download, build, install, upgrade, and uninstall Python packages
  6. Summary(ja): Python パッケージのダウンロード、ビルド、インストール、アップグレードおよびアンインストール用ツール
  7. Group: Development/Tools
  8. License: PSFL/ZPL
  9. URL: https://pypi.python.org/pypi/setuptools
  10. Source0: https://pypi.python.org/packages/source/s/setuptools/setuptools-%{version}.tar.gz
  11. Source1: psfl.txt
  12. Source2: zpl.txt
  13. Patch0: add-setter-for-test_args.patch
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  15. Requires(post): alternatives
  16. BuildArch: noarch
  17. BuildRequires: python-devel
  18. %description
  19. setuptools is a collection of enhancements to the Python distutils that allow
  20. you to more easily build and distribute Python packages, especially ones that
  21. have dependencies on other packages.
  22. %description -l ja
  23. setuptools は Python distutils の拡張機能を集めたツールです。
  24. このツールにより Python パッケージの構築や配布が簡単に行えるように
  25. なります。特に他のパッケージに依存しているパッケージを扱う際に便利
  26. です。
  27. %prep
  28. %setup -q -n setuptools-%{version}
  29. %patch0 -p1
  30. #find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python}|'
  31. %build
  32. CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
  33. %install
  34. rm -rf $RPM_BUILD_ROOT
  35. %{__python} setup.py install -O1 --skip-build \
  36. --root $RPM_BUILD_ROOT \
  37. --single-version-externally-managed
  38. install -p -m 0644 %{SOURCE1} %{SOURCE2} .
  39. find $RPM_BUILD_ROOT%{python_sitelib} -name '*.exe' | xargs rm -f
  40. # for alternatives
  41. %__rm -f $RPM_BUILD_ROOT%{_bindir}/easy_install
  42. %clean
  43. rm -rf $RPM_BUILD_ROOT
  44. %post
  45. update-alternatives --install %{_bindir}/easy_install easy_install \
  46. %{_bindir}/easy_install-%{python_version} 30
  47. %triggerpostun -- python-setuptools < 5.4.2-2
  48. update-alternatives --auto easy_install
  49. %preun
  50. if [ "$1" = "0" ]
  51. then
  52. update-alternatives --remove easy_install %{_bindir}/easy_install-%{python_version}
  53. fi
  54. %files
  55. %defattr(-,root,root,-)
  56. %doc *.txt
  57. %{_bindir}/easy_install-%{python_version}
  58. %{python_sitelib}/*
  59. %changelog
  60. * Sun Nov 15 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 18.5-1
  61. - new upstream release.
  62. - imported patch0 from rawhide.
  63. * Mon Mar 9 2015 IWAI, Masaharu <iwaim.sub@gmail.com> - 5.4.2-2
  64. - alternatives for easy_install
  65. * Fri Aug 08 2014 Toshiharu Kudoh <toshi.kd2@gmail.com> 5.4.2-1
  66. - new upstream release
  67. * Sat Jul 26 2014 Toshiharu Kudoh <toshi.kd2@gmail.com> 5.4.1-1
  68. - new upstream release
  69. * Sun Jul 06 2014 Toshiharu Kudoh <toshi.kd2@gmail.com> 5.4-1
  70. - new upstream release
  71. * Sat Apr 26 2014 Toshiharu Kudoh <toshi.kd2@gmail.com> 3.4.4-1
  72. - new upstream release
  73. * Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.6c11-2
  74. - rebuild with python-2.7.2
  75. * Tue Feb 02 2010 Shu KONNO <owa@bg.wakwak.com> 0.6c11-1
  76. - new upstream release
  77. * Tue Feb 02 2010 Shu KONNO <owa@bg.wakwak.com> 0.6c9-2
  78. - rebuild with python-2.6
  79. * Sun Dec 07 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.6c9-1
  80. - new upstream release
  81. - add japanese summary and description
  82. * Mon Jul 21 2008 Shu KONNO <owa@bg.wakwak.com> - 0.6c3-1vl5
  83. - rebuilt with python-2.5.2
  84. - applied new versioning policy
  85. * Sat Nov 25 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.6c3-1vl2
  86. - rebuilt for Vine Linux 4.0
  87. - changed Group to Development/Tools
  88. * Wed Nov 15 2006 Susumu Tanimura <stanimura-ngs@umin.ac.jp>
  89. - Refurbished for VineLinux3.2
  90. * Tue Sep 12 2006 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.6c2-1
  91. - Upstream 0.6c2
  92. - Ghostbusting
  93. * Mon Jul 31 2006 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.6c1-2
  94. - Set perms on license files (#200768)
  95. * Sat Jul 22 2006 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.6c1-1
  96. - Version 0.6c1
  97. * Wed Jun 28 2006 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.6b3-1
  98. - Taking over from Ignacio
  99. - Version 0.6b3
  100. - Ghost .pyo files in sitelib
  101. - Add license files
  102. - Remove manual python-abi, since we're building FC4 and up
  103. - Kill .exe files
  104. * Wed Feb 15 2006 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.6a10-1
  105. - Upstream update
  106. * Mon Jan 16 2006 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.6a9-1
  107. - Upstream update
  108. * Sat Dec 24 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.6a8-1
  109. - Initial RPM release