2015-10-19 13:43:09 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-systemd
|
|
|
|
#
|
2017-01-17 17:17:51 +01:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2015-10-19 13:43:09 +02:00
|
|
|
#
|
|
|
|
# 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
|
2017-06-15 14:00:25 +02:00
|
|
|
Version: 233
|
2015-10-19 13:43:09 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Python wrappers for systemd functionality
|
|
|
|
License: LGPL-2.1+
|
|
|
|
Group: Development/Languages/Python
|
|
|
|
Url: https://github.com/systemd/python-systemd
|
2015-11-05 12:46:11 +01:00
|
|
|
Source: https://github.com/systemd/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2015-10-19 13:43:09 +02:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: gcc-c++
|
2015-11-05 12:46:11 +01:00
|
|
|
BuildRequires: pkgconfig
|
2017-01-17 17:17:51 +01:00
|
|
|
BuildRequires: python-Sphinx
|
2015-10-19 13:43:09 +02:00
|
|
|
BuildRequires: python-devel
|
2015-11-05 12:46:11 +01:00
|
|
|
BuildRequires: python-pytest
|
2015-10-19 13:43:09 +02:00
|
|
|
BuildRequires: python-setuptools
|
|
|
|
BuildRequires: systemd-devel
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
2017-01-17 17:17:51 +01:00
|
|
|
%package doc
|
|
|
|
Summary: Documentation for %name
|
|
|
|
Group: Documentation
|
|
|
|
Requires: %name = %version
|
|
|
|
|
2015-10-19 13:43:09 +02:00
|
|
|
%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.
|
|
|
|
|
2017-01-17 17:17:51 +01:00
|
|
|
%description doc
|
|
|
|
Documentation and help files for %name
|
|
|
|
|
2015-10-19 13:43:09 +02:00
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2015-11-05 12:46:11 +01:00
|
|
|
make %{?_smp_mflags} build
|
2017-01-17 17:17:51 +01:00
|
|
|
make sphinx-html
|
|
|
|
%{__rm} -r build/html/.buildinfo build/html/.doctrees build/html/_sources
|
2015-10-19 13:43:09 +02:00
|
|
|
|
|
|
|
%install
|
2015-11-05 12:46:11 +01:00
|
|
|
%make_install
|
2015-10-19 13:43:09 +02:00
|
|
|
%fdupes %{buildroot}/%{python_sitearch}
|
|
|
|
|
2015-11-05 12:46:11 +01:00
|
|
|
%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 || :
|
|
|
|
|
2015-10-19 13:43:09 +02:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc LICENSE.txt README.md
|
|
|
|
%{python_sitearch}/*
|
|
|
|
|
2017-01-17 17:17:51 +01:00
|
|
|
%files doc
|
|
|
|
%doc build/html
|
|
|
|
|
2015-10-19 13:43:09 +02:00
|
|
|
%changelog
|