|
|
@ -1,20 +1,15 @@
|
|
|
|
Name: python-urwid
|
|
|
|
%bcond_without tests
|
|
|
|
Version: 1.3.1
|
|
|
|
|
|
|
|
|
|
|
|
%global srcname urwid
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-%{srcname}
|
|
|
|
|
|
|
|
Version: 2.1.2
|
|
|
|
Release: 4%{?dist}
|
|
|
|
Release: 4%{?dist}
|
|
|
|
Summary: Console user interface library
|
|
|
|
Summary: Console user interface library
|
|
|
|
|
|
|
|
|
|
|
|
License: LGPLv2+
|
|
|
|
License: LGPLv2+
|
|
|
|
URL: http://excess.org/urwid/
|
|
|
|
URL: http://excess.org/urwid/
|
|
|
|
Source0: https://pypi.python.org/packages/source/u/urwid/urwid-%{version}.tar.gz
|
|
|
|
Source0: %{pypi_source urwid}
|
|
|
|
|
|
|
|
|
|
|
|
# https://github.com/urwid/urwid/pull/237/commits/f68f2cf089cfd5ec45863baf59a91d5aeb0cf5c3
|
|
|
|
|
|
|
|
Patch0: python-urwid-test_vterm-EINTR.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# https://github.com/urwid/urwid/commit/701138a380fac06023e5915448af92ba13614cb9
|
|
|
|
|
|
|
|
Patch1: python-urwid-test_vterm-NUL.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# https://github.com/urwid/urwid/commit/4b0ed8b6030450e6d99909a7c683e9642e546387
|
|
|
|
|
|
|
|
Patch2: python-urwid-test_event_loops.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%global _description\
|
|
|
|
%global _description\
|
|
|
|
Urwid is a Python library for making text console applications. It has\
|
|
|
|
Urwid is a Python library for making text console applications. It has\
|
|
|
@ -25,22 +20,20 @@ mix of widget types. It is flexible, modular, and leaves the developer in\
|
|
|
|
control.
|
|
|
|
control.
|
|
|
|
|
|
|
|
|
|
|
|
%description %_description
|
|
|
|
%description %_description
|
|
|
|
%package -n python3-urwid
|
|
|
|
|
|
|
|
|
|
|
|
%package -n python3-%{srcname}
|
|
|
|
Summary: %summary
|
|
|
|
Summary: %summary
|
|
|
|
%{?python_provide:%python_provide python3-urwid}
|
|
|
|
%{?python_provide:%python_provide python3-urwid}
|
|
|
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
BuildRequires: python3-test
|
|
|
|
|
|
|
|
# needed by selftest suite for test.support
|
|
|
|
# needed by selftest suite for test.support
|
|
|
|
BuildRequires: %{_bindir}/2to3
|
|
|
|
BuildRequires: python3-test
|
|
|
|
|
|
|
|
|
|
|
|
%description -n python3-urwid %_description
|
|
|
|
%description -n python3-%{srcname} %_description
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q -n urwid-%{version}
|
|
|
|
%setup -q -n %{srcname}-%{version}
|
|
|
|
%patch0 -p1
|
|
|
|
|
|
|
|
%patch1 -p1
|
|
|
|
|
|
|
|
%patch2 -p1
|
|
|
|
|
|
|
|
find urwid -type f -name "*.py" -exec sed -i -e '/^#!\//, 1d' {} \;
|
|
|
|
find urwid -type f -name "*.py" -exec sed -i -e '/^#!\//, 1d' {} \;
|
|
|
|
find urwid -type f -name "*.py" -exec chmod 644 {} \;
|
|
|
|
find urwid -type f -name "*.py" -exec chmod 644 {} \;
|
|
|
|
|
|
|
|
|
|
|
@ -49,22 +42,76 @@ find urwid -type f -name "*.py" -exec chmod 644 {} \;
|
|
|
|
|
|
|
|
|
|
|
|
find examples -type f -exec chmod 0644 \{\} \;
|
|
|
|
find examples -type f -exec chmod 0644 \{\} \;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
|
|
|
%if %{with tests}
|
|
|
|
|
|
|
|
# tests are failing: https://github.com/urwid/urwid/issues/344
|
|
|
|
|
|
|
|
PYTHON=%{__python3} %{__python3} setup.py test || :
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%py3_install
|
|
|
|
%py3_install
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%files -n python3-%{srcname}
|
|
|
|
%{__python3} setup.py test
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python3-urwid
|
|
|
|
|
|
|
|
%license COPYING
|
|
|
|
%license COPYING
|
|
|
|
%doc README.rst examples docs
|
|
|
|
%doc README.rst examples docs
|
|
|
|
%{python3_sitearch}/urwid
|
|
|
|
%{python3_sitearch}/urwid/
|
|
|
|
%{python3_sitearch}/urwid-%{version}*.egg-info
|
|
|
|
%{python3_sitearch}/urwid-%{version}*.egg-info/
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Thu May 31 2018 Petr Viktorin <pviktori@redhat.com> - 1.3.1-4
|
|
|
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 2.1.2-4
|
|
|
|
- Remove Python 2 subpackage
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
https://bugzilla.redhat.com/show_bug.cgi?id=1567166
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2.1.2-3
|
|
|
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.2-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Nov 02 2020 Tomas Tomecek <ttomecek@redhat.com> - 2.1.2-1
|
|
|
|
|
|
|
|
- New upstream release 2.1.2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 2.1.0-2
|
|
|
|
|
|
|
|
- Rebuilt for Python 3.9
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Apr 01 2020 Tomas Tomecek <ttomecek@redhat.com> - 2.1.0-1
|
|
|
|
|
|
|
|
- New upstream release 2.1.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-10
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.0.1-9
|
|
|
|
|
|
|
|
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2.0.1-8
|
|
|
|
|
|
|
|
- Rebuilt for Python 3.8
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-7
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed May 22 2019 Miro Hrončok <mhroncok@redhat.com> - 2.0.1-6
|
|
|
|
|
|
|
|
- Resurrect removed python3-urwid package
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-5
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 27 2018 David Cantrell <dcantrell@redhat.com> - 2.0.1-4
|
|
|
|
|
|
|
|
- Fix FTBFS issue in rawhide (#1605975)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jun 29 2018 Miro Hrončok <mhroncok@redhat.com> - 2.0.1-2
|
|
|
|
|
|
|
|
- Rebuilt for Python 3.7
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jun 29 2018 David Cantrell <dcantrell@redhat.com> - 2.0.1-1
|
|
|
|
|
|
|
|
- Upgrade to urwid-2.0.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.3.1-4
|
|
|
|
|
|
|
|
- Rebuilt for Python 3.7
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-3
|
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|