5c38c5f
%global modname fabulous
5c38c5f
5c38c5f
Name:             python-fabulous
5c38c5f
Version:          0.1.5
4ecae2f
Release:          10%{?dist}
5c38c5f
Summary:          Makes your terminal output totally fabulous
5c38c5f
5c38c5f
Group:            Development/Languages
5c38c5f
License:          MIT
5c38c5f
URL:              http://pypi.python.org/pypi/%{modname}
5c38c5f
Source0:          http://lobstertech.com/media/file/%{modname}/%{modname}-%{version}.tar.gz
5c38c5f
Patch0:           0001-Unbundle-fonts.patch
5c38c5f
5c38c5f
BuildArch:        noarch
5c38c5f
5c38c5f
BuildRequires:    dos2unix
5c38c5f
BuildRequires:    gcc
5c38c5f
BuildRequires:    make
5c38c5f
BuildRequires:    python2-devel
5c38c5f
BuildRequires:    python-setuptools
5c38c5f
BuildRequires:    python-sphinx
5c38c5f
5c38c5f
Requires:         python-imaging
5c38c5f
Requires:         python-grapefruit
5c38c5f
5c38c5f
%description
5c38c5f
fabulous is a python module for producing fabulously colored terminal output.
5c38c5f
5c38c5f
Run the demo to see what's available::
5c38c5f
5c38c5f
    $ python -m fabulous.demo
5c38c5f
5c38c5f
%prep
5c38c5f
%setup -q -n %{modname}-%{version}
5c38c5f
%patch0 -p1
5c38c5f
%{__rm} -f fabulous/fonts/*
5c38c5f
%{__rm} fabulous/_xterm256.c
5c38c5f
dos2unix README
5c38c5f
5c38c5f
%build
5c38c5f
%{__python} setup.py build 
5c38c5f
5c38c5f
PYTHONPATH=$(pwd) make -C docs html
5c38c5f
%{__rm} -f docs/_build/html/.buildinfo
5c38c5f
5c38c5f
5c38c5f
%install
5c38c5f
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
5c38c5f
5c38c5f
5c38c5f
%files
5c38c5f
%doc README COPYING docs/_build/html
5c38c5f
ed83d66
%{python_sitelib}/%{modname}/
ed83d66
%{python_sitelib}/%{modname}-%{version}-*
ed83d66
5c38c5f
5c38c5f
%changelog
4ecae2f
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.5-10
4ecae2f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
4ecae2f
25b4796
* Tue Jan 14 2014 Ralph Bean <rbean@redhat.com> - 0.1.5-9
25b4796
- Rebuilt for epel7
25b4796
7ecf477
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.5-8
7ecf477
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
7ecf477
1fc92a0
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.5-7
1fc92a0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
1fc92a0
ed83d66
* Wed Jan 16 2013 Ralph Bean <rbean@redhat.com> - 0.1.5-6
ed83d66
- Removed unnecssary defattr
ed83d66
- More specific directory ownership in files section
ed83d66
c4b19f8
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.5-5
c4b19f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
c4b19f8
5c38c5f
* Sun Apr 22 2012 Ralph Bean <rbean@redhat.com> - 0.1.5-4
5c38c5f
- Built and included sphinx docs
5c38c5f
5c38c5f
* Sun Apr 22 2012 Ralph Bean <rbean@redhat.com> - 0.1.5-3
5c38c5f
- Fresh .tar.gz from upstream.
5c38c5f
- Run dos2unix on README.
5c38c5f
- Remove _xterm256.c
5c38c5f
5c38c5f
* Sun Apr 22 2012 Ralph Bean <rbean@redhat.com> - 0.1.5-2
5c38c5f
- Included README and COPYING in the doc macro
5c38c5f
- Began using modname and version for upstream Source0 URL
5c38c5f
- Patched out the bundled fonts.
5c38c5f
5c38c5f
* Thu Apr 05 2012 Ralph Bean <rbean@redhat.com> - 0.1.5-1
5c38c5f
- initial package for Fedora