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

# norootforbuild

%define real_name Genshi

Name:           python-genshi
Version:        0.6
Release:        1
License:        BSD
Group:          Development/Libraries/Python
Source:         %{real_name}-%{version}.tar.bz2
%if 0%{?suse_version} > 1110
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  python-setuptools
BuildRequires:  python-devel
Requires:       pyxml
Requires:       python-babel >= 0.8
Summary:        Python XML-based Template Engine

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.

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

export CFLAGS="%{optflags}"
python build

python install --prefix=%{_prefix} --root=%{buildroot} --record-rpm=INSTALLED_FILES

rm -rf %{buildroot}

%doc ChangeLog

openSUSE Build Service is sponsored by