From c74e1c12ebe84fe2fd3063c7d69ea1a1aeb16bd7c2138317dc88c89352a85a20 Mon Sep 17 00:00:00 2001
From: Denisart Benjamin
Date: Thu, 5 Nov 2015 11:46:11 +0000
Subject: [PATCH] Accepting request 342543 from
home:weberho:branches:devel:languages:python
Updated changelog
OBS-URL: https://build.opensuse.org/request/show/342543
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-systemd?expand=0&rev=3
---
python-systemd-231.tar.gz | 3 +++
python-systemd-v230.tar.gz | 3 ---
python-systemd.changes | 27 +++++++++++++++++++++++++++
python-systemd.spec | 16 +++++++++++-----
4 files changed, 41 insertions(+), 8 deletions(-)
create mode 100644 python-systemd-231.tar.gz
delete mode 100644 python-systemd-v230.tar.gz
diff --git a/python-systemd-231.tar.gz b/python-systemd-231.tar.gz
new file mode 100644
index 0000000..1e97d99
--- /dev/null
+++ b/python-systemd-231.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2c9cf53d041374898beead0c6f3b042c7d5b52425e6eb4d4b3c583d7eac12eea
+size 44430
diff --git a/python-systemd-v230.tar.gz b/python-systemd-v230.tar.gz
deleted file mode 100644
index cf7743d..0000000
--- a/python-systemd-v230.tar.gz
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:656a83ff695f5de7d63411a86ea38601ad5a918595eebd0817d7b8e68642c64d
-size 39329
diff --git a/python-systemd.changes b/python-systemd.changes
index ca76883..c3c3118 100644
--- a/python-systemd.changes
+++ b/python-systemd.changes
@@ -1,3 +1,30 @@
+-------------------------------------------------------------------
+Sat Oct 31 21:17:21 UTC 2015 - jweberhofer@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 - jweberhofer@weberhofer.at
+
+- python-systemd-libraries-for-opensuse-1310.patch allows compilation
+ on openSUSE 13.1
+
-------------------------------------------------------------------
Mon Oct 19 06:20:31 UTC 2015 - jweberhofer@weberhofer.at
diff --git a/python-systemd.spec b/python-systemd.spec
index f7047eb..cddb2fc 100644
--- a/python-systemd.spec
+++ b/python-systemd.spec
@@ -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 @@ Python module for native access to the systemd facilities. Functionality is sepe
%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