5c38c5
%global modname fabulous
5c38c5
5c38c5
Name:             python-fabulous
5c38c5
Version:          0.1.5
5c38c5
Release:          4%{?dist}
5c38c5
Summary:          Makes your terminal output totally fabulous
5c38c5
5c38c5
Group:            Development/Languages
5c38c5
License:          MIT
5c38c5
URL:              http://pypi.python.org/pypi/%{modname}
5c38c5
Source0:          http://lobstertech.com/media/file/%{modname}/%{modname}-%{version}.tar.gz
5c38c5
Patch0:           0001-Unbundle-fonts.patch
5c38c5
5c38c5
BuildArch:        noarch
5c38c5
5c38c5
BuildRequires:    dos2unix
5c38c5
BuildRequires:    gcc
5c38c5
BuildRequires:    make
5c38c5
BuildRequires:    python2-devel
5c38c5
BuildRequires:    python-setuptools
5c38c5
BuildRequires:    python-sphinx
5c38c5
5c38c5
Requires:         python-imaging
5c38c5
Requires:         python-grapefruit
5c38c5
5c38c5
%description
5c38c5
fabulous is a python module for producing fabulously colored terminal output.
5c38c5
5c38c5
Run the demo to see what's available::
5c38c5
5c38c5
    $ python -m fabulous.demo
5c38c5
5c38c5
%prep
5c38c5
%setup -q -n %{modname}-%{version}
5c38c5
%patch0 -p1
5c38c5
%{__rm} -f fabulous/fonts/*
5c38c5
%{__rm} fabulous/_xterm256.c
5c38c5
dos2unix README
5c38c5
5c38c5
%build
5c38c5
%{__python} setup.py build 
5c38c5
5c38c5
PYTHONPATH=$(pwd) make -C docs html
5c38c5
%{__rm} -f docs/_build/html/.buildinfo
5c38c5
5c38c5
5c38c5
%install
5c38c5
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
5c38c5
5c38c5
5c38c5
%files
5c38c5
%defattr(-,root,root,-)
5c38c5
%doc README COPYING docs/_build/html
5c38c5
5c38c5
%{python_sitelib}/* 
5c38c5
5c38c5
%changelog
5c38c5
* Sun Apr 22 2012 Ralph Bean <rbean@redhat.com> - 0.1.5-4
5c38c5
- Built and included sphinx docs
5c38c5
5c38c5
* Sun Apr 22 2012 Ralph Bean <rbean@redhat.com> - 0.1.5-3
5c38c5
- Fresh .tar.gz from upstream.
5c38c5
- Run dos2unix on README.
5c38c5
- Remove _xterm256.c
5c38c5
5c38c5
* Sun Apr 22 2012 Ralph Bean <rbean@redhat.com> - 0.1.5-2
5c38c5
- Included README and COPYING in the doc macro
5c38c5
- Began using modname and version for upstream Source0 URL
5c38c5
- Patched out the bundled fonts.
5c38c5
5c38c5
* Thu Apr 05 2012 Ralph Bean <rbean@redhat.com> - 0.1.5-1
5c38c5
- initial package for Fedora