python-genshi/python-genshi.spec

Name: python-genshi
Summary: Python toolkit for generation of output for the web
Version: 0.6
Release: 2
License: BSD
Group: Development/Libraries
URL: http://genshi.edgewall.org/wiki/
Description: Genshi is a Python library that provides an integrated set of components for parsing, generating, and processing HTML, XML or other textual content for output generation on the web.

CentOS 7 x86_64

The build was succesful. The following RPMs were generated:

Build Status

CentOS 6 x86_64

The build was succesful. The following RPMs were generated:

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: dag

### EL6 ships with python-genshi-0.5.1-7.1.el6
%{?el6:# Tag: rfx}

%define python_sitelib %(%{__python} -c 'from distutils import sysconfig; print sysconfig.get_python_lib()')

%define real_name Genshi

Summary: Python toolkit for generation of output for the web
Name: python-genshi
Version: 0.6
Release: 2%{?dist}
License: BSD
Group: Development/Libraries
URL: http://genshi.edgewall.org/wiki/

Source: http://ftp.edgewall.com/pub/genshi/%{real_name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot

BuildArch: noarch

BuildRequires: python >= 2.4
BuildRequires: python-devel >= 2.4
BuildRequires: python-setuptools >= 0.6

Requires: python >= 2.4

%description
Genshi is a Python library that provides an integrated set of components for
parsing, generating, and processing HTML, XML or other textual content for 
output generation on the web.

%prep
%setup -n %{real_name}-%{version}

%build
%{__python} setup.py build

%install
%{__rm} -rf %{buildroot}
%{__python} setup.py install --single-version-externally-managed --optimize="1" --root="%{buildroot}" --prefix="%{_prefix}"

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc ChangeLog COPYING PKG-INFO README.txt doc/ examples/
%{python_sitelib}/genshi/
%{python_sitelib}/%{real_name}-%{version}-py*.egg-info

%changelog
* Sun Aug 14 2011 Yury V. Zaytsev <yury@shurup.com> - 0.6-2
- RFX on RHEL6, required by Trac.

* Mon Jun 14 2010 Dag Wieers <dag@wieers.com> - 0.6-1
- Updated to release 0.6.

* Wed Aug 06 2008 Brandon Davidson <brandond@uoregon.edu> - 0.5.1-2
- Added egg-info files.

* Wed Jul 30 2008 Brandon Davidson <brandond@uoregon.edu> - 0.5.1-1
- Initial package.