2011-09-01 16:34:01 +02:00
|
|
|
#
|
2011-09-01 17:49:25 +02:00
|
|
|
# spec file for package python-Genshi
|
2011-09-01 16:34:01 +02:00
|
|
|
#
|
2017-04-06 18:31:21 +02:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-09-01 16:34:01 +02:00
|
|
|
#
|
|
|
|
# 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.
|
2011-09-01 17:49:25 +02:00
|
|
|
|
2011-09-01 16:34:01 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2011-09-01 17:49:25 +02:00
|
|
|
|
2017-04-06 18:31:21 +02:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2011-09-01 16:34:01 +02:00
|
|
|
Name: python-Genshi
|
2013-10-22 16:57:03 +02:00
|
|
|
Version: 0.7
|
2015-02-18 13:38:58 +01:00
|
|
|
Release: 0
|
2011-09-01 16:34:01 +02:00
|
|
|
Url: http://genshi.edgewall.org/
|
|
|
|
Summary: A toolkit for generation of output for the web
|
|
|
|
License: BSD-3-Clause
|
|
|
|
Group: Development/Languages/Python
|
2017-04-06 18:31:21 +02:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/G/Genshi/Genshi-%{version}.tar.gz
|
|
|
|
# PATCH-FIX-UPSTREAM http://genshi.edgewall.org/ticket/566
|
2015-02-18 13:38:58 +01:00
|
|
|
Patch1: changeset_r1242.diff
|
2017-04-06 18:31:21 +02:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
BuildRequires: %{python_module Babel}
|
|
|
|
BuildRequires: %{python_module devel}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: %{python_module xml}
|
2011-09-01 16:34:01 +02:00
|
|
|
Requires: python-Babel
|
2015-02-18 13:38:58 +01:00
|
|
|
Requires: python-xml
|
2017-04-06 18:31:21 +02:00
|
|
|
%define oldpython python
|
|
|
|
%ifpython2
|
|
|
|
Obsoletes: %{oldpython}-genshi < %{version}
|
|
|
|
Provides: %{oldpython}-genshi = %{version}
|
2013-10-22 16:57:03 +02:00
|
|
|
%endif
|
2017-04-06 18:31:21 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%python_subpackages
|
2011-09-01 16:34:01 +02:00
|
|
|
|
|
|
|
%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}
|
2015-02-18 13:38:58 +01:00
|
|
|
%patch1 -p2
|
2011-09-01 16:34:01 +02:00
|
|
|
sed -i "1d" examples/{basic/run,basic/kidrun,tutorial/geddit/controller}.py # Fix non-excutable bits
|
|
|
|
|
|
|
|
%build
|
2017-04-06 18:31:21 +02:00
|
|
|
%python_build
|
2011-09-01 16:34:01 +02:00
|
|
|
|
|
|
|
%install
|
2017-04-06 18:31:21 +02:00
|
|
|
%python_install
|
|
|
|
|
|
|
|
%{python_expand %fdupes %{buildroot}%{$python_sitearch} }
|
2011-09-01 16:34:01 +02:00
|
|
|
|
2017-04-06 18:31:21 +02:00
|
|
|
%files %{python_files}
|
2011-09-01 16:34:01 +02:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc COPYING ChangeLog README.txt
|
2013-10-22 16:57:03 +02:00
|
|
|
%{python_sitearch}/genshi/
|
|
|
|
%{python_sitearch}/Genshi-%{version}-py*.egg-info
|
|
|
|
|
2017-04-06 18:31:21 +02:00
|
|
|
%files %{python_files doc}
|
2013-10-22 16:57:03 +02:00
|
|
|
%defattr(-,root,root,-)
|
2017-04-06 18:31:21 +02:00
|
|
|
%doc doc/
|
|
|
|
%doc examples/
|
2011-09-01 16:34:01 +02:00
|
|
|
|
|
|
|
%changelog
|