]> git.pld-linux.org Git - packages/python3-setuptools.git/blame - python-setuptools.spec
- --root option casuses that pth file is not created; create manually
[packages/python3-setuptools.git] / python-setuptools.spec
CommitLineData
b79e62bc
AM
1
2%define module setuptools
3
4Summary: A collection of enhancements to the Python distutils
5Name: python-setuptools
6Version: 0.6a8
7Release: 1
8License: GPL
9Group: Development/Languages/Python
10Source0: http://cheeseshop.python.org/packages/source/s/setuptools/setuptools-%{version}.zip
11# Source0-md5: 3eecdf66c1a2cf8a6556bc00b69d572a
12URL: http://peak.telecommunity.com/DevCenter/setuptools
13%pyrequires_eq python
14BuildRequires: python-devel
15BuildRequires: unzip
16BuildArch: noarch
17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19%description
20setuptools is a collection of enhancements to the Python distutils
21(for Python 2.3.5 and up on most platforms; 64-bit platforms require a
22minimum of Python 2.4) that allow you to more easily build and
23distribute Python packages, especially ones that have dependencies on
24other packages.
25
26%prep
27%setup -q -n %{module}-%{version}
28
29%build
30python ./setup.py build
31
32%install
33rm -rf $RPM_BUILD_ROOT
34
35python ./setup.py install \
36 --optimize 2 \
37 --root=$RPM_BUILD_ROOT
b79e62bc
AM
38%py_postclean
39
3c1d7b6f
AM
40echo '%{module}-%{version}-py%{py_ver}.egg' > $RPM_BUILD_ROOT%{py_sitescriptdir}/%{module}.pth
41
b79e62bc
AM
42%clean
43rm -rf $RPM_BUILD_ROOT
44
45%files
46%defattr(644,root,root,755)
47%doc *.txt
48%attr(755,root,root) %{_bindir}/*
49%{py_sitescriptdir}/%{module}*
This page took 0.071545 seconds and 4 git commands to generate.