python-setuptools-vl.spec 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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: 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: 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. %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. * Tue Feb 02 2010 Shu KONNO <owa@bg.wakwak.com> 0.6c11-1
  46. - new upstream release
  47. * Tue Feb 02 2010 Shu KONNO <owa@bg.wakwak.com> 0.6c9-2
  48. - rebuild with python-2.6
  49. * Sun Dec 07 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.6c9-1
  50. - new upstream release
  51. - add japanese summary and description
  52. * Mon Jul 21 2008 Shu KONNO <owa@bg.wakwak.com> - 0.6c3-1vl5
  53. - rebuilt with python-2.5.2
  54. - applied new versioning policy
  55. * Sat Nov 25 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.6c3-1vl2
  56. - rebuilt for Vine Linux 4.0
  57. - changed Group to Development/Tools
  58. * Wed Nov 15 2006 Susumu Tanimura <stanimura-ngs@umin.ac.jp>
  59. - Refurbished for VineLinux3.2
  60. * Tue Sep 12 2006 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.6c2-1
  61. - Upstream 0.6c2
  62. - Ghostbusting
  63. * Mon Jul 31 2006 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.6c1-2
  64. - Set perms on license files (#200768)
  65. * Sat Jul 22 2006 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.6c1-1
  66. - Version 0.6c1
  67. * Wed Jun 28 2006 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.6b3-1
  68. - Taking over from Ignacio
  69. - Version 0.6b3
  70. - Ghost .pyo files in sitelib
  71. - Add license files
  72. - Remove manual python-abi, since we're building FC4 and up
  73. - Kill .exe files
  74. * Wed Feb 15 2006 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.6a10-1
  75. - Upstream update
  76. * Mon Jan 16 2006 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.6a9-1
  77. - Upstream update
  78. * Sat Dec 24 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.6a8-1
  79. - Initial RPM release