forked from pool/python-zope.exceptions
Accepting request 507291 from home:alois:branches:devel:languages:python
I actually need that %_python_use_flavor or %python_exec will rename the build directory. OBS-URL: https://build.opensuse.org/request/show/507291 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.exceptions?expand=0&rev=11
This commit is contained in:
committed by
Git OBS Bridge
parent
b4ea8dfb81
commit
2d9c8a2301
63
python-zope.exceptions-doc.spec
Normal file
63
python-zope.exceptions-doc.spec
Normal file
@@ -0,0 +1,63 @@
|
||||
#
|
||||
# spec file for package python-zope.exceptions-doc
|
||||
#
|
||||
# Copyright (c) 2017 SUSE LINUX 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/
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-zope.exceptions-doc
|
||||
Version: 4.1.0
|
||||
Release: 0
|
||||
Summary: Documentation for python-zope.exceptions
|
||||
License: ZPL-2.1
|
||||
Group: Documentation/HTML
|
||||
Url: http://cheeseshop.python.org/pypi/zope.exceptions
|
||||
Source: https://files.pythonhosted.org/packages/source/z/zope.exceptions/zope.exceptions-%{version}.tar.gz
|
||||
# SECTION Documentation requirements
|
||||
BuildRequires: python3-Sphinx
|
||||
BuildRequires: python3-repoze.sphinx.autointerface
|
||||
# /SECTION
|
||||
BuildRequires: python-rpm-macros
|
||||
# SECTION Test requirements:
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module zope.exceptions} = %{version}
|
||||
BuildRequires: %{python_module zope.testrunner}
|
||||
# /SECTION
|
||||
Requires: python-zope.exceptions = %{version}
|
||||
Provides: %{python_module zope.exceptions-doc == %{version}}
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
This package contains documentation files for python-zope.exceptions.
|
||||
|
||||
%prep
|
||||
%setup -q -n zope.exceptions-%{version}
|
||||
|
||||
%build
|
||||
%{_python_use_flavor python3}
|
||||
%__python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
||||
|
||||
%install
|
||||
# Not needed
|
||||
|
||||
%check
|
||||
%python_exec %{_bindir}/zope-testrunner -vvv --test-path src
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc COPYRIGHT.txt LICENSE.txt
|
||||
%doc build/sphinx/html/
|
||||
|
||||
%changelog
|
||||
Reference in New Issue
Block a user