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
This commit is contained in:
parent
0cabba82dd
commit
ac4941e349
@ -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
|
Thu May 7 11:52:21 UTC 2015 - benoit.monin@gmx.fr
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-manuel
|
# 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.
|
# Copyright (c) 2013 LISA GmbH, Bingen, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# 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
|
Name: python-manuel
|
||||||
Version: 1.8.0
|
Version: 1.8.0
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -24,20 +25,18 @@ Summary: Build tested documentation
|
|||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Url: http://www.python.org/pypi/manuel
|
Url: http://www.python.org/pypi/manuel
|
||||||
Source: https://pypi.python.org/packages/source/m/manuel/manuel-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/m/manuel/manuel-%{version}.tar.gz
|
||||||
BuildRequires: python-setuptools
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: python-six
|
BuildRequires: %{python_module six}
|
||||||
# Documentation requirements:
|
# Documentation requirements:
|
||||||
BuildRequires: python-Sphinx
|
BuildRequires: %{python_module Sphinx}
|
||||||
# Testing requirements:
|
# Testing requirements:
|
||||||
BuildRequires: python-zope.testing
|
BuildRequires: %{python_module zope.testing}
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
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
|
BuildArch: noarch
|
||||||
%endif
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Manuel lets you build tested documentation.
|
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
|
Documentation, a full list of included plug-ins, and examples are available
|
||||||
with the -doc package and at http://packages.python.org/manuel/.
|
with the -doc package and at http://packages.python.org/manuel/.
|
||||||
|
|
||||||
%package doc
|
%package doc
|
||||||
Summary: Build tested documentation
|
Summary: Build tested documentation
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Requires: %{name} = %{version}
|
Requires: %{name} = %{version}
|
||||||
|
|
||||||
%description doc
|
%description doc
|
||||||
This package contains documentation files for %{name}.
|
This package contains documentation files for %{name}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n manuel-%{version}
|
%setup -q -n manuel-%{version}
|
||||||
rm -rf docs/.doctrees docs/.buildinfo
|
rm -rf docs/.doctrees docs/.buildinfo docs/objects.inv
|
||||||
|
|
||||||
%build
|
%build
|
||||||
python setup.py build
|
%python_build
|
||||||
python setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
%{_python_use_flavor python3}
|
||||||
|
%__python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
%python_install
|
||||||
|
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
python setup.py -q test
|
%python_exec setup.py -q test
|
||||||
|
|
||||||
%files
|
%files %{python_files}
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc CHANGES.rst COPYRIGHT.rst LICENSE.rst PKG-INFO README.rst
|
%doc CHANGES.rst COPYRIGHT.rst LICENSE.rst PKG-INFO README.rst
|
||||||
%python_sitelib/*
|
%{python_sitelib}/*
|
||||||
|
|
||||||
%files doc
|
%files %{python_files doc}
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc docs/
|
%doc docs/
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user