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