File python-genshi.spec of Package python-genshi
#
# spec file for package python-genshi
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
#
%define real_name Genshi
#
#
Name: python-genshi
Version: 0.6
Release: 1
License: BSD
Group: Development/Libraries/Python
Url: http://genshi.edgewall.org/
Source: %{real_name}-%{version}.tar.bz2
%if 0%{?suse_version} > 1110
BuildArch: noarch
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-setuptools
BuildRequires: python-devel
Requires: pyxml
Requires: python-babel >= 0.8
%{py_requires}
Summary: Python XML-based Template Engine
%description
Genshi is a Python library that provides an integrated set of
components for parsing, generating, and processing HTML or XML
content in a uniform manner. The major feature is a template
language, which is heavily inspired by Kid.
%prep
%setup -n %{real_name}-%{version}
%build
export CFLAGS="%{optflags}"
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot} --record-rpm=INSTALLED_FILES
%clean
rm -rf %{buildroot}
%files -f INSTALLED_FILES
%defattr(-,root,root)
%doc ChangeLog
%changelog