forked from pool/python-sphinxcontrib-apidoc
Compare commits
2 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| e4a4c84fb5 | |||
| b9199648e5 |
@@ -1,9 +1,3 @@
|
|||||||
-------------------------------------------------------------------
|
|
||||||
Mon Jun 16 06:17:07 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
|
||||||
|
|
||||||
- Switch to pyroject macros.
|
|
||||||
- No more greedy globs in %files.
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Apr 24 12:42:27 UTC 2025 - Daniel Garcia <daniel.garcia@suse.com>
|
Thu Apr 24 12:42:27 UTC 2025 - Daniel Garcia <daniel.garcia@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -16,6 +16,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
%global flavor @BUILD_FLAVOR@%{nil}
|
%global flavor @BUILD_FLAVOR@%{nil}
|
||||||
%if "%{flavor}" == "test"
|
%if "%{flavor}" == "test"
|
||||||
%define psuffix -test
|
%define psuffix -test
|
||||||
@@ -36,9 +37,7 @@ Source: https://files.pythonhosted.org/packages/source/s/sphinxcontrib-a
|
|||||||
# PATCH-FIX-UPSTREAM sphinx-82.patch gh#sphinx-contrib/apidoc#23
|
# PATCH-FIX-UPSTREAM sphinx-82.patch gh#sphinx-contrib/apidoc#23
|
||||||
Patch0: sphinx-82.patch
|
Patch0: sphinx-82.patch
|
||||||
BuildRequires: %{python_module pbr >= 4.0}
|
BuildRequires: %{python_module pbr >= 4.0}
|
||||||
BuildRequires: %{python_module pip}
|
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module wheel}
|
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-Sphinx >= 5.0.0
|
Requires: python-Sphinx >= 5.0.0
|
||||||
@@ -63,11 +62,11 @@ must be run before *sphinx-build*.
|
|||||||
%autosetup -p1 -n sphinxcontrib-apidoc-%{version}
|
%autosetup -p1 -n sphinxcontrib-apidoc-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%pyproject_wheel
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%if !%{with test}
|
%if !%{with test}
|
||||||
%pyproject_install
|
%python_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@@ -80,10 +79,7 @@ must be run before *sphinx-build*.
|
|||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc AUTHORS ChangeLog README.rst
|
%doc AUTHORS ChangeLog README.rst
|
||||||
%dir %{python_sitelib}/sphinxcontrib
|
%{python_sitelib}/*
|
||||||
%{python_sitelib}/sphinxcontrib/apidoc
|
|
||||||
%{python_sitelib}/sphinxcontrib_apidoc-%{version}-py*-nspkg.pth
|
|
||||||
%{python_sitelib}/sphinxcontrib_apidoc-%{version}.dist-info
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user