]>
Commit | Line | Data |
---|---|---|
33ab89e7 | 1 | %define module termcolor |
1deeb97b | 2 | Summary: ANSII Color formatting for output in terminal |
3 | Name: python-%{module} | |
33ab89e7 | 4 | Version: 1.1.0 |
c3ddf216 | 5 | Release: 1 |
1deeb97b | 6 | License: GPL v3 |
7 | Group: Development/Languages/Python | |
8 | Source0: http://pypi.python.org/packages/source/t/termcolor/termcolor-%{version}.tar.gz | |
33ab89e7 | 9 | # Source0-md5: 043e89644f8909d462fbbfa511c768df |
1deeb97b | 10 | URL: http://pypi.python.org/pypi/termcolor |
c3ddf216 | 11 | BuildRequires: python-distribute |
1deeb97b | 12 | BuildRequires: rpm-pythonprov |
13 | BuildRequires: rpmbuild(macros) >= 1.219 | |
14 | Requires: python-modules | |
15 | BuildArch: noarch | |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
18 | %description | |
19 | ANSII Color formatting for output in terminal. | |
20 | ||
21 | %prep | |
22 | %setup -q -n %{module}-%{version} | |
23 | ||
24 | %build | |
25 | %{__python} setup.py build | |
26 | ||
27 | %install | |
28 | rm -rf $RPM_BUILD_ROOT | |
29 | %{__python} setup.py install \ | |
30 | --optimize=2 \ | |
31 | --root=$RPM_BUILD_ROOT | |
32 | ||
33 | %py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir} | |
34 | %py_comp $RPM_BUILD_ROOT%{py_sitescriptdir} | |
35 | %py_postclean | |
36 | ||
37 | %clean | |
38 | rm -rf $RPM_BUILD_ROOT | |
39 | ||
40 | %files | |
41 | %defattr(644,root,root,755) | |
33ab89e7 | 42 | %doc CHANGES.rst README.rst |
1deeb97b | 43 | %{py_sitescriptdir}/*.py[co] |
44 | %if "%{py_ver}" > "2.4" | |
45 | %{py_sitescriptdir}/termcolor-*.egg-info | |
46 | %endif |