2011-07-03 13:34:40 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-Sphinx
|
|
|
|
#
|
|
|
|
# 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.
|
2011-07-04 12:44:36 +02:00
|
|
|
|
2011-07-03 13:34:40 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2011-07-04 12:44:36 +02:00
|
|
|
|
|
|
|
|
2011-07-03 13:34:40 +02:00
|
|
|
Name: python-Sphinx
|
|
|
|
Version: 1.0.7
|
2011-07-12 13:44:55 +02:00
|
|
|
Release: 3
|
2011-07-03 13:34:40 +02:00
|
|
|
Url: http://sphinx.pocoo.org
|
|
|
|
Summary: Python documentation generator
|
|
|
|
License: BSD
|
|
|
|
Group: Development/Languages/Python
|
|
|
|
Source: http://pypi.python.org/packages/source/S/Sphinx/Sphinx-%{version}.tar.gz
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: docutils
|
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: python-distribute
|
2011-08-31 16:02:19 +02:00
|
|
|
BuildRequires: python-Jinja2
|
2011-07-03 13:34:40 +02:00
|
|
|
Requires: docutils
|
2011-08-31 16:02:19 +02:00
|
|
|
Requires: python-Jinja2
|
|
|
|
Requires: python-Pygments
|
2011-07-12 12:04:28 +02:00
|
|
|
Requires: python-distribute
|
2011-07-03 13:34:40 +02:00
|
|
|
%if 0%{?suse_version}
|
|
|
|
Suggests: python-rst2pdf
|
|
|
|
%py_requires
|
|
|
|
%if 0%{?suse_version} > 1010
|
|
|
|
BuildRequires: fdupes
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version} > 1110
|
|
|
|
BuildArch: noarch
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
Provides: python-sphinx = %{version}
|
|
|
|
Obsoletes: python-sphinx < %{version}
|
|
|
|
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
|
|
|
|
|
%description
|
|
|
|
Sphinx is a tool that makes it easy to create intelligent and beautiful
|
|
|
|
documentation for Python projects (or other documents consisting of multiple
|
|
|
|
reStructuredText sources), written by Georg Brandl. It was originally created
|
|
|
|
for the new Python documentation, and has excellent facilities for Python
|
|
|
|
project documentation, but C/C++ is supported as well, and more languages are
|
|
|
|
planned.
|
|
|
|
|
|
|
|
Sphinx uses reStructuredText as its markup language, and many of its strengths
|
|
|
|
come from the power and straightforwardness of reStructuredText and its parsing
|
|
|
|
and translating suite, the Docutils.
|
|
|
|
|
|
|
|
%package doc
|
2011-07-04 12:44:36 +02:00
|
|
|
|
2011-07-12 13:44:55 +02:00
|
|
|
|
2011-07-03 13:34:40 +02:00
|
|
|
Summary: Documentation for %{name}
|
|
|
|
Group: Documentation/Other
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
Sphinx is a tool that makes it easy to create intelligent and beautiful
|
|
|
|
documentation for Python projects (or other documents consisting of multiple
|
|
|
|
reStructuredText sources), written by Georg Brandl. It was originally created
|
|
|
|
for the new Python documentation, and has excellent facilities for Python
|
|
|
|
project documentation, but C/C++ is supported as well, and more languages are
|
|
|
|
planned.
|
|
|
|
|
|
|
|
Sphinx uses reStructuredText as its markup language, and many of its strengths
|
|
|
|
come from the power and straightforwardness of reStructuredText and its parsing
|
|
|
|
and translating suite, the Docutils.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n Sphinx-%{version}
|
|
|
|
sed -i '1d' sphinx/pycode/pgen2/token.py # Remove she-bang line
|
|
|
|
|
|
|
|
%build
|
|
|
|
python setup.py build
|
|
|
|
cd doc && make html
|
|
|
|
rm _build/html/.buildinfo
|
|
|
|
mv _build/html ..
|
|
|
|
rm -rf _*
|
|
|
|
|
|
|
|
%install
|
|
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
|
|
%if 0%{?suse_version} > 1010
|
|
|
|
%fdupes %{buildroot}%{_prefix}
|
|
|
|
%endif
|
|
|
|
%find_lang sphinx
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%files -f sphinx.lang
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc AUTHORS CHANGES LICENSE README TODO
|
|
|
|
%{_bindir}/sphinx-*
|
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc EXAMPLES html
|
|
|
|
|
|
|
|
%changelog
|