diff --git a/.python-urwid.metadata b/.python-urwid.metadata new file mode 100644 index 0000000..90c2c52 --- /dev/null +++ b/.python-urwid.metadata @@ -0,0 +1 @@ +4ba857895c03441a8d2810d8adc126272b5a5e03 SOURCES/urwid-1.1.1.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 0e7897f..0000000 --- a/README.md +++ /dev/null @@ -1,5 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 - -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/python-urwid.spec b/SPECS/python-urwid.spec new file mode 100644 index 0000000..575ee51 --- /dev/null +++ b/SPECS/python-urwid.spec @@ -0,0 +1,160 @@ +%if 0%{?fedora} +%global with_python3 1 +%endif + +%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5) +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} +%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} +%endif + +Name: python-urwid +Version: 1.1.1 +Release: 1%{?dist} +Summary: Console user interface library + +Group: Development/Libraries +License: LGPLv2+ +URL: http://excess.org/urwid/ +Source0: http://excess.org/urwid/urwid-%{version}.tar.gz + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -u -n) +BuildRequires: python2-devel +BuildRequires: python-setuptools-devel +BuildRequires: python-twisted-core +BuildRequires: pygobject2 +BuildRequires: python-test +# needed by selftest suite for test.support + +%if 0%{?with_python3} +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-test +# needed by selftest suite for test.support +BuildRequires: /usr/bin/2to3 +%endif # if with_python3 + +%description +Urwid is a Python library for making text console applications. It has +many features including fluid interface resizing, support for UTF-8 and +CJK encodings, standard and custom text layout modes, simple markup for +setting text attributes, and a powerful, dynamic list box that handles a +mix of widget types. It is flexible, modular, and leaves the developer in +control. + +%if 0%{?with_python3} +%package -n python3-urwid +Summary: Urwid console user interface library for Python 3 +Group: Development/Languages + +%description -n python3-urwid +Urwid is a Python library for making text console applications. It has +many features including fluid interface resizing, support for UTF-8 and +CJK encodings, standard and custom text layout modes, simple markup for +setting text attributes, and a powerful, dynamic list box that handles a +mix of widget types. It is flexible, modular, and leaves the developer in +control. + +This package contains the urwid module built for use with python3. +%endif # with_python3 + +%prep +%setup -q -n urwid-%{version} +find urwid -type f -name "*.py" -exec sed -i -e '/^#!\//, 1d' {} \; +find urwid -type f -name "*.py" -exec chmod 644 {} \; + +%if 0%{?with_python3} +rm -rf %{py3dir} +cp -a . %{py3dir} +%endif # with_python3 + +%build +CFLAGS="%{optflags}" %{__python} setup.py build + +%if 0%{?with_python3} +pushd %{py3dir} +%{__python3} setup.py build +popd +%endif # with_python3 + +%install +rm -rf %{buildroot} + +%if 0%{?with_python3} +pushd %{py3dir} +%{__python3} setup.py install --skip-build --root %{buildroot} +popd +%endif # with_python3 + +%{__python} setup.py install --skip-build --no-compile --root %{buildroot} + +%check +python setup.py test + +%if 0%{?with_python3} +pushd %{py3dir} +%{__python3} setup.py test +popd +%endif + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%doc CHANGELOG examples docs +%{python_sitearch}/urwid +%{python_sitearch}/urwid-%{version}*.egg-info + +%if 0%{?with_python3} +%files -n python3-urwid +%defattr(-,root,root,-) +%doc CHANGELOG examples docs +%{python3_sitearch}/urwid +%{python3_sitearch}/urwid-%{version}*.egg-info +%endif + +%changelog +* Wed Nov 21 2012 Fabian Deutsch - 1.1.1 -1 +- Bugfix update + +* Tue Oct 23 2012 Fabian Deutsch - 1.1.0-2 +- Add new docs and examples dir + +* Tue Oct 23 2012 Fabian Deutsch - 1.1.0-1 +- Update to upstream 1.1.0 + +* Wed Sep 26 2012 Fabian Deutsch - 1.0.2-1 +- Update to upstream 1.0.2 + +* Mon Aug 27 2012 David Malcolm - 1.0.0-7 +- add missing BRs on python-test and python3-test (for test.support) + +* Fri Aug 24 2012 David Malcolm - 1.0.0-6 +- remove rhel logic from with_python3 conditional +- remove stray references to mako + +* Sat Aug 04 2012 David Malcolm - 1.0.0-5 +- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3 + +* Sat Jul 21 2012 Fedora Release Engineering - 1.0.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Sat Jan 14 2012 Fedora Release Engineering - 1.0.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Mon Oct 24 2011 Luke Macken - 1.0.0-2 +- Add a python3-urwid subpackage (#746627) + +* Wed Oct 19 2011 Luke Macken - 1.0.0 +- Update to version 1.0.0 +- Add python-setuptools-devel to the BuildRequires +- Run the test suite using the setup.py + +* Wed Feb 09 2011 Fedora Release Engineering - 0.9.9.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Tue Jul 27 2010 David Malcolm - 0.9.9.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild + +* Wed May 19 2010 David Cantrell - 0.9.9.1-1 +- Initial package