python-setuptools-vl.spec 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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: 0.6c11
  4. Release: 3%{?_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: http://peak.telecommunity.com/DevCenter/setuptools
  10. Source0: http://cheeseshop.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. Vendor: Project Vine
  17. Distribution: Vine Linux
  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. find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python}|'
  30. %build
  31. CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
  32. %install
  33. rm -rf $RPM_BUILD_ROOT
  34. %{__python} setup.py install -O1 --skip-build \
  35. --root $RPM_BUILD_ROOT \
  36. --single-version-externally-managed
  37. install -p -m 0644 %{SOURCE1} %{SOURCE2} .
  38. find $RPM_BUILD_ROOT%{python_sitelib} -name '*.exe' | xargs rm -f
  39. %clean
  40. rm -rf $RPM_BUILD_ROOT
  41. %files
  42. %defattr(-,root,root,-)
  43. %doc *.txt
  44. %{_bindir}/*
  45. %{python_sitelib}/*
  46. %changelog
  47. * Sun Jan 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.6c11-3
  48. - rebuild with VineSeed environment
  49. * Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.6c11-2
  50. - rebuild with python-2.7.2
  51. * Tue Feb 02 2010 Shu KONNO <owa@bg.wakwak.com> 0.6c11-1
  52. - new upstream release
  53. * Tue Feb 02 2010 Shu KONNO <owa@bg.wakwak.com> 0.6c9-2
  54. - rebuild with python-2.6
  55. * Sun Dec 07 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.6c9-1
  56. - new upstream release
  57. - add japanese summary and description
  58. * Mon Jul 21 2008 Shu KONNO <owa@bg.wakwak.com> - 0.6c3-1vl5
  59. - rebuilt with python-2.5.2
  60. - applied new versioning policy
  61. * Sat Nov 25 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.6c3-1vl2
  62. - rebuilt for Vine Linux 4.0
  63. - changed Group to Development/Tools
  64. * Wed Nov 15 2006 Susumu Tanimura <stanimura-ngs@umin.ac.jp>
  65. - Refurbished for VineLinux3.2
  66. * Tue Sep 12 2006 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.6c2-1
  67. - Upstream 0.6c2
  68. - Ghostbusting
  69. * Mon Jul 31 2006 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.6c1-2
  70. - Set perms on license files (#200768)
  71. * Sat Jul 22 2006 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.6c1-1
  72. - Version 0.6c1
  73. * Wed Jun 28 2006 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.6b3-1
  74. - Taking over from Ignacio
  75. - Version 0.6b3
  76. - Ghost .pyo files in sitelib
  77. - Add license files
  78. - Remove manual python-abi, since we're building FC4 and up
  79. - Kill .exe files
  80. * Wed Feb 15 2006 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.6a10-1
  81. - Upstream update
  82. * Mon Jan 16 2006 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.6a9-1
  83. - Upstream update
  84. * Sat Dec 24 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.6a8-1
  85. - Initial RPM release