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
This commit is contained in:
Denisart Benjamin 2015-10-19 11:43:09 +00:00 committed by Git OBS Bridge
commit 7b276e7820
5 changed files with 92 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:656a83ff695f5de7d63411a86ea38601ad5a918595eebd0817d7b8e68642c64d
size 39329

8
python-systemd.changes Normal file
View File

@ -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

57
python-systemd.spec Normal file
View File

@ -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