File docutils.spec of Package docutils
#
# spec file for package docutils (Version 0.5)
#
# Copyright (c) 2009 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
Name: docutils
BuildRequires: python-devel
License: BSD 3-clause (or similar) ; GPL v2 or later ; Public Domain, Freeware ; Python License ..
Group: Productivity/Publishing/Other
AutoReqProv: on
Version: 0.5
Release: 2
Summary: Tools for Processing Plain Text Documentation into Useful Formats
Url: http://docutils.sourceforge.net/
Source: %{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{py_requires}
%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1}
BuildArch: noarch
%endif
%description
The purpose of the Docutils project is to create a set of tools for
processing plain text documentation into useful formats, such as HTML,
XML, and TeX. Several sources are supported:
* Stand-alone files (implemented)
* Inline documentation from Python modules and packages, extracted
with namespace context
* PEPs (Python Enhancement Proposals) (implemented)
* And others as discovered
Authors:
--------
David Goodger <goodger@users.sourceforge.net>
%prep
%setup
%build
export CFLAGS="$RPM_OPT_FLAGS"
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES
%clean
rm -rf $RPM_BUILD_ROOT
%files -f INSTALLED_FILES
%defattr(-,root,root)
%doc COPYING.txt FAQ.txt HISTORY.txt README.txt THANKS.txt BUGS.txt docs extras licenses tools
%changelog