python-Genshi/python-Genshi.spec
Sascha Peilicke 84d1f6fe74 - Renamed to python-Genshi (from python-Genshi)
- Changed license to BSD-3-Clause (SPDX style) from BSD3c
- Fixed doc-file-dependency rpmlint issue

- Spec file cleanup
  * Proper SUSE changes file and removed changelog from spec
  * Added proper license header
  * Package files COPYING, README.txt and docs and examples
- Split of documentation package

- Updated to 0.6

- Updated to 0.5.1

- Fixed build errors
- Updated to 0.4.4

- Clean up spec file and change name to python-geneshi

- Initial package

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Genshi?expand=0&rev=1
2011-09-01 14:34:01 +00:00

81 lines
2.7 KiB
RPMSpec

#
# 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/
#
Name: python-Genshi
Version: 0.6
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: Genshi-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
BuildRequires: python-distribute
Requires: python-xml
Requires: python-Babel
%if 0%{?suse_version}
%py_requires
%if 0%{?suse_version} > 1110
BuildArch: noarch
%endif
%endif
Provides: python-genshi = %{version}
#TODO: Change back to '<' after next version update:
Obsoletes: python-genshi <= %{version}
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%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}
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 doc
%defattr(-,root,root,-)
%doc doc examples
%files
%defattr(-,root,root,-)
%doc COPYING ChangeLog README.txt
%{python_sitelib}/*
%changelog