Hello community,

here is the log from the commit of package python-systemd for openSUSE:Factory 
checked in at 2017-10-20 16:11:21
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-systemd (Old)
 and      /work/SRC/openSUSE:Factory/.python-systemd.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-systemd"

Fri Oct 20 16:11:21 2017 rev:6 rq:532999 version:234

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-systemd/python-systemd.changes    
2017-07-04 11:56:24.150187300 +0200
+++ /work/SRC/openSUSE:Factory/.python-systemd.new/python-systemd.changes       
2017-10-20 16:11:22.608321905 +0200
@@ -1,0 +2,5 @@
+Sat Oct  7 13:20:19 UTC 2017 - sebix+novell....@sebix.at
+
+- singlespec
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-systemd.spec ++++++
--- /var/tmp/diff_new_pack.HAZMJC/_old  2017-10-20 16:11:23.324288459 +0200
+++ /var/tmp/diff_new_pack.HAZMJC/_new  2017-10-20 16:11:23.328288273 +0200
@@ -16,6 +16,8 @@
 #
 
 
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%bcond_without test
 Name:           python-systemd
 Version:        234
 Release:        0
@@ -26,20 +28,26 @@
 Source:         
https://github.com/systemd/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
 # PATCH-FIX-OPENSUSE exclude-tests-on-obs.patch removes a test when running 
tests at OBS. Should be removed as soon as OBS is fixed
 Patch100:       exclude-tests-on-obs.patch
+BuildRequires:  %{python_module devel}
+BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  gcc-c++
 BuildRequires:  pkgconfig
-BuildRequires:  python-Sphinx
-BuildRequires:  python-devel
-BuildRequires:  python-pytest
-BuildRequires:  python-setuptools
+BuildRequires:  python-rpm-macros
 BuildRequires:  systemd-devel
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+Requires:       systemd
+Suggests:       %{name}-doc
+# SECTION docs
+BuildRequires:  python3-Sphinx
+# /SECTION
+%if %{with test}
+BuildRequires:  %{python_module pytest}
+%endif
+%python_subpackages
 
-%package doc
+%package -n %{name}-doc
 Summary:        Documentation for python-systemd
-# FIXME: use correct group, see 
"https://en.opensuse.org/openSUSE:Package_group_guidelines";
-Group:          Documentation
+Group:          Documentation/HTML
 Requires:       %{name} = %{version}
 
 %description
@@ -49,7 +57,7 @@
 * systemd.id128 provides functions for querying machine and boot identifiers 
and a lists of message identifiers provided by systemd,
 * systemd.login wraps parts of libsystemd used to query logged in users and 
available seats and machines.
 
-%description doc
+%description -n %{name}-doc
 Documentation and help files for python-systemd.
 
 %prep
@@ -57,24 +65,24 @@
 %patch100 -p1
 
 %build
-make %{?_smp_mflags} build
+%{python_expand make PYTHON=$python %{?_smp_mflags} build}
 make %{?_smp_mflags} sphinx-html
 rm -r build/html/.buildinfo build/html/.doctrees build/html/_sources
 
 %install
-%make_install
-%fdupes %{buildroot}/%{python_sitearch}
+%{python_expand %make_install PYTHON=$python
+%fdupes %{buildroot}/%{$python_sitearch}}
 
+%if %{with test}
 %check
-make %{?_smp_mflags} check
+%{python_expand make PYTHON=$python %{?_smp_mflags} check}
+%endif
 
-%files
-%defattr(-,root,root,-)
+%files %{python_files}
 %doc LICENSE.txt README.md
 %{python_sitearch}/*
 
-%files doc
-%defattr(-,root,root)
+%files -n %{name}-doc
 %doc build/html
 
 %changelog


Reply via email to