From ac4941e349b47e949387fbe8640a69fa730ba0b0f54739cbf0d56a2131a7900e Mon Sep 17 00:00:00 2001 From: Hans-Peter Jansen Date: Thu, 29 Jun 2017 07:38:38 +0000 Subject: [PATCH] Accepting request 506518 from home:alois:branches:devel:languages:python OBS-URL: https://build.opensuse.org/request/show/506518 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-manuel?expand=0&rev=5 --- python-manuel.changes | 5 +++++ python-manuel.spec | 43 ++++++++++++++++++++++--------------------- 2 files changed, 27 insertions(+), 21 deletions(-) diff --git a/python-manuel.changes b/python-manuel.changes index 7b3e078..52cc3c4 100644 --- a/python-manuel.changes +++ b/python-manuel.changes @@ -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 diff --git a/python-manuel.spec b/python-manuel.spec index c52c189..93f3129 100644 --- a/python-manuel.spec +++ b/python-manuel.spec @@ -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/