Blob Blame History Raw
%{!?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))")}

%global srcname ansi2html

Name:		python-ansi2html
Version:	0.9.0
Release:	1%{?dist}
Summary:	Python module that converts text with ANSI color to HTML

Group:		Development/Libraries
License:	GPLv3+
URL:		http://github.com/ralphbean/ansi2html
Source0:	http://pypi.python.org/packages/source/a/ansi2html/ansi2html-%{version}.tar.gz
BuildArch:	noarch

BuildRequires:	python
BuildRequires:  python-setuptools
BuildRequires:  python-nose
BuildRequires:  python-six

Requires:	python
Requires:   python-six

%description
The ansi2html module can convert text with ANSI color codes to HTML.

%prep
%setup -q -n %{srcname}-%{version}

%check
%{__python} setup.py test


%build
%{__python} setup.py build


%install
%{__python} setup.py install --skip-build --root=%{buildroot}

%files
%doc LICENSE README.rst
%{python_sitelib}/*
%{_bindir}/ansi2html


%changelog
* Wed May 09 2012 Ralph Bean <rbean@redhat.com> - 0.9.0-1
- Packaged latest upstream version.
- Removed unnecessary defattr and buildroot
- New dependency on python-six
* Fri Feb 3 2012 Ralph Bean <rbean@redhat.com> - 0.8.3-1
- Included tests in check section.
- More concise file ownership declarations.
- Resolved license ambiguity in upstream.
- Removed shebang from non-executable file.
* Mon Jan 30 2012 Ralph Bean <rbean@redhat.com> - 0.8.2-1
- Updated ansi2html version to latest 0.8.2.
- Added _bindir entry for the ansi2html console-script.
- Removed dependency on genshi.
- Removed references to now EOL fedora 12.
* Wed Sep 15 2010 Ralph Bean <ralph.bean@gmail.com> - 0.5.2-1
- Updated spec based on comments from Mark McKinstry
* Tue Sep 7 2010 Ralph Bean <ralph.bean@gmail.com> - 0.5.1-1
- Initial RPM packaging