From 7b276e7820c2f3617815f9759da5e25df94ddeb45721e6be847e61fd4bf884d8 Mon Sep 17 00:00:00 2001
From: Denisart Benjamin
Date: Mon, 19 Oct 2015 11:43:09 +0000
Subject: [PATCH] Accepting request 339774 from
home:weberho:branches:devel:languages:python
* Updated changelog
* do not longer require systemd during build
* this version does not build with opensuse 13.1
OBS-URL: https://build.opensuse.org/request/show/339774
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-systemd?expand=0&rev=1
---
.gitattributes | 23 +++++++++++++++
.gitignore | 1 +
python-systemd-v230.tar.gz | 3 ++
python-systemd.changes | 8 ++++++
python-systemd.spec | 57 ++++++++++++++++++++++++++++++++++++++
5 files changed, 92 insertions(+)
create mode 100644 .gitattributes
create mode 100644 .gitignore
create mode 100644 python-systemd-v230.tar.gz
create mode 100644 python-systemd.changes
create mode 100644 python-systemd.spec
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..9b03811
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,23 @@
+## Default LFS
+*.7z filter=lfs diff=lfs merge=lfs -text
+*.bsp filter=lfs diff=lfs merge=lfs -text
+*.bz2 filter=lfs diff=lfs merge=lfs -text
+*.gem filter=lfs diff=lfs merge=lfs -text
+*.gz filter=lfs diff=lfs merge=lfs -text
+*.jar filter=lfs diff=lfs merge=lfs -text
+*.lz filter=lfs diff=lfs merge=lfs -text
+*.lzma filter=lfs diff=lfs merge=lfs -text
+*.obscpio filter=lfs diff=lfs merge=lfs -text
+*.oxt filter=lfs diff=lfs merge=lfs -text
+*.pdf filter=lfs diff=lfs merge=lfs -text
+*.png filter=lfs diff=lfs merge=lfs -text
+*.rpm filter=lfs diff=lfs merge=lfs -text
+*.tbz filter=lfs diff=lfs merge=lfs -text
+*.tbz2 filter=lfs diff=lfs merge=lfs -text
+*.tgz filter=lfs diff=lfs merge=lfs -text
+*.ttf filter=lfs diff=lfs merge=lfs -text
+*.txz filter=lfs diff=lfs merge=lfs -text
+*.whl filter=lfs diff=lfs merge=lfs -text
+*.xz filter=lfs diff=lfs merge=lfs -text
+*.zip filter=lfs diff=lfs merge=lfs -text
+*.zst filter=lfs diff=lfs merge=lfs -text
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..57affb6
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+.osc
diff --git a/python-systemd-v230.tar.gz b/python-systemd-v230.tar.gz
new file mode 100644
index 0000000..cf7743d
--- /dev/null
+++ b/python-systemd-v230.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:656a83ff695f5de7d63411a86ea38601ad5a918595eebd0817d7b8e68642c64d
+size 39329
diff --git a/python-systemd.changes b/python-systemd.changes
new file mode 100644
index 0000000..ca76883
--- /dev/null
+++ b/python-systemd.changes
@@ -0,0 +1,8 @@
+-------------------------------------------------------------------
+Mon Oct 19 06:20:31 UTC 2015 - jweberhofer@weberhofer.at
+
+- Initial release 230
+
+- This package is needed to resolve
+ bnc#917818 - fail2ban can not use systemd-journal to ban ips
+
diff --git a/python-systemd.spec b/python-systemd.spec
new file mode 100644
index 0000000..f7047eb
--- /dev/null
+++ b/python-systemd.spec
@@ -0,0 +1,57 @@
+#
+# spec file for package python-systemd
+#
+# Copyright (c) 2015 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
+# upon. The license for this file, and modifications and additions to the
+# file, is the same license as for the pristine package itself (unless the
+# license for the pristine package is not an Open Source License, in which
+# case the license is the MIT License). An "Open Source License" is a
+# 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/
+#
+
+
+Name: python-systemd
+Version: 230
+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
+BuildRequires: fdupes
+BuildRequires: gcc-c++
+BuildRequires: python-devel
+BuildRequires: python-setuptools
+BuildRequires: systemd-devel
+BuildRoot: %{_tmppath}/%{name}-%{version}-build
+
+%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,
+* systemd.daemon wraps parts of libsystemd useful for writing daemons and socket activation,
+* 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.
+
+%prep
+%setup -q
+
+%build
+make %{?_smp_mflags} systemd/id128-constants.h
+python setup.py build
+
+%install
+python setup.py install -O1 --skip-build --prefix=%{_prefix} --root=%{buildroot}
+%fdupes %{buildroot}/%{python_sitearch}
+
+%files
+%defattr(-,root,root,-)
+%doc LICENSE.txt README.md
+%{python_sitearch}/*
+
+%changelog