# Created by pyp2rpm-0.5.0
%global pypi_name xtermcolor
Name: python-%{pypi_name}
Version: 1.0.3
Release: 3%{?dist}
Summary: Python module for colorizing output with xterm 256 color support
License: MIT
URL: http://pypi.python.org/pypi/xtermcolor/1.0.3
Source0: http://pypi.python.org/packages/source/x/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
# I already asked upstream to put LICENSE in the source archive:
# https://github.com/broadinstitute/xtermcolor/issues/1
Source1: https://raw.github.com/broadinstitute/xtermcolor/master/LICENSE
BuildArch: noarch
BuildRequires: python2-devel
BuildRequires: python-setuptools
%description
Python module for colorizing output with xterm 256 color support.
%prep
%setup -q -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info
cp %{SOURCE1} .
%build
%{__python} setup.py build
%install
%{__python} setup.py install --skip-build --root %{buildroot}
%files
%doc LICENSE README
%{_bindir}/xtermcolor
%{python_sitelib}/%{pypi_name}
# exclude file used for generation of setup.py
%exclude %{python_sitelib}/%{pypi_name}/distribute_setup.py*
%{python_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
%changelog
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Thu May 31 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1.0.3-1
- Initial package.