File python-unicodewidth.spec of Package python-unicodewidth
%define modname UnicodeWidth
Name: python-unicodewidth
Version: 1.0
Release: 1
Summary: Python Interface for Determining Cell Widths of Unicode Characters and Strings
URL: http://mothy.org/hacks/unicodewidth/
License: Permissive
Group: Development/Libraries/Python
Source: %{modname}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-buildroot
%{py_requires}
BuildRequires: python-devel
%description
In fixed-width output devices, Latin characters all occupy a single "cell"
position of equal width, whereas ideographic CJK characters occupy two such
cells. Interoperability between terminal-line applications and (teletype-style)
character terminals using the UTF-8 encoding requires agreement on which
character should advance the cursor by how many cell positions. No established
formal standards exist at present on which Unicode character shall occupy how
many cell positions on character terminals. These routines are a first attempt
of defining such behavior based on simple rules applied to data provided by the
Unicode Consortium.
Authors:
--------
Timothy Roscoe <UnicodeWidth@mothy.org>
Markus Kuhn
%prep
%setup -q -n %{modname}-%{version}
%build
export CFLAGS="$RPM_OPT_FLAGS"
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
%clean
rm -rf %{buildroot}
%files -f INSTALLED_FILES
%defattr(-,root,root)
%doc README.txt
%changelog
* Wed Jun 18 2008 - James Oakley <jfunk@funktronics.ca> - 1.0-1
- Initial release