|
|
70a8475 |
%global upstream_name blessings
|
|
|
70a8475 |
|
|
|
2734763 |
%if 0%{?fedora} || 0%{?rhel} > 7
|
|
|
70a8475 |
%bcond_without python3
|
|
|
70a8475 |
%else
|
|
|
70a8475 |
%bcond_with python3
|
|
|
70a8475 |
%endif
|
|
|
70a8475 |
|
|
|
70a8475 |
Name: python-%{upstream_name}
|
|
|
2734763 |
Version: 1.7
|
|
|
9c7cc79 |
Release: 2%{?dist}
|
|
|
70a8475 |
Summary: Python library for terminal coloring, styling, and positioning
|
|
|
70a8475 |
License: MIT
|
|
|
70a8475 |
URL: https://github.com/erikrose/blessings
|
|
|
2734763 |
Source0: https://files.pythonhosted.org/packages/source/b/%{upstream_name}/%{upstream_name}-%{version}.tar.gz
|
|
|
70a8475 |
# https://github.com/erikrose/blessings/issues/25
|
|
|
2734763 |
Patch1: 0001-fix-tests-when-run-without-a-tty-fixes-25.patch
|
|
|
2734763 |
Patch2: 0002-more-fixes-for-tests-without-a-tty.patch
|
|
|
70a8475 |
BuildArch: noarch
|
|
|
70a8475 |
|
|
|
70a8475 |
%description
|
|
|
70a8475 |
Blessings is a thin, practical wrapper around terminal coloring, styling, and
|
|
|
70a8475 |
positioning in Python.
|
|
|
70a8475 |
|
|
|
49d97fd |
%package -n python2-%{upstream_name}
|
|
|
49d97fd |
Summary: Python 2 library for terminal coloring, styling, and positioning
|
|
|
cf962bd |
%{?python_provide:%python_provide python2-%{upstream_name}}
|
|
|
49d97fd |
BuildRequires: python2-devel
|
|
|
49d97fd |
BuildRequires: python2-setuptools
|
|
|
49d97fd |
BuildRequires: python2-nose
|
|
|
9392f20 |
BuildRequires: python2-six
|
|
|
9392f20 |
Requires: python2-six
|
|
|
49d97fd |
|
|
|
49d97fd |
%description -n python2-%{upstream_name}
|
|
|
49d97fd |
Blessings is a thin, practical wrapper around terminal coloring, styling, and
|
|
|
49d97fd |
positioning in Python.
|
|
|
49d97fd |
|
|
|
70a8475 |
%if %{with python3}
|
|
|
70a8475 |
%package -n python3-%{upstream_name}
|
|
|
49d97fd |
Summary: Python 3 library for terminal coloring, styling, and positioning
|
|
|
cf962bd |
%{?python_provide:%python_provide python3-%{upstream_name}}
|
|
|
49d97fd |
BuildRequires: python3-devel
|
|
|
49d97fd |
BuildRequires: python3-setuptools
|
|
|
49d97fd |
BuildRequires: python3-nose
|
|
|
9392f20 |
BuildRequires: python3-six
|
|
|
9392f20 |
Requires: python3-six
|
|
|
70a8475 |
|
|
|
70a8475 |
%description -n python3-%{upstream_name}
|
|
|
70a8475 |
Blessings is a thin, practical wrapper around terminal coloring, styling, and
|
|
|
70a8475 |
positioning in Python.
|
|
|
70a8475 |
%endif
|
|
|
70a8475 |
|
|
|
70a8475 |
%prep
|
|
|
70a8475 |
%setup -q -n %{upstream_name}-%{version}
|
|
|
2734763 |
%patch1 -p1
|
|
|
2734763 |
%patch2 -p1
|
|
|
70a8475 |
rm -rf blessings.egg-info
|
|
|
70a8475 |
|
|
|
70a8475 |
%build
|
|
|
2734763 |
%py2_build
|
|
|
70a8475 |
%if %{with python3}
|
|
|
2734763 |
%py3_build
|
|
|
70a8475 |
%endif
|
|
|
70a8475 |
|
|
|
70a8475 |
%install
|
|
|
2734763 |
%py2_install
|
|
|
70a8475 |
%if %{with python3}
|
|
|
2734763 |
%py3_install
|
|
|
70a8475 |
%endif
|
|
|
70a8475 |
|
|
|
70a8475 |
%check
|
|
|
2734763 |
nosetests-2 build/lib
|
|
|
70a8475 |
%if %{with python3}
|
|
|
2734763 |
nosetests-3 build/lib
|
|
|
70a8475 |
%endif
|
|
|
70a8475 |
|
|
|
49d97fd |
%files -n python2-%{upstream_name}
|
|
|
49d97fd |
%doc README.rst
|
|
|
49d97fd |
%license LICENSE
|
|
|
49d97fd |
%{python2_sitelib}/blessings
|
|
|
49d97fd |
%{python2_sitelib}/blessings*.egg-info
|
|
|
70a8475 |
|
|
|
70a8475 |
%if %{with python3}
|
|
|
70a8475 |
%files -n python3-%{upstream_name}
|
|
|
49d97fd |
%doc README.rst
|
|
|
49d97fd |
%license LICENSE
|
|
|
70a8475 |
%{python3_sitelib}/blessings
|
|
|
70a8475 |
%{python3_sitelib}/blessings*.egg-info
|
|
|
70a8475 |
%endif
|
|
|
70a8475 |
|
|
|
70a8475 |
%changelog
|
|
|
9c7cc79 |
* Mon Jul 02 2018 Miro Hrončok <mhroncok@redhat.com> - 1.7-2
|
|
|
9c7cc79 |
- Rebuilt for Python 3.7
|
|
|
9c7cc79 |
|
|
|
2734763 |
* Tue Jun 26 2018 Dan Callaghan <dcallagh@redhat.com> - 1.7-1
|
|
|
2734763 |
- Upstream release 1.7 (RHBZ#1594040)
|
|
|
2734763 |
|
|
|
ce980e6 |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.5-16
|
|
|
ce980e6 |
- Rebuilt for Python 3.7
|
|
|
ce980e6 |
|
|
|
8d050ec |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-15
|
|
|
8d050ec |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
8d050ec |
|
|
|
dc7d0ba |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-14
|
|
|
dc7d0ba |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
dc7d0ba |
|
|
|
cf962bd |
* Fri Jun 23 2017 Dan Callaghan <dcallagh@redhat.com> - 1.5-13
|
|
|
cf962bd |
- forgot to add %%python_provide macro
|
|
|
cf962bd |
|
|
|
49d97fd |
* Fri Jun 23 2017 Dan Callaghan <dcallagh@redhat.com> - 1.5-12
|
|
|
49d97fd |
- renamed python-blessings to python2-blessings
|
|
|
49d97fd |
|
|
|
4ca265f |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-11
|
|
|
4ca265f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
4ca265f |
|
|
|
4cc55eb |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.5-10
|
|
|
4cc55eb |
- Rebuild for Python 3.6
|
|
|
4cc55eb |
|
|
|
d23595a |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-9
|
|
|
d23595a |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
d23595a |
|
|
|
a23c812 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-8
|
|
|
a23c812 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
a23c812 |
|
|
|
43647ff |
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-7
|
|
|
43647ff |
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
43647ff |
|
|
|
46a445b |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-6
|
|
|
46a445b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
46a445b |
|
|
|
8bce4bf |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-5
|
|
|
8bce4bf |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
8bce4bf |
|
|
|
8029c64 |
* Wed May 14 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 1.5-4
|
|
|
8029c64 |
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
|
|
|
8029c64 |
|
|
|
f7087aa |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-3
|
|
|
f7087aa |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
f7087aa |
|
|
|
8589644 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-2
|
|
|
8589644 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
8589644 |
|
|
|
70a8475 |
* Fri Nov 30 2012 Dan Callaghan <dcallagh@redhat.com> - 1.5-1
|
|
|
70a8475 |
- initial version
|