Group :: Development/Python3
RPM: python3-module-urwid
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%define _unpackaged_files_terminate_build 1
%define oname urwid
Name: python3-module-urwid
Version: 2.1.2
Release: alt1
Summary: Urwid is a console user interface library for Python.
License: LGPL
Group: Development/Python3
Url: http://excess.org/urwid
# Source-url: %__pypi_url %oname
Source: %name-%version.tar
BuildRequires(pre): rpm-build-intro >= 2.1.3
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-devel python3-module-setuptools
%py3_provides %oname
%description
Urwid is a console user interface library for Python. Urwid is released
under the GNU Lesser General Public License and it includes many features
useful for text console application developers:
* Fluid interface resizing (xterm window resizing / fbset on Linux console)
* Web application display mode using Apache and CGI [ Live Demo ]
* Support for UTF-8, simple 8-bit and CJK encodings
* Multiple text alignment and wrapping modes built-in
* Ability create user-defined text layout classes
* Simple markup for setting text attributes
* Powerful list box that handles scrolling between different widget types
* List box contents may be managed with a user-defined class
* Flexible edit box for editing many different types of text
* Buttons, check boxes and radio boxes
* Customizable layout for all widgets
* Easy interface for creating HTML screen shots
%package tests
Summary: Tests for %oname
Group: Development/Python3
Requires: %name = %EVR
%description tests
Urwid is a console user interface library for Python. Urwid is released
under the GNU Lesser General Public License and it includes many features
useful for text console application developers:
* Fluid interface resizing (xterm window resizing / fbset on Linux console)
* Web application display mode using Apache and CGI [ Live Demo ]
* Support for UTF-8, simple 8-bit and CJK encodings
* Multiple text alignment and wrapping modes built-in
* Ability create user-defined text layout classes
* Simple markup for setting text attributes
* Powerful list box that handles scrolling between different widget types
* List box contents may be managed with a user-defined class
* Flexible edit box for editing many different types of text
* Buttons, check boxes and radio boxes
* Customizable layout for all widgets
* Easy interface for creating HTML screen shots
This package contains tests for %oname.
%package docs
Summary: Documentation for %oname
Group: Development/Documentation
BuildArch: noarch
%description docs
Urwid is a console user interface library for Python. Urwid is released
under the GNU Lesser General Public License and it includes many features
useful for text console application developers:
* Fluid interface resizing (xterm window resizing / fbset on Linux console)
* Web application display mode using Apache and CGI [ Live Demo ]
* Support for UTF-8, simple 8-bit and CJK encodings
* Multiple text alignment and wrapping modes built-in
* Ability create user-defined text layout classes
* Simple markup for setting text attributes
* Powerful list box that handles scrolling between different widget types
* List box contents may be managed with a user-defined class
* Flexible edit box for editing many different types of text
* Buttons, check boxes and radio boxes
* Customizable layout for all widgets
* Easy interface for creating HTML screen shots
This package contains documentation for %oname.
%prep
%setup
#%prepare_sphinx .
#ln -s ../objects.inv docs/
%build
%add_optflags -fno-strict-aliasing
%python3_build_debug
%install
%python3_install
#export PYTHONPATH=%buildroot%python_sitelibdir
#pushd docs
#sphinx-build -b pickle -d build/doctrees . build/pickle
#sphinx-build -b html -d build/doctrees . build/html
#popd
#cp -fR docs/build/pickle %buildroot%python_sitelibdir/%oname/
#%files docs
#%doc docs/examples docs/tutorial docs/build/html
%files
%doc *.rst examples
%python3_sitelibdir/*
%exclude %python3_sitelibdir/%oname/tests
%files tests
%python3_sitelibdir/%oname/tests
%changelog
…
Todas as alterações você pod ver aqui
%define oname urwid
Name: python3-module-urwid
Version: 2.1.2
Release: alt1
Summary: Urwid is a console user interface library for Python.
License: LGPL
Group: Development/Python3
Url: http://excess.org/urwid
# Source-url: %__pypi_url %oname
Source: %name-%version.tar
BuildRequires(pre): rpm-build-intro >= 2.1.3
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-devel python3-module-setuptools
%py3_provides %oname
%description
Urwid is a console user interface library for Python. Urwid is released
under the GNU Lesser General Public License and it includes many features
useful for text console application developers:
* Fluid interface resizing (xterm window resizing / fbset on Linux console)
* Web application display mode using Apache and CGI [ Live Demo ]
* Support for UTF-8, simple 8-bit and CJK encodings
* Multiple text alignment and wrapping modes built-in
* Ability create user-defined text layout classes
* Simple markup for setting text attributes
* Powerful list box that handles scrolling between different widget types
* List box contents may be managed with a user-defined class
* Flexible edit box for editing many different types of text
* Buttons, check boxes and radio boxes
* Customizable layout for all widgets
* Easy interface for creating HTML screen shots
%package tests
Summary: Tests for %oname
Group: Development/Python3
Requires: %name = %EVR
%description tests
Urwid is a console user interface library for Python. Urwid is released
under the GNU Lesser General Public License and it includes many features
useful for text console application developers:
* Fluid interface resizing (xterm window resizing / fbset on Linux console)
* Web application display mode using Apache and CGI [ Live Demo ]
* Support for UTF-8, simple 8-bit and CJK encodings
* Multiple text alignment and wrapping modes built-in
* Ability create user-defined text layout classes
* Simple markup for setting text attributes
* Powerful list box that handles scrolling between different widget types
* List box contents may be managed with a user-defined class
* Flexible edit box for editing many different types of text
* Buttons, check boxes and radio boxes
* Customizable layout for all widgets
* Easy interface for creating HTML screen shots
This package contains tests for %oname.
%package docs
Summary: Documentation for %oname
Group: Development/Documentation
BuildArch: noarch
%description docs
Urwid is a console user interface library for Python. Urwid is released
under the GNU Lesser General Public License and it includes many features
useful for text console application developers:
* Fluid interface resizing (xterm window resizing / fbset on Linux console)
* Web application display mode using Apache and CGI [ Live Demo ]
* Support for UTF-8, simple 8-bit and CJK encodings
* Multiple text alignment and wrapping modes built-in
* Ability create user-defined text layout classes
* Simple markup for setting text attributes
* Powerful list box that handles scrolling between different widget types
* List box contents may be managed with a user-defined class
* Flexible edit box for editing many different types of text
* Buttons, check boxes and radio boxes
* Customizable layout for all widgets
* Easy interface for creating HTML screen shots
This package contains documentation for %oname.
%prep
%setup
#%prepare_sphinx .
#ln -s ../objects.inv docs/
%build
%add_optflags -fno-strict-aliasing
%python3_build_debug
%install
%python3_install
#export PYTHONPATH=%buildroot%python_sitelibdir
#pushd docs
#sphinx-build -b pickle -d build/doctrees . build/pickle
#sphinx-build -b html -d build/doctrees . build/html
#popd
#cp -fR docs/build/pickle %buildroot%python_sitelibdir/%oname/
#%files docs
#%doc docs/examples docs/tutorial docs/build/html
%files
%doc *.rst examples
%python3_sitelibdir/*
%exclude %python3_sitelibdir/%oname/tests
%files tests
%python3_sitelibdir/%oname/tests
%changelog
…
Todas as alterações você pod ver aqui