14
0

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
This commit is contained in:
Denisart Benjamin
2015-11-05 11:46:11 +00:00
committed by Git OBS Bridge
parent 2240333bad
commit c74e1c12eb
4 changed files with 41 additions and 8 deletions

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