Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-atomicwrites for
openSUSE:Factory checked in at 2022-01-29 20:59:32
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-atomicwrites (Old)
and /work/SRC/openSUSE:Factory/.python-atomicwrites.new.1898 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-atomicwrites"
Sat Jan 29 20:59:32 2022 rev:8 rq:949779 version:1.4.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-atomicwrites/python-atomicwrites.changes
2020-05-28 09:04:56.487279762 +0200
+++
/work/SRC/openSUSE:Factory/.python-atomicwrites.new.1898/python-atomicwrites.changes
2022-01-29 21:00:11.267438148 +0100
@@ -1,0 +2,5 @@
+Fri Jan 28 21:18:35 UTC 2022 - Matej Cepl <[email protected]>
+
+- Rewrite into proper multibuild style.
+
+-------------------------------------------------------------------
@@ -24,0 +30,5 @@
+
+-------------------------------------------------------------------
+Wed Jul 18 11:56:07 UTC 2018 - [email protected]
+
+- Versionify the provides to make old brp-checks happy
Old:
----
python-atomicwrites-doc.changes
python-atomicwrites-doc.spec
New:
----
_multibuild
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-atomicwrites.spec ++++++
--- /var/tmp/diff_new_pack.SfaP3z/_old 2022-01-29 21:00:11.707435190 +0100
+++ /var/tmp/diff_new_pack.SfaP3z/_new 2022-01-29 21:00:11.711435163 +0100
@@ -1,7 +1,7 @@
#
-# spec file for package python-atomicwrites
+# spec file
#
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,8 +16,15 @@
#
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
-Name: python-atomicwrites
+%global flavor @BUILD_FLAVOR@%{nil}
+%if "%{flavor}" == "doc"
+%define psuffix -doc
+%bcond_without doc
+%else
+%define psuffix %{nil}
+%bcond_with doc
+%endif
+Name: python-atomicwrites%{psuffix}
Version: 1.4.0
Release: 0
Summary: Atomic file writes for Python
@@ -29,7 +36,12 @@
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
-
+%if %{with doc}
+BuildRequires: %{python_module atomicwrites}
+BuildRequires: %{python_module pytest}
+BuildRequires: python3-Sphinx
+Provides: %{python_module atomicwrites-doc = %{version}}
+%endif
%python_subpackages
%description
@@ -45,17 +57,59 @@
%setup -q -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}
%python_build
+%else
+pushd docs
+make html
+rm _build/html/.buildinfo
+popd
+%endif
%install
+%if %{without doc}
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
+%endif
+%check
+%if %{with doc}
+%pytest
+%endif
+
+%if %{without doc}
%files %{python_files}
%defattr(-,root,root,-)
%doc README.rst
%license LICENSE
-%{python_sitelib}/*
+%{python_sitelib}/atomicwrites*
+
+%else
+
+%files -n %{name}-doc
+%defattr(-,root,root,-)
+%doc README.rst
+%license LICENSE
+%doc docs/_build/html
+%endif
%changelog
++++++ _multibuild ++++++
<multibuild>
<package>doc</package>
</multibuild>