f968e0d
%bcond_without tests
f968e0d
f968e0d
%global srcname urwid
f968e0d
f968e0d
Name:          python-%{srcname}
5b92ed0
Version:       2.1.2
7fdf1bb
Release:       5%{?dist}
26ea393
Summary:       Console user interface library
26ea393
26ea393
License:       LGPLv2+
26ea393
URL:           http://excess.org/urwid/
066b437
Source0:       %{pypi_source urwid}
26ea393
26ea393
%global _description\
26ea393
Urwid is a Python library for making text console applications.  It has\
26ea393
many features including fluid interface resizing, support for UTF-8 and\
26ea393
CJK encodings, standard and custom text layout modes, simple markup for\
26ea393
setting text attributes, and a powerful, dynamic list box that handles a\
26ea393
mix of widget types.  It is flexible, modular, and leaves the developer in\
26ea393
control.
26ea393
26ea393
%description %_description
26ea393
f968e0d
%package -n python3-%{srcname}
26ea393
Summary: %summary
26ea393
%{?python_provide:%python_provide python3-urwid}
066b437
BuildRequires: gcc
26ea393
BuildRequires: python3-devel
26ea393
BuildRequires: python3-setuptools
26ea393
# needed by selftest suite for test.support
066b437
BuildRequires: python3-test
26ea393
f968e0d
%description -n python3-%{srcname} %_description
26ea393
26ea393
%prep
f968e0d
%setup -q -n %{srcname}-%{version}
26ea393
find urwid -type f -name "*.py" -exec sed -i -e '/^#!\//, 1d' {} \;
26ea393
find urwid -type f -name "*.py" -exec chmod 644 {} \;
26ea393
26ea393
%build
26ea393
%py3_build
26ea393
26ea393
find examples -type f -exec chmod 0644 \{\} \;
26ea393
26ea393
%check
f968e0d
%if %{with tests}
03236b0
# tests are failing: https://github.com/urwid/urwid/issues/344
03236b0
PYTHON=%{__python3} %{__python3} setup.py test || :
03236b0
%endif
26ea393
26ea393
%install
26ea393
%py3_install
26ea393
f968e0d
%files -n python3-%{srcname}
26ea393
%license COPYING
26ea393
%doc README.rst examples docs
066b437
%{python3_sitearch}/urwid/
066b437
%{python3_sitearch}/urwid-%{version}*.egg-info/
26ea393
26ea393
%changelog
7fdf1bb
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.2-5
7fdf1bb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
7fdf1bb
4e008a2
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.2-4
4e008a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
4e008a2
4c113f9
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2.1.2-3
4c113f9
- Rebuilt for Python 3.10
4c113f9
053d80b
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.2-2
053d80b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
053d80b
5b92ed0
* Mon Nov 02 2020 Tomas Tomecek <ttomecek@redhat.com> - 2.1.2-1
5b92ed0
- New upstream release 2.1.2
5b92ed0
03b5807
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-3
03b5807
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
03b5807
232d6e9
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 2.1.0-2
232d6e9
- Rebuilt for Python 3.9
232d6e9
03236b0
* Wed Apr 01 2020 Tomas Tomecek <ttomecek@redhat.com> - 2.1.0-1
03236b0
- New upstream release 2.1.0
03236b0
7ff5476
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-10
7ff5476
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
7ff5476
73e4e2c
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.0.1-9
73e4e2c
- Rebuilt for Python 3.8.0rc1 (#1748018)
73e4e2c
d7e028b
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2.0.1-8
d7e028b
- Rebuilt for Python 3.8
d7e028b
c57095b
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-7
c57095b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
c57095b
066b437
* Wed May 22 2019 Miro Hrončok <mhroncok@redhat.com> - 2.0.1-6
066b437
- Resurrect removed python3-urwid package
066b437
26ea393
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-5
26ea393
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
26ea393
26ea393
* Fri Jul 27 2018 David Cantrell <dcantrell@redhat.com> - 2.0.1-4
26ea393
- Fix FTBFS issue in rawhide (#1605975)
26ea393
26ea393
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-3
26ea393
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
26ea393
26ea393
* Fri Jun 29 2018 Miro Hrončok <mhroncok@redhat.com> - 2.0.1-2
26ea393
- Rebuilt for Python 3.7
26ea393
26ea393
* Fri Jun 29 2018 David Cantrell <dcantrell@redhat.com> - 2.0.1-1
26ea393
- Upgrade to urwid-2.0.1
26ea393
26ea393
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.3.1-4
26ea393
- Rebuilt for Python 3.7
26ea393
26ea393
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-3
26ea393
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
26ea393
26ea393
* Wed Nov 15 2017 David Cantrell <dcantrell@redhat.com> - 1.3.1-2
26ea393
- Apply upstream fix for EINTR handling in test_vterm test case
26ea393
- Apply upstream fix for test_remove_watch_file flakiness
26ea393
- Apply upstream fix for test_vterm handling of NUL characters
26ea393
26ea393
* Sat Aug 19 2017 Petr Viktorin <pviktori@redhat.com> - 1.3.1-1
26ea393
- Update to upstream bugfix release 1.3.1
26ea393
  See http://urwid.org/changelog.html#urwid-1-3-1
26ea393
26ea393
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.3.0-11
26ea393
- Python 2 binary package renamed to python2-urwid
26ea393
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
26ea393
26ea393
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-10
26ea393
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
26ea393
26ea393
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-9
26ea393
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
26ea393
26ea393
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-8
26ea393
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
26ea393
26ea393
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.3.0-7
26ea393
- Rebuild for Python 3.6
26ea393
26ea393
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.0-6
26ea393
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
26ea393
26ea393
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-5
26ea393
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
26ea393
26ea393
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.0-4
26ea393
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
26ea393
26ea393
* Tue Nov  3 2015 Toshio Kuratomi <toshio@fedoraproject.org> - 1.3.0-3
26ea393
- Remove executable bit on docs so that they do not bring in extra rpm
26ea393
  dependencies.  This complies with packaging guidelines and fixes the
26ea393
  problem of python3-urwid requiring the python2 package.
26ea393
26ea393
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.0-2
26ea393
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
26ea393
26ea393
* Tue Nov 25 2014 David Cantrell <dcantrell@redhat.com> - 1.3.0-1
26ea393
- Upgrade to urwid-1.3.0 (#1150540)
26ea393
26ea393
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-2
26ea393
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
26ea393
26ea393
* Thu Jun 12 2014 David Cantrell <dcantrell@redhat.com> - 1.2.1-1
26ea393
- Upgrade to urwid-1.2.1 (#1047698)
26ea393
26ea393
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-5
26ea393
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
26ea393
26ea393
* Wed May 28 2014 Kalev Lember <kalevlember@gmail.com> - 1.1.1-4
26ea393
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
26ea393
26ea393
* Fri Dec 06 2013 Pierre-Yves Chibon <pingou@pingoured>fr - 1.1.1-3
26ea393
- Change BR from python-setuptools-devel to python-setuptools
26ea393
  See https://fedoraproject.org/wiki/Changes/Remove_Python-setuptools-devel
26ea393
26ea393
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-2
26ea393
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
26ea393
26ea393
* Wed Nov 21 2012 Fabian Deutsch <fabiand@fedoraproject.org> - 1.1.1 -1
26ea393
- Bugfix update
26ea393
26ea393
* Tue Oct 23 2012 Fabian Deutsch <fabiand@fedoraproject.org> - 1.1.0-2
26ea393
- Add new docs and examples dir
26ea393
26ea393
* Tue Oct 23 2012 Fabian Deutsch <fabiand@fedoraproject.org> - 1.1.0-1
26ea393
- Update to upstream 1.1.0
26ea393
26ea393
* Wed Sep 26 2012 Fabian Deutsch <fabian.deutsch@gmx.de> - 1.0.2-1
26ea393
- Update to upstream 1.0.2
26ea393
26ea393
* Mon Aug 27 2012 David Malcolm <dmalcolm@redhat.com> - 1.0.0-7
26ea393
- add missing BRs on python-test and python3-test (for test.support)
26ea393
26ea393
* Fri Aug 24 2012 David Malcolm <dmalcolm@redhat.com> - 1.0.0-6
26ea393
- remove rhel logic from with_python3 conditional
26ea393
- remove stray references to mako
26ea393
26ea393
* Sat Aug 04 2012 David Malcolm <dmalcolm@redhat.com> - 1.0.0-5
26ea393
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
26ea393
26ea393
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-4
26ea393
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
26ea393
26ea393
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-3
26ea393
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
26ea393
26ea393
* Mon Oct 24 2011 Luke Macken <lmacken@redhat.com> - 1.0.0-2
26ea393
- Add a python3-urwid subpackage (#746627)
26ea393
26ea393
* Wed Oct 19 2011 Luke Macken <lmacken@redhat.com> - 1.0.0
26ea393
- Update to version 1.0.0
26ea393
- Add python-setuptools-devel to the BuildRequires
26ea393
- Run the test suite using the setup.py
26ea393
26ea393
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.9.1-3
26ea393
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
26ea393
26ea393
* Tue Jul 27 2010 David Malcolm <dmalcolm@redhat.com> - 0.9.9.1-2
26ea393
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
26ea393
26ea393
* Wed May 19 2010 David Cantrell <dcantrell@redhat.com> - 0.9.9.1-1
26ea393
- Initial package