Update the spec after retirement (remove python2)
This commit is contained in:
parent
26ea3934c0
commit
066b437654
@ -1,11 +1,11 @@
|
||||
Name: python-urwid
|
||||
Version: 2.0.1
|
||||
Release: 5%{?dist}
|
||||
Release: 6%{?dist}
|
||||
Summary: Console user interface library
|
||||
|
||||
License: LGPLv2+
|
||||
URL: http://excess.org/urwid/
|
||||
Source0: https://pypi.python.org/packages/source/u/urwid/urwid-%{version}.tar.gz
|
||||
Source0: %{pypi_source urwid}
|
||||
|
||||
%global _description\
|
||||
Urwid is a Python library for making text console applications. It has\
|
||||
@ -17,27 +17,14 @@ control.
|
||||
|
||||
%description %_description
|
||||
|
||||
%package -n python2-urwid
|
||||
Summary: %summary
|
||||
%{?python_provide:%python_provide python2-urwid}
|
||||
BuildRequires: gcc
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: python2-setuptools
|
||||
BuildRequires: python2-twisted
|
||||
BuildRequires: pygobject2
|
||||
BuildRequires: python2-test
|
||||
# needed by selftest suite for test.support
|
||||
|
||||
%description -n python2-urwid %_description
|
||||
|
||||
%package -n python3-urwid
|
||||
Summary: %summary
|
||||
%{?python_provide:%python_provide python3-urwid}
|
||||
BuildRequires: gcc
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: python3-test
|
||||
# needed by selftest suite for test.support
|
||||
BuildRequires: /usr/bin/2to3
|
||||
BuildRequires: python3-test
|
||||
|
||||
%description -n python3-urwid %_description
|
||||
|
||||
@ -46,45 +33,27 @@ BuildRequires: /usr/bin/2to3
|
||||
find urwid -type f -name "*.py" -exec sed -i -e '/^#!\//, 1d' {} \;
|
||||
find urwid -type f -name "*.py" -exec chmod 644 {} \;
|
||||
|
||||
rm -rf %{py3dir}
|
||||
cp -a . %{py3dir}
|
||||
|
||||
%build
|
||||
%py2_build
|
||||
|
||||
pushd %{py3dir}
|
||||
%py3_build
|
||||
popd
|
||||
|
||||
find examples -type f -exec chmod 0644 \{\} \;
|
||||
|
||||
%check
|
||||
PYTHON=%{__python2} %{__python2} setup.py test
|
||||
|
||||
pushd %{py3dir}
|
||||
PYTHON=%{__python3} %{__python3} setup.py test
|
||||
popd
|
||||
|
||||
%install
|
||||
%py2_install
|
||||
|
||||
pushd %{py3dir}
|
||||
%py3_install
|
||||
popd
|
||||
|
||||
%files -n python2-urwid
|
||||
%license COPYING
|
||||
%doc README.rst examples docs
|
||||
%{python2_sitearch}/urwid
|
||||
%{python2_sitearch}/urwid-%{version}*.egg-info
|
||||
|
||||
%files -n python3-urwid
|
||||
%license COPYING
|
||||
%doc README.rst examples docs
|
||||
%{python3_sitearch}/urwid
|
||||
%{python3_sitearch}/urwid-%{version}*.egg-info
|
||||
%{python3_sitearch}/urwid/
|
||||
%{python3_sitearch}/urwid-%{version}*.egg-info/
|
||||
|
||||
%changelog
|
||||
* 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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user