Accepting request 508462 from devel:languages:python

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/508462
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-manuel?expand=0&rev=4
This commit is contained in:
Dominique Leuenberger 2017-07-08 10:34:48 +00:00 committed by Git OBS Bridge
commit 76cf5a0b9c
2 changed files with 27 additions and 21 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Jun 23 13:49:07 UTC 2017 - aloisio@gmx.com
- Converted to single-spec
-------------------------------------------------------------------
Thu May 7 11:52:21 UTC 2015 - benoit.monin@gmx.fr

View File

@ -1,7 +1,7 @@
#
# spec file for package python-manuel
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2013 LISA GmbH, Bingen, Germany.
#
# All modifications and additions to the file contributed by third parties
@ -17,6 +17,7 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-manuel
Version: 1.8.0
Release: 0
@ -24,20 +25,18 @@ Summary: Build tested documentation
License: Apache-2.0
Group: Development/Languages/Python
Url: http://www.python.org/pypi/manuel
Source: https://pypi.python.org/packages/source/m/manuel/manuel-%{version}.tar.gz
BuildRequires: python-setuptools
BuildRequires: python-six
Source: https://files.pythonhosted.org/packages/source/m/manuel/manuel-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
# Documentation requirements:
BuildRequires: python-Sphinx
BuildRequires: %{python_module Sphinx}
# Testing requirements:
BuildRequires: python-zope.testing
BuildRequires: %{python_module zope.testing}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
%endif
%python_subpackages
%description
Manuel lets you build tested documentation.
@ -45,34 +44,36 @@ Manuel lets you build tested documentation.
Documentation, a full list of included plug-ins, and examples are available
with the -doc package and at http://packages.python.org/manuel/.
%package doc
%package doc
Summary: Build tested documentation
Group: Development/Languages/Python
Requires: %{name} = %{version}
%description doc
%description doc
This package contains documentation files for %{name}.
%prep
%setup -q -n manuel-%{version}
rm -rf docs/.doctrees docs/.buildinfo
rm -rf docs/.doctrees docs/.buildinfo docs/objects.inv
%build
python setup.py build
python setup.py build_sphinx && rm build/sphinx/html/.buildinfo
%python_build
%{_python_use_flavor python3}
%__python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%python_install
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
%check
python setup.py -q test
%python_exec setup.py -q test
%files
%files %{python_files}
%defattr(-,root,root,-)
%doc CHANGES.rst COPYRIGHT.rst LICENSE.rst PKG-INFO README.rst
%python_sitelib/*
%{python_sitelib}/*
%files doc
%files %{python_files doc}
%defattr(-,root,root,-)
%doc docs/