|
|
70a8475 |
%global upstream_name blessings
|
|
|
70a8475 |
|
|
|
d19d09c |
%if 0%{?fedora}
|
|
|
70a8475 |
%bcond_without python3
|
|
|
70a8475 |
%else
|
|
|
70a8475 |
%bcond_with python3
|
|
|
70a8475 |
%endif
|
|
|
70a8475 |
|
|
|
70a8475 |
Name: python-%{upstream_name}
|
|
|
70a8475 |
Version: 1.5
|
|
|
4ca265f |
Release: 11%{?dist}
|
|
|
70a8475 |
Summary: Python library for terminal coloring, styling, and positioning
|
|
|
70a8475 |
License: MIT
|
|
|
70a8475 |
URL: https://github.com/erikrose/blessings
|
|
|
70a8475 |
Source0: http://pypi.python.org/packages/source/b/%{upstream_name}/%{upstream_name}-%{version}.tar.gz
|
|
|
70a8475 |
# https://github.com/erikrose/blessings/issues/25
|
|
|
70a8475 |
Patch0: blessings-1.5-tests-without-tty.patch
|
|
|
70a8475 |
BuildArch: noarch
|
|
|
70a8475 |
BuildRequires: python2-devel
|
|
|
70a8475 |
BuildRequires: python-setuptools
|
|
|
70a8475 |
BuildRequires: python-nose
|
|
|
70a8475 |
%if %{with python3}
|
|
|
70a8475 |
BuildRequires: python3-devel
|
|
|
70a8475 |
BuildRequires: python3-setuptools
|
|
|
70a8475 |
BuildRequires: python3-nose
|
|
|
70a8475 |
%endif
|
|
|
70a8475 |
|
|
|
70a8475 |
%description
|
|
|
70a8475 |
Blessings is a thin, practical wrapper around terminal coloring, styling, and
|
|
|
70a8475 |
positioning in Python.
|
|
|
70a8475 |
|
|
|
70a8475 |
%if %{with python3}
|
|
|
70a8475 |
%package -n python3-%{upstream_name}
|
|
|
70a8475 |
Summary: Python library for terminal coloring, styling, and positioning
|
|
|
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}
|
|
|
70a8475 |
%patch0 -p1
|
|
|
70a8475 |
rm -rf blessings.egg-info
|
|
|
70a8475 |
|
|
|
70a8475 |
%if %{with python3}
|
|
|
70a8475 |
rm -rf %{py3dir}
|
|
|
70a8475 |
cp -a . %{py3dir}
|
|
|
70a8475 |
%endif
|
|
|
70a8475 |
|
|
|
70a8475 |
%build
|
|
|
70a8475 |
%{__python} setup.py build
|
|
|
70a8475 |
|
|
|
70a8475 |
%if %{with python3}
|
|
|
70a8475 |
pushd %{py3dir}
|
|
|
70a8475 |
%{__python3} setup.py build
|
|
|
70a8475 |
popd
|
|
|
70a8475 |
%endif
|
|
|
70a8475 |
|
|
|
70a8475 |
%install
|
|
|
70a8475 |
%if %{with python3}
|
|
|
70a8475 |
pushd %{py3dir}
|
|
|
70a8475 |
%{__python3} setup.py install --skip-build --root %{buildroot}
|
|
|
70a8475 |
popd
|
|
|
70a8475 |
%endif
|
|
|
70a8475 |
|
|
|
70a8475 |
%{__python} setup.py install --skip-build --root %{buildroot}
|
|
|
70a8475 |
|
|
|
70a8475 |
%check
|
|
|
70a8475 |
%{__python} setup.py test
|
|
|
70a8475 |
|
|
|
70a8475 |
%if %{with python3}
|
|
|
70a8475 |
pushd %{py3dir}
|
|
|
8029c64 |
nosetests-%{python3_version} build/lib
|
|
|
70a8475 |
%endif
|
|
|
70a8475 |
|
|
|
70a8475 |
%files
|
|
|
70a8475 |
%doc README.rst LICENSE
|
|
|
70a8475 |
%{python_sitelib}/blessings
|
|
|
70a8475 |
%{python_sitelib}/blessings*.egg-info
|
|
|
70a8475 |
|
|
|
70a8475 |
%if %{with python3}
|
|
|
70a8475 |
%files -n python3-%{upstream_name}
|
|
|
70a8475 |
%doc README.rst LICENSE
|
|
|
70a8475 |
%{python3_sitelib}/blessings
|
|
|
70a8475 |
%{python3_sitelib}/blessings*.egg-info
|
|
|
70a8475 |
%endif
|
|
|
70a8475 |
|
|
|
70a8475 |
%changelog
|
|
|
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
|