Compare commits
4 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 34772a4f0c | |||
| e20e662679 | |||
| 102b7a44f6 | |||
| a8ebab0162 |
@@ -1,14 +1,3 @@
|
|||||||
-------------------------------------------------------------------
|
|
||||||
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>
|
|
||||||
|
|
||||||
- Build for modern python in SLE15
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Jun 13 05:35:08 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
Fri Jun 13 05:35:08 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-atomicwrites
|
# spec file for package python-atomicwrites
|
||||||
#
|
#
|
||||||
# Copyright (c) 2025 SUSE LLC and contributors
|
# Copyright (c) 2025 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -24,8 +24,6 @@
|
|||||||
%define psuffix %{nil}
|
%define psuffix %{nil}
|
||||||
%bcond_with doc
|
%bcond_with doc
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%{?sle15_python_module_pythons}
|
|
||||||
Name: python-atomicwrites%{psuffix}
|
Name: python-atomicwrites%{psuffix}
|
||||||
Version: 1.4.1
|
Version: 1.4.1
|
||||||
Release: 0
|
Release: 0
|
||||||
@@ -43,9 +41,10 @@ BuildRequires: fdupes
|
|||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%if %{with doc}
|
%if %{with doc}
|
||||||
BuildRequires: %{modern_python}-Sphinx
|
|
||||||
BuildRequires: %{python_module atomicwrites}
|
BuildRequires: %{python_module atomicwrites}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
|
BuildRequires: python3-Sphinx
|
||||||
|
Provides: %{python_module atomicwrites-doc = %{version}}
|
||||||
%endif
|
%endif
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
@@ -62,6 +61,24 @@ Features that distinguish it from other similar libraries:
|
|||||||
%autosetup -p1 -n atomicwrites-%{version}
|
%autosetup -p1 -n atomicwrites-%{version}
|
||||||
rm -rf atomicwrites.egg-info
|
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
|
%build
|
||||||
%if %{without doc}
|
%if %{without doc}
|
||||||
%pyproject_wheel
|
%pyproject_wheel
|
||||||
@@ -83,14 +100,20 @@ popd
|
|||||||
%pytest
|
%pytest
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if %{without doc}
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%if %{without doc}
|
|
||||||
%{python_sitelib}/atomicwrites
|
%{python_sitelib}/atomicwrites
|
||||||
%{python_sitelib}/atomicwrites-%{version}.dist-info
|
%{python_sitelib}/atomicwrites-%{version}.dist-info
|
||||||
|
|
||||||
%else
|
%else
|
||||||
|
|
||||||
|
%files -n %{name}-doc
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%doc README.rst
|
||||||
|
%license LICENSE
|
||||||
%doc docs/_build/html
|
%doc docs/_build/html
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user