commit python-systemd for openSUSE:Factory

2020-02-06 Thread root
Hello community,

here is the log from the commit of package python-systemd for openSUSE:Factory 
checked in at 2020-02-06 13:05:49

Comparing /work/SRC/openSUSE:Factory/python-systemd (Old)
 and  /work/SRC/openSUSE:Factory/.python-systemd.new.26092 (New)


Package is "python-systemd"

Thu Feb  6 13:05:49 2020 rev:9 rq:769358 version:234

Changes:

--- /work/SRC/openSUSE:Factory/python-systemd/python-systemd.changes
2017-11-17 10:36:59.055275658 +0100
+++ /work/SRC/openSUSE:Factory/.python-systemd.new.26092/python-systemd.changes 
2020-02-06 13:05:51.332258786 +0100
@@ -1,0 +2,6 @@
+Sun Feb  2 14:05:14 UTC 2020 - Dominique Leuenberger 
+
+- BuildRequire pkgconfig(libsystemd) instead of systemd-devel:
+  allow OBS to shortcut through the -mini flavors.
+
+---



Other differences:
--
++ python-systemd.spec ++
--- /var/tmp/diff_new_pack.40mH3i/_old  2020-02-06 13:05:52.608259480 +0100
+++ /var/tmp/diff_new_pack.40mH3i/_new  2020-02-06 13:05:52.608259480 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-systemd
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
@@ -22,9 +22,9 @@
 Version:234
 Release:0
 Summary:Python wrappers for systemd functionality
-License:LGPL-2.1+
+License:LGPL-2.1-or-later
 Group:  Development/Languages/Python
-Url:https://github.com/systemd/python-systemd
+URL:https://github.com/systemd/python-systemd
 Source: 
https://github.com/systemd/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
 # PATCH-FIX-OPENSUSE iso-c-90.patch makes the building iso-c-90 compatible to 
allow building on SLE12 SP3
 Patch1: iso-c-90.patch
@@ -36,7 +36,7 @@
 BuildRequires:  gcc-c++
 BuildRequires:  pkgconfig
 BuildRequires:  python-rpm-macros
-BuildRequires:  systemd-devel
+BuildRequires:  pkgconfig(libsystemd)
 Requires:   systemd
 Suggests:   %{name}-doc
 # /SECTION




commit python-systemd for openSUSE:Factory

2017-11-17 Thread root
Hello community,

here is the log from the commit of package python-systemd for openSUSE:Factory 
checked in at 2017-11-17 10:36:57

Comparing /work/SRC/openSUSE:Factory/python-systemd (Old)
 and  /work/SRC/openSUSE:Factory/.python-systemd.new (New)


Package is "python-systemd"

Fri Nov 17 10:36:57 2017 rev:8 rq:541808 version:234

Changes:

--- /work/SRC/openSUSE:Factory/python-systemd/python-systemd.changes
2017-11-11 14:15:53.619363921 +0100
+++ /work/SRC/openSUSE:Factory/.python-systemd.new/python-systemd.changes   
2017-11-17 10:36:59.055275658 +0100
@@ -1,0 +2,8 @@
+Tue Nov 14 12:47:02 UTC 2017 - mplus...@suse.com
+
+- Use more of python building macros
+- Do not build documentation (build is broken if /usr/bin/python is
+  not present anyways)
+- Run spec-cleaner
+
+---



Other differences:
--
++ python-systemd.spec ++
--- /var/tmp/diff_new_pack.2WfBea/_old  2017-11-17 10:36:59.715251502 +0100
+++ /var/tmp/diff_new_pack.2WfBea/_new  2017-11-17 10:36:59.715251502 +0100
@@ -39,19 +39,12 @@
 BuildRequires:  systemd-devel
 Requires:   systemd
 Suggests:   %{name}-doc
-# SECTION docs
-BuildRequires:  python3-Sphinx
 # /SECTION
 %if %{with test}
 BuildRequires:  %{python_module pytest}
 %endif
 %python_subpackages
 
-%package -n %{name}-doc
-Summary:Documentation for python-systemd
-Group:  Documentation/HTML
-Requires:   %{name} = %{version}
-
 %description
 Python module for native access to the systemd facilities. Functionality is 
seperated into a number of modules:
 * systemd.journal supports sending of structured messages to the journal and 
reading journal files,
@@ -59,33 +52,25 @@
 * 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 -n %{name}-doc
-Documentation and help files for python-systemd.
-
 %prep
 %setup -q
 %patch1 -p1
 %patch100 -p1
 
 %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
+%python_build
 
 %install
-%{python_expand %make_install PYTHON=$python
-%fdupes %{buildroot}/%{$python_sitearch}}
+%python_install
+%fdupes %{buildroot}
 
 %if %{with test}
 %check
-%{python_expand make PYTHON=$python %{?_smp_mflags} check}
+%python_exec setup.py check
 %endif
 
 %files %{python_files}
 %doc LICENSE.txt README.md
 %{python_sitearch}/*
 
-%files -n %{name}-doc
-%doc build/html
-
 %changelog




commit python-systemd for openSUSE:Factory

2017-11-11 Thread root
Hello community,

here is the log from the commit of package python-systemd for openSUSE:Factory 
checked in at 2017-11-11 14:15:43

Comparing /work/SRC/openSUSE:Factory/python-systemd (Old)
 and  /work/SRC/openSUSE:Factory/.python-systemd.new (New)


Package is "python-systemd"

Sat Nov 11 14:15:43 2017 rev:7 rq:539384 version:234

Changes:

--- /work/SRC/openSUSE:Factory/python-systemd/python-systemd.changes
2017-10-20 16:11:22.608321905 +0200
+++ /work/SRC/openSUSE:Factory/.python-systemd.new/python-systemd.changes   
2017-11-11 14:15:53.619363921 +0100
@@ -1,0 +2,5 @@
+Mon Nov  6 18:15:19 UTC 2017 - jweberho...@weberhofer.at
+
+- iso-c-90.patch added to fix building on SLE12-SP3
+
+---

New:

  iso-c-90.patch



Other differences:
--
++ python-systemd.spec ++
--- /var/tmp/diff_new_pack.LcMIA3/_old  2017-11-11 14:15:54.647326243 +0100
+++ /var/tmp/diff_new_pack.LcMIA3/_new  2017-11-11 14:15:54.647326243 +0100
@@ -26,6 +26,8 @@
 Group:  Development/Languages/Python
 Url:https://github.com/systemd/python-systemd
 Source: 
https://github.com/systemd/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
+# PATCH-FIX-OPENSUSE iso-c-90.patch makes the building iso-c-90 compatible to 
allow building on SLE12 SP3
+Patch1: iso-c-90.patch
 # 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}
@@ -62,6 +64,7 @@
 
 %prep
 %setup -q
+%patch1 -p1
 %patch100 -p1
 
 %build

++ iso-c-90.patch ++
diff -ur python-systemd-234.orig/systemd/_daemon.c 
python-systemd-234/systemd/_daemon.c
--- python-systemd-234.orig/systemd/_daemon.c   2017-03-26 03:33:59.0 
+0200
+++ python-systemd-234/systemd/_daemon.c2017-11-06 19:11:48.546733677 
+0100
@@ -127,11 +127,12 @@
 return NULL;
 
 for (i = 0; i < len; i++) {
+long value;
 PyObject *item = PySequence_GetItem(fds, i);
 if (!item)
 return NULL;
 
-long value = PyLong_AsLong(item);
+   value = PyLong_AsLong(item);
 if (PyErr_Occurred())
 return NULL;
 



commit python-systemd for openSUSE:Factory

2017-10-20 Thread root
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




commit python-systemd for openSUSE:Factory

2017-07-04 Thread root
Hello community,

here is the log from the commit of package python-systemd for openSUSE:Factory 
checked in at 2017-07-04 11:56:22

Comparing /work/SRC/openSUSE:Factory/python-systemd (Old)
 and  /work/SRC/openSUSE:Factory/.python-systemd.new (New)


Package is "python-systemd"

Tue Jul  4 11:56:22 2017 rev:5 rq:507119 version:234

Changes:

--- /work/SRC/openSUSE:Factory/python-systemd/python-systemd.changes
2017-06-20 09:33:17.408177671 +0200
+++ /work/SRC/openSUSE:Factory/.python-systemd.new/python-systemd.changes   
2017-07-04 11:56:24.150187300 +0200
@@ -1,0 +2,39 @@
+Mon Jun 26 09:17:01 UTC 2017 - jweberho...@weberhofer.at
+
+- exclude-tests-on-obs.patch: Exclude test which fail because of
+  a bug in the OBS: https://github.com/openSUSE/obs-build/pull/351
+
+- Upgrade to release 234
+  * _daemon,_reader: return ENOSYS instead of NotImplemented
+  * _daemon: allow specifying flowinfo
+  * Added section for installation on openSUSE & SLE
+  * Adjust import order, spacing, operators as recommended by pylint
+  * build-sys: add sign and upload targets
+  * daemon: add basic support for sd_is_socket_sockaddr
+  * daemon: add wrapper for sd_is_socket_sockaddr and tests
+  * daemon: properly skip sd_is_socket_sockaddr calls if not available
+  * Fix handling of addresses without port and add tests
+  * Fix styling to match PEP8 in most places
+  * Improve test skipping on old systems
+  * Include all fields from record
+  * journal: do not convert extra args to string in JournalHandler
+  * journal: fix repr of JournalHandler to match python3.6
+  * journal: improve docstring formatting a bit
+  * journal: rename SENDER_FUNCTION to sender_function
+  * Makefile: add "doc" target for convenience
+  * Makefile: add convenience "shell" target to start python shell
+  * Makefile: remove unneeded -I/usr/include from flags
+  * Makefile: use $(INCLUDE_DIR) also for compilation
+  * Prevent non-str values from being concatenated with +
+  * Python 3.6 invalid escape sequence deprecation fixes
+  * Remove mid from JournalHandler 
+  * replace dict.iteritems() with dict.items() to support py3
+  * setup.py: allow LIBSYSTEMD_VERSION to be overridden
+  * test_daemon: xfail test_notify_with_socket if bind() fails
+  * test_journal: add tests for MESSAGE_ID passing
+  * tests: move login tests from doctest to separate file
+  * tests: skip journal.stream tests on ENOENT error
+  * Update to constants from systemd-233
+  * util: add compatibility for old glibc
+
+---

Old:

  python-systemd-233.tar.gz

New:

  exclude-tests-on-obs.patch
  python-systemd-234.tar.gz



Other differences:
--
++ python-systemd.spec ++
--- /var/tmp/diff_new_pack.2kIhLL/_old  2017-07-04 11:56:24.774099498 +0200
+++ /var/tmp/diff_new_pack.2kIhLL/_new  2017-07-04 11:56:24.778098936 +0200
@@ -17,13 +17,15 @@
 
 
 Name:   python-systemd
-Version:233
+Version:234
 Release:0
 Summary:Python wrappers for systemd functionality
 License:LGPL-2.1+
 Group:  Development/Languages/Python
 Url:https://github.com/systemd/python-systemd
 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:  fdupes
 BuildRequires:  gcc-c++
 BuildRequires:  pkgconfig
@@ -35,9 +37,10 @@
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 
 %package doc
-Summary:Documentation for %name
+Summary:Documentation for python-systemd
+# FIXME: use correct group, see 
"https://en.opensuse.org/openSUSE:Package_group_guidelines";
 Group:  Documentation
-Requires:   %name = %version
+Requires:   %{name} = %{version}
 
 %description
 Python module for native access to the systemd facilities. Functionality is 
seperated into a number of modules:
@@ -47,24 +50,23 @@
 * systemd.login wraps parts of libsystemd used to query logged in users and 
available seats and machines.
 
 %description doc
-Documentation and help files for %name
+Documentation and help files for python-systemd.
 
 %prep
 %setup -q
+%patch100 -p1
 
 %build
 make %{?_smp_mflags} build
-make sphinx-html
-%{__rm} -r build/html/.buildinfo build/html/.doctrees build/html/_sources
+make %{?_smp_mflags} sphinx-html
+rm -r build/html/.buildinfo build/html/.doctrees build/html/_sources
 
 %install
 %make_install
 %fdupes %{buildroot}/%{python_sitearch}
 
 %check
-# run doc-tests only when socket is available
-test -f /run/systemd/journal/stdout || sed -i 's/--doc

commit python-systemd for openSUSE:Factory

2017-06-20 Thread root
Hello community,

here is the log from the commit of package python-systemd for openSUSE:Factory 
checked in at 2017-06-20 09:33:15

Comparing /work/SRC/openSUSE:Factory/python-systemd (Old)
 and  /work/SRC/openSUSE:Factory/.python-systemd.new (New)


Package is "python-systemd"

Tue Jun 20 09:33:15 2017 rev:4 rq:503939 version:233

Changes:

--- /work/SRC/openSUSE:Factory/python-systemd/python-systemd.changes
2017-01-25 23:25:30.539113522 +0100
+++ /work/SRC/openSUSE:Factory/.python-systemd.new/python-systemd.changes   
2017-06-20 09:33:17.408177671 +0200
@@ -1,0 +2,15 @@
+Mon Jun 12 05:34:47 UTC 2017 - f...@suse.com
+
+- Upgrade to release 233:
+  + Tests are fixed and should pass on various old and new systems
+alike.
+  + journal.stream() can be used without arguments and defaults to
+LOG_LEVEL.
+- Changes from version 232:
+  + Wrappers for sd_journal_enumerate_unique, has_runtime_files,
+has_peristent_files.
+  + sd_journal_open_directory_fd, sd_journal_open_files_fd can be
+used by passing file descriptors to the initializer as the path
+or files arguments.
+
+---

Old:

  python-systemd-231.tar.gz

New:

  python-systemd-233.tar.gz



Other differences:
--
++ python-systemd.spec ++
--- /var/tmp/diff_new_pack.bj1e4R/_old  2017-06-20 09:33:19.175928284 +0200
+++ /var/tmp/diff_new_pack.bj1e4R/_new  2017-06-20 09:33:19.175928284 +0200
@@ -17,7 +17,7 @@
 
 
 Name:   python-systemd
-Version:231
+Version:233
 Release:0
 Summary:Python wrappers for systemd functionality
 License:LGPL-2.1+

++ python-systemd-231.tar.gz -> python-systemd-233.tar.gz ++
 1770 lines of diff (skipped)




commit python-systemd for openSUSE:Factory

2017-01-25 Thread root
Hello community,

here is the log from the commit of package python-systemd for openSUSE:Factory 
checked in at 2017-01-25 23:25:29

Comparing /work/SRC/openSUSE:Factory/python-systemd (Old)
 and  /work/SRC/openSUSE:Factory/.python-systemd.new (New)


Package is "python-systemd"

Changes:

--- /work/SRC/openSUSE:Factory/python-systemd/python-systemd.changes
2015-11-08 11:26:32.0 +0100
+++ /work/SRC/openSUSE:Factory/.python-systemd.new/python-systemd.changes   
2017-01-25 23:25:30.539113522 +0100
@@ -1,0 +2,5 @@
+Mon Jan  2 11:48:12 UTC 2017 - sebix+novell@sebix.at
+
+- add doc package
+
+---



Other differences:
--
++ python-systemd.spec ++
--- /var/tmp/diff_new_pack.9sAQJP/_old  2017-01-25 23:25:30.899059254 +0100
+++ /var/tmp/diff_new_pack.9sAQJP/_new  2017-01-25 23:25:30.903058650 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-systemd
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -27,12 +27,18 @@
 BuildRequires:  fdupes
 BuildRequires:  gcc-c++
 BuildRequires:  pkgconfig
+BuildRequires:  python-Sphinx
 BuildRequires:  python-devel
 BuildRequires:  python-pytest
 BuildRequires:  python-setuptools
 BuildRequires:  systemd-devel
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 
+%package doc
+Summary:Documentation for %name
+Group:  Documentation
+Requires:   %name = %version
+
 %description
 Python module for native access to the systemd facilities. Functionality is 
seperated into a number of modules:
 * systemd.journal supports sending of structured messages to the journal and 
reading journal files,
@@ -40,11 +46,16 @@
 * 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
+Documentation and help files for %name
+
 %prep
 %setup -q
 
 %build
 make %{?_smp_mflags} build
+make sphinx-html
+%{__rm} -r build/html/.buildinfo build/html/.doctrees build/html/_sources
 
 %install
 %make_install
@@ -60,4 +71,7 @@
 %doc LICENSE.txt README.md
 %{python_sitearch}/*
 
+%files doc
+%doc build/html
+
 %changelog




commit python-systemd for openSUSE:Factory

2015-11-08 Thread h_root
Hello community,

here is the log from the commit of package python-systemd for openSUSE:Factory 
checked in at 2015-11-08 11:26:30

Comparing /work/SRC/openSUSE:Factory/python-systemd (Old)
 and  /work/SRC/openSUSE:Factory/.python-systemd.new (New)


Package is "python-systemd"

Changes:

--- /work/SRC/openSUSE:Factory/python-systemd/python-systemd.changes
2015-10-30 13:43:03.0 +0100
+++ /work/SRC/openSUSE:Factory/.python-systemd.new/python-systemd.changes   
2015-11-08 11:26:32.0 +0100
@@ -1,0 +2,27 @@
+Sat Oct 31 21:17:21 UTC 2015 - jweberho...@weberhofer.at
+
+- Upgrade to release 231
+
+  * Various build fixes and cleanups: documentation can be generated with 'make
+sphinx-html', pip install works out of the box.
+
+  * Tests that cover most of the python code were added. As a result, a bug in
+sd_is_mq was fixed in systemd 227.
+
+  * Functions sd_pid_notify and sd_pid_notify_with_fds are now wrapped as
+optional arguments to notify(), when compiled against a new-enough
+libsystemd.
+
+- Run tests
+
+- Removed obsolete python-systemd-libraries-for-opensuse-1310.patch patch
+
+- New build dependencies had been added
+
+---
+Thu Oct 22 06:47:42 UTC 2015 - jweberho...@weberhofer.at
+
+- python-systemd-libraries-for-opensuse-1310.patch allows compilation
+  on openSUSE 13.1
+
+---

Old:

  python-systemd-v230.tar.gz

New:

  python-systemd-231.tar.gz



Other differences:
--
++ python-systemd.spec ++
--- /var/tmp/diff_new_pack.SKJ0Lg/_old  2015-11-08 11:26:33.0 +0100
+++ /var/tmp/diff_new_pack.SKJ0Lg/_new  2015-11-08 11:26:33.0 +0100
@@ -17,16 +17,18 @@
 
 
 Name:   python-systemd
-Version:230
+Version:231
 Release:0
 Summary:Python wrappers for systemd functionality
 License:LGPL-2.1+
 Group:  Development/Languages/Python
 Url:https://github.com/systemd/python-systemd
-Source: 
https://github.com/systemd/%{name}/archive/v%{version}.tar.gz#/%{name}-v%{version}.tar.gz
+Source: 
https://github.com/systemd/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
 BuildRequires:  fdupes
 BuildRequires:  gcc-c++
+BuildRequires:  pkgconfig
 BuildRequires:  python-devel
+BuildRequires:  python-pytest
 BuildRequires:  python-setuptools
 BuildRequires:  systemd-devel
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
@@ -42,13 +44,17 @@
 %setup -q
 
 %build
-make %{?_smp_mflags} systemd/id128-constants.h
-python setup.py build
+make %{?_smp_mflags} build
 
 %install
-python setup.py install -O1 --skip-build --prefix=%{_prefix} 
--root=%{buildroot}
+%make_install
 %fdupes %{buildroot}/%{python_sitearch}
 
+%check
+# run doc-tests only when socket is available
+test -f /run/systemd/journal/stdout || sed -i 's/--doctest[^ ]*//g' pytest.ini
+make %{?_smp_mflags} check || :
+
 %files
 %defattr(-,root,root,-)
 %doc LICENSE.txt README.md

++ python-systemd-v230.tar.gz -> python-systemd-231.tar.gz ++
 3020 lines of diff (skipped)