Blob Blame Raw
%global modname fabulous
Name:             python-fabulous
Version:          0.3.0
Release:          6%{?dist}
Summary:          Makes your terminal output totally fabulous
License:          MIT
URL:              https://pypi.io/project/%{modname}
Source0:          https://pypi.io/packages/source/f/%{modname}/%{modname}-%{version}.tar.gz
Patch0:           python-fabulous-unbundle-fonts.patch
Patch1:           python-fabulous-unbundle-grapefruit.patch
BuildArch:        noarch
BuildRequires:    dos2unix
BuildRequires:    gcc
BuildRequires:    make
%description
fabulous is a python module for producing fabulously colored terminal output.
Run the demo to see what's available::
    $ python -m fabulous.demo
%package -n python2-%{modname}
Summary:          Makes your terminal output totally fabulous
%{?python_provide:%python_provide python2-%{modname}}
BuildRequires:    python2-devel
BuildRequires:    python2-setuptools
Requires:         python2-imaging
Requires:         python2-grapefruit
Requires:         liberation-sans-fonts
%description -n python2-%{modname}
fabulous is a python module for producing fabulously colored terminal output.
Run the demo to see what's available::
    $ python -m fabulous.demo
%package -n python3-%{modname}
Summary:          Makes your terminal output totally fabulous
%{?python_provide:%python_provide python3-%{modname}}
BuildRequires:    python3-devel
BuildRequires:    python3-setuptools
Requires:         python3-imaging
Requires:         python3-grapefruit
Requires:         liberation-sans-fonts
%description -n python3-%{modname}
fabulous is a python module for producing fabulously colored terminal output.
Run the demo to see what's available::
    $ python3 -m fabulous.demo
%prep
%setup -q -n %{modname}-%{version}
%patch0 -p1
%patch1 -p1
%{__rm} -f fabulous/fonts/*
%{__rm} fabulous/_xterm256.c
%{__rm} fabulous/grapefruit.py
dos2unix README.rst
%build
%py2_build
%py3_build
%install
%py2_install
%py3_install
%files -n python2-%{modname}
%doc README.rst CONTRIBUTORS AUTHORS
%license LICENSE.txt
%{python2_sitelib}/%{modname}/
%{python2_sitelib}/%{modname}-%{version}-*
%files -n python3-%{modname}
%doc README.rst CONTRIBUTORS AUTHORS
%license LICENSE.txt
%{python3_sitelib}/%{modname}/
%{python3_sitelib}/%{modname}-%{version}-*
%{_bindir}/fabulous-demo
%{_bindir}/fabulous-gotham
%{_bindir}/fabulous-image
%{_bindir}/fabulous-rotatingcube
%{_bindir}/fabulous-text
%changelog
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Tue Jun 19 2018 Miro HronĨok <mhroncok@redhat.com> - 0.3.0-5
- Rebuilt for Python 3.7
* Mon Feb 12 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.3.0-4
- Update Python 2 dependency declarations to new packaging standards
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Fri May 26 2017 Charalampos Stratakis <cstratak@redhat.com> - 0.3.0-1
- Update to 0.3.0
- Provide a Python 3 subpackage
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.1-2
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
* Fri Jul 08 2016 Ralph Bean <rbean@redhat.com> - 0.2.1-1
- new version
* Thu Jul 07 2016 Ralph Bean <rbean@redhat.com> - 0.2.0-2
- Put balls.png in the right place.
  https://github.com/jart/fabulous/pull/10
* Tue Jul 05 2016 Ralph Bean <rbean@redhat.com> - 0.2.0-1
- new version
- Modernize python macros.
- Make explicit python2 subpackage.
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.5-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.5-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.5-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Tue Jan 14 2014 Ralph Bean <rbean@redhat.com> - 0.1.5-9
- Rebuilt for epel7
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.5-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.5-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Wed Jan 16 2013 Ralph Bean <rbean@redhat.com> - 0.1.5-6
- Removed unnecssary defattr
- More specific directory ownership in files section
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.5-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Sun Apr 22 2012 Ralph Bean <rbean@redhat.com> - 0.1.5-4
- Built and included sphinx docs
* Sun Apr 22 2012 Ralph Bean <rbean@redhat.com> - 0.1.5-3
- Fresh .tar.gz from upstream.
- Run dos2unix on README.
- Remove _xterm256.c
* Sun Apr 22 2012 Ralph Bean <rbean@redhat.com> - 0.1.5-2
- Included README and COPYING in the doc macro
- Began using modname and version for upstream Source0 URL
- Patched out the bundled fonts.
* Thu Apr 05 2012 Ralph Bean <rbean@redhat.com> - 0.1.5-1
- initial package for Fedora