Accepting request 342545 from devel:languages:python

1

OBS-URL: https://build.opensuse.org/request/show/342545
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-systemd?expand=0&rev=2
This commit is contained in:
Dominique Leuenberger 2015-11-08 10:26:30 +00:00 committed by Git OBS Bridge
commit 98b715fa31
4 changed files with 41 additions and 8 deletions

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2c9cf53d041374898beead0c6f3b042c7d5b52425e6eb4d4b3c583d7eac12eea
size 44430

View File

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

View File

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

View File

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