c3233ab
Name:          python-urwid
6831b58
Version:       1.3.1
6831b58
Release:       1%{?dist}
c3233ab
Summary:       Console user interface library
c3233ab
c3233ab
License:       LGPLv2+
c3233ab
URL:           http://excess.org/urwid/
6831b58
Source0:       https://pypi.python.org/packages/source/u/urwid/urwid-%{version}.tar.gz
c3233ab
a1c6ff7
# Some tests are failing under Python 2.
a1c6ff7
# This is fixed in Python 3, see:
a1c6ff7
# https://docs.python.org/3/whatsnew/3.5.html#pep-475-retry-system-calls-failing-with-eintr
a1c6ff7
Patch0:        py2-skip-tests-interrupted-syscall.patch
a1c6ff7
a1c6ff7
c3233ab
BuildRequires: python2-devel
567c4cb
BuildRequires: python2-setuptools
567c4cb
BuildRequires: python2-twisted
c3233ab
BuildRequires: pygobject2
567c4cb
BuildRequires: python2-test
d694795
# needed by selftest suite for test.support
c3233ab
Luke Macken a698a7a
BuildRequires: python3-devel
Luke Macken a698a7a
BuildRequires: python3-setuptools
d694795
BuildRequires: python3-test
d694795
# needed by selftest suite for test.support
Luke Macken a698a7a
BuildRequires: /usr/bin/2to3
Luke Macken a698a7a
69db2a9
%global _description\
69db2a9
Urwid is a Python library for making text console applications.  It has\
69db2a9
many features including fluid interface resizing, support for UTF-8 and\
69db2a9
CJK encodings, standard and custom text layout modes, simple markup for\
69db2a9
setting text attributes, and a powerful, dynamic list box that handles a\
69db2a9
mix of widget types.  It is flexible, modular, and leaves the developer in\
Luke Macken a698a7a
control.
Luke Macken a698a7a
69db2a9
%description %_description
69db2a9
69db2a9
%package -n python2-urwid
69db2a9
Summary: %summary
69db2a9
%{?python_provide:%python_provide python2-urwid}
69db2a9
69db2a9
%description -n python2-urwid %_description
69db2a9
Luke Macken a698a7a
%package -n python3-urwid
Luke Macken a698a7a
Summary: Urwid console user interface library for Python 3
Luke Macken a698a7a
Luke Macken a698a7a
%description -n python3-urwid
Luke Macken a698a7a
Urwid is a Python library for making text console applications.  It has
Luke Macken a698a7a
many features including fluid interface resizing, support for UTF-8 and
Luke Macken a698a7a
CJK encodings, standard and custom text layout modes, simple markup for
Luke Macken a698a7a
setting text attributes, and a powerful, dynamic list box that handles a
Luke Macken a698a7a
mix of widget types.  It is flexible, modular, and leaves the developer in
Luke Macken a698a7a
control.
Luke Macken a698a7a
494366c
This package contains the urwid module built for use with python3.
c3233ab
c3233ab
%prep
c3233ab
%setup -q -n urwid-%{version}
a1c6ff7
%patch0 -p1
c3233ab
find urwid -type f -name "*.py" -exec sed -i -e '/^#!\//, 1d' {} \;
c3233ab
find urwid -type f -name "*.py" -exec chmod 644 {} \;
c3233ab
Luke Macken a698a7a
rm -rf %{py3dir}
Luke Macken a698a7a
cp -a . %{py3dir}
Luke Macken a698a7a
c3233ab
%build
567c4cb
%py2_build
c3233ab
Luke Macken a698a7a
pushd %{py3dir}
567c4cb
%py3_build
Luke Macken a698a7a
popd
c3233ab
f4eb51a
find examples -type f -exec chmod 0644 \{\} \;
f4eb51a
c3233ab
%install
c3233ab
rm -rf %{buildroot}
Luke Macken a698a7a
Luke Macken a698a7a
pushd %{py3dir}
567c4cb
%py3_install
Luke Macken a698a7a
popd
Luke Macken a698a7a
567c4cb
%py2_install
c3233ab
Luke Macken a698a7a
%check
567c4cb
%{__python2} setup.py test
Luke Macken a698a7a
Luke Macken a698a7a
pushd %{py3dir}
Luke Macken a698a7a
%{__python3} setup.py test
Luke Macken a698a7a
popd
Luke Macken a698a7a
c3233ab
%clean
c3233ab
rm -rf %{buildroot}
c3233ab
69db2a9
%files -n python2-urwid
c3233ab
%defattr(-,root,root,-)
3ca58e6
%doc COPYING README.rst examples docs
c3233ab
%{python_sitearch}/urwid
c3233ab
%{python_sitearch}/urwid-%{version}*.egg-info
c3233ab
Luke Macken a698a7a
%files -n python3-urwid
Luke Macken a698a7a
%defattr(-,root,root,-)
3ca58e6
%doc COPYING README.rst examples docs
Luke Macken a698a7a
%{python3_sitearch}/urwid
Luke Macken a698a7a
%{python3_sitearch}/urwid-%{version}*.egg-info
Luke Macken a698a7a
c3233ab
%changelog
6831b58
* Sat Aug 19 2017 Petr Viktorin <pviktori@redhat.com> - 1.3.1-1
6831b58
- Update to upstream bugfix release 1.3.1
6831b58
  See http://urwid.org/changelog.html#urwid-1-3-1
6831b58
69db2a9
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.3.0-11
69db2a9
- Python 2 binary package renamed to python2-urwid
69db2a9
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
69db2a9
f8ddc47
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-10
f8ddc47
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
f8ddc47
bca1693
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-9
bca1693
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
bca1693
82b30e9
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-8
82b30e9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
82b30e9
515a239
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.3.0-7
515a239
- Rebuild for Python 3.6
515a239
35251ac
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.0-6
35251ac
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
35251ac
9b9eff7
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-5
9b9eff7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
9b9eff7
3272caa
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.0-4
3272caa
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
3272caa
f4eb51a
* Tue Nov  3 2015 Toshio Kuratomi <toshio@fedoraproject.org> - 1.3.0-3
f4eb51a
- Remove executable bit on docs so that they do not bring in extra rpm
f4eb51a
  dependencies.  This complies with packaging guidelines and fixes the
f4eb51a
  problem of python3-urwid requiring the python2 package.
f4eb51a
d7dcb09
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.0-2
d7dcb09
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
d7dcb09
e563510
* Tue Nov 25 2014 David Cantrell <dcantrell@redhat.com> - 1.3.0-1
e563510
- Upgrade to urwid-1.3.0 (#1150540)
e563510
1dfc36c
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-2
1dfc36c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
1dfc36c
075183c
* Thu Jun 12 2014 David Cantrell <dcantrell@redhat.com> - 1.2.1-1
075183c
- Upgrade to urwid-1.2.1 (#1047698)
075183c
2224c8f
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-5
2224c8f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2224c8f
f8f0247
* Wed May 28 2014 Kalev Lember <kalevlember@gmail.com> - 1.1.1-4
f8f0247
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
f8f0247
e8a0f06
* Fri Dec 06 2013 Pierre-Yves Chibon <pingou@pingoured>fr - 1.1.1-3
e8a0f06
- Change BR from python-setuptools-devel to python-setuptools
e8a0f06
  See https://fedoraproject.org/wiki/Changes/Remove_Python-setuptools-devel
e8a0f06
a43fa25
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-2
a43fa25
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
a43fa25
db17307
* Wed Nov 21 2012 Fabian Deutsch <fabiand@fedoraproject.org> - 1.1.1 -1
db17307
- Bugfix update
db17307
2706bcb
* Tue Oct 23 2012 Fabian Deutsch <fabiand@fedoraproject.org> - 1.1.0-2
2706bcb
- Add new docs and examples dir
2706bcb
77aaf9a
* Tue Oct 23 2012 Fabian Deutsch <fabiand@fedoraproject.org> - 1.1.0-1
77aaf9a
- Update to upstream 1.1.0
77aaf9a
5a49299
* Wed Sep 26 2012 Fabian Deutsch <fabian.deutsch@gmx.de> - 1.0.2-1
b5c09d7
- Update to upstream 1.0.2
b5c09d7
d694795
* Mon Aug 27 2012 David Malcolm <dmalcolm@redhat.com> - 1.0.0-7
d694795
- add missing BRs on python-test and python3-test (for test.support)
d694795
494366c
* Fri Aug 24 2012 David Malcolm <dmalcolm@redhat.com> - 1.0.0-6
494366c
- remove rhel logic from with_python3 conditional
494366c
- remove stray references to mako
494366c
7a574c5
* Sat Aug 04 2012 David Malcolm <dmalcolm@redhat.com> - 1.0.0-5
7a574c5
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
7a574c5
cdf8236
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-4
cdf8236
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
cdf8236
b676add
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-3
b676add
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
b676add
Luke Macken a698a7a
* Mon Oct 24 2011 Luke Macken <lmacken@redhat.com> - 1.0.0-2
Luke Macken a698a7a
- Add a python3-urwid subpackage (#746627)
Luke Macken a698a7a
Luke Macken 4e487e5
* Wed Oct 19 2011 Luke Macken <lmacken@redhat.com> - 1.0.0
Luke Macken 4e487e5
- Update to version 1.0.0
Luke Macken 4e487e5
- Add python-setuptools-devel to the BuildRequires
Luke Macken 4e487e5
- Run the test suite using the setup.py
Luke Macken 4e487e5
b3883f0
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.9.1-3
b3883f0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
b3883f0
25c2a27
* Tue Jul 27 2010 David Malcolm <dmalcolm@redhat.com> - 0.9.9.1-2
25c2a27
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
25c2a27
c3233ab
* Wed May 19 2010 David Cantrell <dcantrell@redhat.com> - 0.9.9.1-1
c3233ab
- Initial package