Accepting request 1139130 from home:mcalabkova:branches:openSUSE:Backports:SLE-15-SP6:mailman
- Add %{?sle15_python_module_pythons} - Don't build the docs in SLE-based projects OBS-URL: https://build.opensuse.org/request/show/1139130 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-manuel?expand=0&rev=27
This commit is contained in:
parent
84390f06ee
commit
af792784e1
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jan 16 10:31:24 UTC 2024 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Add %{?sle15_python_module_pythons}
|
||||||
|
- Don't build the docs in SLE-based projects
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue May 2 10:14:39 UTC 2023 - Ben Greiner <code@bnavigator.de>
|
Tue May 2 10:14:39 UTC 2023 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-manuel
|
# spec file for package python-manuel
|
||||||
#
|
#
|
||||||
# Copyright (c) 2023 SUSE LLC
|
# Copyright (c) 2024 SUSE LLC
|
||||||
# Copyright (c) 2013-2018 LISA GmbH, Bingen, Germany.
|
# Copyright (c) 2013-2018 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 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-manuel
|
Name: python-manuel
|
||||||
Version: 1.12.4
|
Version: 1.12.4
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -34,11 +35,13 @@ BuildRequires: %{python_module wheel}
|
|||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
%if 0%{?suse_version} >= 1600
|
||||||
# SECTION Documentation requirements:
|
# SECTION Documentation requirements:
|
||||||
BuildRequires: python3-Sphinx
|
BuildRequires: python3-Sphinx
|
||||||
BuildRequires: python3-myst-parser
|
BuildRequires: python3-myst-parser
|
||||||
BuildRequires: python3-sphinxcontrib-copybutton
|
BuildRequires: python3-sphinxcontrib-copybutton
|
||||||
# /SECTION
|
# /SECTION
|
||||||
|
%endif
|
||||||
# SECTION Testing requirements:
|
# SECTION Testing requirements:
|
||||||
BuildRequires: %{python_module zope.testing}
|
BuildRequires: %{python_module zope.testing}
|
||||||
# /SECTION
|
# /SECTION
|
||||||
@ -61,17 +64,21 @@ This package contains documentation files for %{name}.
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
%pyproject_wheel
|
%pyproject_wheel
|
||||||
|
%if 0%{?suse_version} >= 1600
|
||||||
sphinx-build -c sphinx/ -a src/manuel docs/
|
sphinx-build -c sphinx/ -a src/manuel docs/
|
||||||
rm docs/.buildinfo
|
rm docs/.buildinfo
|
||||||
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%pyproject_install
|
%pyproject_install
|
||||||
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
%if 0%{?suse_version} >= 1600
|
||||||
%{python_expand #
|
%{python_expand #
|
||||||
%fdupes %{buildroot}%{$python_sitelib}
|
|
||||||
mkdir -p %{buildroot}%{_docdir}/%{$python_prefix}-manuel-doc
|
mkdir -p %{buildroot}%{_docdir}/%{$python_prefix}-manuel-doc
|
||||||
cp -r docs/* %{buildroot}%{_docdir}/%{$python_prefix}-manuel-doc
|
cp -r docs/* %{buildroot}%{_docdir}/%{$python_prefix}-manuel-doc
|
||||||
%fdupes %{buildroot}%{_docdir}/%{$python_prefix}-manuel-doc
|
%fdupes %{buildroot}%{_docdir}/%{$python_prefix}-manuel-doc
|
||||||
}
|
}
|
||||||
|
%endif
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%pytest src/manuel/tests.py
|
%pytest src/manuel/tests.py
|
||||||
@ -82,7 +89,9 @@ cp -r docs/* %{buildroot}%{_docdir}/%{$python_prefix}-manuel-doc
|
|||||||
%{python_sitelib}/manuel
|
%{python_sitelib}/manuel
|
||||||
%{python_sitelib}/manuel-%{version}.dist-info
|
%{python_sitelib}/manuel-%{version}.dist-info
|
||||||
|
|
||||||
|
%if 0%{?suse_version} >= 1600
|
||||||
%files %{python_files doc}
|
%files %{python_files doc}
|
||||||
%doc %{_docdir}/%{python_prefix}-manuel-doc
|
%doc %{_docdir}/%{python_prefix}-manuel-doc
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user