This commit is contained in:
committed by
Git OBS Bridge
parent
793fa181b8
commit
268e9c1788
@@ -17,20 +17,30 @@
|
||||
|
||||
|
||||
%define skip_python2 1
|
||||
%global flavor @BUILD_FLAVOR@%{nil}
|
||||
%if "%{flavor}" == "test"
|
||||
%define psuffix -test
|
||||
%bcond_without test
|
||||
%else
|
||||
%define psuffix %{nil}
|
||||
%bcond_with test
|
||||
%endif
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-sphinxcontrib-applehelp
|
||||
Name: python-sphinxcontrib-applehelp%{psuffix}
|
||||
Version: 1.0.1
|
||||
Release: 0
|
||||
Summary: sphinx extension which outputs Apple help books
|
||||
Summary: Sphinx extension which outputs Apple help books
|
||||
License: BSD-2-Clause
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/sphinx-doc/sphinxcontrib-applehelp
|
||||
Source: https://files.pythonhosted.org/packages/source/s/sphinxcontrib-applehelp/sphinxcontrib-applehelp-%{version}.tar.gz
|
||||
BuildRequires: %{python_module Sphinx >= 1}
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module Sphinx}
|
||||
BuildRequires: %{python_module pytest}
|
||||
%endif
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: gettext-tools
|
||||
Requires: python-Sphinx >= 1
|
||||
Requires: python-Sphinx
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildArch: noarch
|
||||
@@ -46,15 +56,21 @@ sphinxcontrib-applehelp is a sphinx extension which outputs Apple help books
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%if !%{with test}
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
%endif
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
%pytest
|
||||
%endif
|
||||
|
||||
%if !%{with test}
|
||||
%files %{python_files}
|
||||
%doc README.rst CHANGES
|
||||
%license LICENSE
|
||||
%{python_sitelib}/*
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user