70a847
%global upstream_name blessings
70a847
70a847
70a847
Name:           python-%{upstream_name}
273476
Version:        1.7
b473dc
Release:        7%{?dist}
70a847
Summary:        Python library for terminal coloring, styling, and positioning
70a847
License:        MIT
70a847
URL:            https://github.com/erikrose/blessings
273476
Source0:        https://files.pythonhosted.org/packages/source/b/%{upstream_name}/%{upstream_name}-%{version}.tar.gz
70a847
# https://github.com/erikrose/blessings/issues/25
273476
Patch1:         0001-fix-tests-when-run-without-a-tty-fixes-25.patch
273476
Patch2:         0002-more-fixes-for-tests-without-a-tty.patch
70a847
BuildArch:      noarch
70a847
70a847
%description
70a847
Blessings is a thin, practical wrapper around terminal coloring, styling, and 
70a847
positioning in Python.
70a847
70a847
%package -n python3-%{upstream_name}
49d97f
Summary:        Python 3 library for terminal coloring, styling, and positioning
cf962b
%{?python_provide:%python_provide python3-%{upstream_name}}
49d97f
BuildRequires:  python3-devel
49d97f
BuildRequires:  python3-setuptools
49d97f
BuildRequires:  python3-nose
9392f2
BuildRequires:  python3-six
9392f2
Requires:       python3-six
70a847
70a847
%description -n python3-%{upstream_name}
70a847
Blessings is a thin, practical wrapper around terminal coloring, styling, and 
70a847
positioning in Python.
70a847
70a847
%prep
70a847
%setup -q -n %{upstream_name}-%{version}
273476
%patch1 -p1
273476
%patch2 -p1
70a847
rm -rf blessings.egg-info
70a847
70a847
%build
273476
%py3_build
70a847
70a847
%install
273476
%py3_install
70a847
70a847
%check
273476
nosetests-3 build/lib
70a847
70a847
%files -n python3-%{upstream_name}
49d97f
%doc README.rst
49d97f
%license LICENSE
70a847
%{python3_sitelib}/blessings
70a847
%{python3_sitelib}/blessings*.egg-info
70a847
70a847
%changelog
b473dc
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.7-7
b473dc
- Rebuilt for Python 3.8
b473dc
19a94a
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.7-6
19a94a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
19a94a
8ed26f
* Thu May 09 2019 Miro Hrončok <mhroncok@redhat.com> - 1.7-5
8ed26f
- Subpackage python2-blessings has been removed
8ed26f
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
8ed26f
7fbd52
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.7-4
7fbd52
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
7fbd52
d9a549
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.7-3
d9a549
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
d9a549
9c7cc7
* Mon Jul 02 2018 Miro Hrončok <mhroncok@redhat.com> - 1.7-2
9c7cc7
- Rebuilt for Python 3.7
9c7cc7
273476
* Tue Jun 26 2018 Dan Callaghan <dcallagh@redhat.com> - 1.7-1
273476
- Upstream release 1.7 (RHBZ#1594040)
273476
ce980e
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.5-16
ce980e
- Rebuilt for Python 3.7
ce980e
8d050e
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-15
8d050e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
8d050e
dc7d0b
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-14
dc7d0b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
dc7d0b
cf962b
* Fri Jun 23 2017 Dan Callaghan <dcallagh@redhat.com> - 1.5-13
cf962b
- forgot to add %%python_provide macro
cf962b
49d97f
* Fri Jun 23 2017 Dan Callaghan <dcallagh@redhat.com> - 1.5-12
49d97f
- renamed python-blessings to python2-blessings
49d97f
4ca265
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-11
4ca265
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
4ca265
4cc55e
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.5-10
4cc55e
- Rebuild for Python 3.6
4cc55e
d23595
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-9
d23595
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
d23595
a23c81
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-8
a23c81
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
a23c81
43647f
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-7
43647f
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
43647f
46a445
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-6
46a445
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
46a445
8bce4b
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-5
8bce4b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
8bce4b
8029c6
* Wed May 14 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 1.5-4
8029c6
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
8029c6
f7087a
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-3
f7087a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
f7087a
858964
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-2
858964
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
858964
70a847
* Fri Nov 30 2012 Dan Callaghan <dcallagh@redhat.com> - 1.5-1
70a847
- initial version