forked from pool/python-autodocsumm
Clean up the SPEC file
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-autodocsumm?expand=0&rev=23
This commit is contained in:
parent
abd2f7b391
commit
f34ca5d1f0
@ -16,7 +16,6 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define skip_python2 1
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-autodocsumm
|
||||
@ -26,9 +25,9 @@ Summary: Extended sphinx autodoc including automatic autosummaries
|
||||
License: Apache-2.0
|
||||
URL: https://github.com/Chilipp/autodocsumm
|
||||
Source: https://github.com/Chilipp/autodocsumm/archive/v%{version}.tar.gz#/autodocsumm-%{version}.tar.gz
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module versioneer}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-Sphinx >= 2.2
|
||||
@ -44,20 +43,20 @@ BuildRequires: %{python_module pytest}
|
||||
Extended sphinx autodoc including automatic autosummaries
|
||||
|
||||
%prep
|
||||
%setup -q -n autodocsumm-%{version}
|
||||
%autosetup -p1 -n autodocsumm-%{version}
|
||||
# Remove guard from Sphinx version
|
||||
sed -i 's/,<5.0//' setup.py
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%pytest
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.rst
|
||||
%license LICENSE
|
||||
|
Loading…
Reference in New Issue
Block a user