python-setuptools-vl.spec 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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: 5.4.1
  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. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. BuildArch: noarch
  15. BuildRequires: python-devel
  16. %description
  17. setuptools is a collection of enhancements to the Python distutils that allow
  18. you to more easily build and distribute Python packages, especially ones that
  19. have dependencies on other packages.
  20. %description -l ja
  21. setuptools は Python distutils の拡張機能を集めたツールです。
  22. このツールにより Python パッケージの構築や配布が簡単に行えるように
  23. なります。特に他のパッケージに依存しているパッケージを扱う際に便利
  24. です。
  25. %prep
  26. %setup -q -n setuptools-%{version}
  27. #find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python}|'
  28. %build
  29. CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
  30. %install
  31. rm -rf $RPM_BUILD_ROOT
  32. %{__python} setup.py install -O1 --skip-build \
  33. --root $RPM_BUILD_ROOT \
  34. --single-version-externally-managed
  35. install -p -m 0644 %{SOURCE1} %{SOURCE2} .
  36. find $RPM_BUILD_ROOT%{python_sitelib} -name '*.exe' | xargs rm -f
  37. %clean
  38. rm -rf $RPM_BUILD_ROOT
  39. %files
  40. %defattr(-,root,root,-)
  41. %doc *.txt
  42. %{_bindir}/*
  43. %{python_sitelib}/*
  44. %changelog
  45. * Sat Jul 26 2014 Toshiharu Kudoh <toshi.kd2@gmail.com> 5.4.1-1
  46. - new upstream release
  47. * Sun Jul 06 2014 Toshiharu Kudoh <toshi.kd2@gmail.com> 5.4-1
  48. - new upstream release
  49. * Sat Apr 26 2014 Toshiharu Kudoh <toshi.kd2@gmail.com> 3.4.4-1
  50. - new upstream release
  51. * Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.6c11-2
  52. - rebuild with python-2.7.2
  53. * Tue Feb 02 2010 Shu KONNO <owa@bg.wakwak.com> 0.6c11-1
  54. - new upstream release
  55. * Tue Feb 02 2010 Shu KONNO <owa@bg.wakwak.com> 0.6c9-2
  56. - rebuild with python-2.6
  57. * Sun Dec 07 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.6c9-1
  58. - new upstream release
  59. - add japanese summary and description
  60. * Mon Jul 21 2008 Shu KONNO <owa@bg.wakwak.com> - 0.6c3-1vl5
  61. - rebuilt with python-2.5.2
  62. - applied new versioning policy
  63. * Sat Nov 25 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.6c3-1vl2
  64. - rebuilt for Vine Linux 4.0
  65. - changed Group to Development/Tools
  66. * Wed Nov 15 2006 Susumu Tanimura <stanimura-ngs@umin.ac.jp>
  67. - Refurbished for VineLinux3.2
  68. * Tue Sep 12 2006 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.6c2-1
  69. - Upstream 0.6c2
  70. - Ghostbusting
  71. * Mon Jul 31 2006 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.6c1-2
  72. - Set perms on license files (#200768)
  73. * Sat Jul 22 2006 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.6c1-1
  74. - Version 0.6c1
  75. * Wed Jun 28 2006 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.6b3-1
  76. - Taking over from Ignacio
  77. - Version 0.6b3
  78. - Ghost .pyo files in sitelib
  79. - Add license files
  80. - Remove manual python-abi, since we're building FC4 and up
  81. - Kill .exe files
  82. * Wed Feb 15 2006 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.6a10-1
  83. - Upstream update
  84. * Mon Jan 16 2006 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.6a9-1
  85. - Upstream update
  86. * Sat Dec 24 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.6a8-1
  87. - Initial RPM release