15
0

Accepting request 1312353 from devel:languages:python

- Fix -doc package generation, we are adding the -doc to the suffix,
  no need to have a subpackage here, multibuild does the trick.

OBS-URL: https://build.opensuse.org/request/show/1312353
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-atomicwrites?expand=0&rev=13
This commit is contained in:
2025-10-21 09:15:48 +00:00
committed by Git OBS Bridge
2 changed files with 7 additions and 26 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Oct 20 09:46:50 UTC 2025 - Daniel Garcia <daniel.garcia@suse.com>
- Fix -doc package generation, we are adding the -doc to the suffix,
no need to have a subpackage here, multibuild does the trick.
-------------------------------------------------------------------
Thu Sep 25 10:40:31 UTC 2025 - Daniel Garcia <daniel.garcia@suse.com>

View File

@@ -46,7 +46,6 @@ BuildArch: noarch
BuildRequires: %{modern_python}-Sphinx
BuildRequires: %{python_module atomicwrites}
BuildRequires: %{python_module pytest}
Provides: %{python_module atomicwrites-doc = %{version}}
%endif
%python_subpackages
@@ -63,24 +62,6 @@ Features that distinguish it from other similar libraries:
%autosetup -p1 -n atomicwrites-%{version}
rm -rf atomicwrites.egg-info
%if %{with doc}
%package -n %{name}-doc
Summary: Atomic file writes for Python (documentation)
Group: Documentation/HTML
%description -n %{name}-doc
Atomic file writes for python3.
Features that distinguish it from other similar libraries:
- Race-free assertion that the target file doesn't yet exist. This can be
controlled with the 'overwrite' parameter.
- High-level API that wraps a very flexible class-based API.
This package contains the documentation for both python2 and python3 versions
of python-atomicwrites
%endif
%build
%if %{without doc}
%pyproject_wheel
@@ -102,20 +83,14 @@ popd
%pytest
%endif
%if %{without doc}
%files %{python_files}
%defattr(-,root,root,-)
%doc README.rst
%license LICENSE
%if %{without doc}
%{python_sitelib}/atomicwrites
%{python_sitelib}/atomicwrites-%{version}.dist-info
%else
%files -n %{name}-doc
%defattr(-,root,root,-)
%doc README.rst
%license LICENSE
%doc docs/_build/html
%endif