fa63893b99
Fix a major break, which causes problems with Trac. As a 0.7.1. release is not to be expected soon, this backport fixes the issue. OBS-URL: https://build.opensuse.org/request/show/286497 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Genshi?expand=0&rev=6
85 lines
2.8 KiB
RPMSpec
85 lines
2.8 KiB
RPMSpec
#
|
|
# spec file for package python-Genshi
|
|
#
|
|
# Copyright (c) 2015 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/
|
|
#
|
|
|
|
|
|
Name: python-Genshi
|
|
Version: 0.7
|
|
Release: 0
|
|
Url: http://genshi.edgewall.org/
|
|
Summary: A toolkit for generation of output for the web
|
|
License: BSD-3-Clause
|
|
Group: Development/Languages/Python
|
|
Source: http://ftp.edgewall.com/pub/genshi/Genshi-%{version}.tar.gz
|
|
# FIX-UPSTREAM http://genshi.edgewall.org/ticket/566
|
|
Patch1: changeset_r1242.diff
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: python-Babel
|
|
BuildRequires: python-devel
|
|
BuildRequires: python-setuptools
|
|
BuildRequires: python-xml
|
|
Requires: python-Babel
|
|
Requires: python-xml
|
|
Provides: python-genshi = %{version}
|
|
Obsoletes: python-genshi < %{version}
|
|
%if 0%{?suse_version} <= 1110
|
|
%{!?python_sitearch: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(True)")}
|
|
%{py_requires}
|
|
%endif
|
|
|
|
%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. The major
|
|
feature is a template language, which is heavily inspired by Kid.
|
|
|
|
%package doc
|
|
|
|
Summary: A toolkit for generation of output for the web - Documentation
|
|
Group: Development/Libraries/Python
|
|
Requires: %{name} = %{version}
|
|
|
|
%description doc
|
|
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. The major
|
|
feature is a template language, which is heavily inspired by Kid.
|
|
|
|
This package contains documentation and examples.
|
|
|
|
%prep
|
|
%setup -q -n Genshi-%{version}
|
|
%patch1 -p2
|
|
sed -i "1d" examples/{basic/run,basic/kidrun,tutorial/geddit/controller}.py # Fix non-excutable bits
|
|
|
|
%build
|
|
python setup.py build
|
|
|
|
%install
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc COPYING ChangeLog README.txt
|
|
%{python_sitearch}/genshi/
|
|
%{python_sitearch}/Genshi-%{version}-py*.egg-info
|
|
|
|
%files doc
|
|
%defattr(-,root,root,-)
|
|
%doc doc examples
|
|
|
|
%changelog
|