2015-10-19 13:43:09 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-systemd
|
|
|
|
#
|
2020-02-02 15:13:23 +01:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
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.
|
|
|
|
|
2020-02-02 15:13:23 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2015-10-19 13:43:09 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2017-10-10 14:48:07 +02:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
%bcond_without test
|
2015-10-19 13:43:09 +02:00
|
|
|
Name: python-systemd
|
2017-06-29 17:53:14 +02:00
|
|
|
Version: 234
|
2015-10-19 13:43:09 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Python wrappers for systemd functionality
|
2020-02-02 15:13:23 +01:00
|
|
|
License: LGPL-2.1-or-later
|
2015-10-19 13:43:09 +02:00
|
|
|
Group: Development/Languages/Python
|
2020-02-02 15:13:23 +01:00
|
|
|
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
|
2017-11-06 19:16:16 +01:00
|
|
|
# PATCH-FIX-OPENSUSE iso-c-90.patch makes the building iso-c-90 compatible to allow building on SLE12 SP3
|
|
|
|
Patch1: iso-c-90.patch
|
2017-06-29 17:53:14 +02:00
|
|
|
# PATCH-FIX-OPENSUSE exclude-tests-on-obs.patch removes a test when running tests at OBS. Should be removed as soon as OBS is fixed
|
|
|
|
Patch100: exclude-tests-on-obs.patch
|
2022-07-03 23:02:04 +02:00
|
|
|
# PATCH-FIX-UPSTREAM reader: make PY_SSIZE_T_CLEAN
|
|
|
|
Patch101: 0002-reader-make-PY_SSIZE_T_CLEAN.patch
|
2017-10-10 14:48:07 +02:00
|
|
|
BuildRequires: %{python_module devel}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
2015-10-19 13:43:09 +02:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: gcc-c++
|
2015-11-05 12:46:11 +01:00
|
|
|
BuildRequires: pkgconfig
|
2017-10-10 14:48:07 +02:00
|
|
|
BuildRequires: python-rpm-macros
|
2020-02-02 15:13:23 +01:00
|
|
|
BuildRequires: pkgconfig(libsystemd)
|
2017-10-10 14:48:07 +02:00
|
|
|
Requires: systemd
|
|
|
|
Suggests: %{name}-doc
|
|
|
|
# /SECTION
|
|
|
|
%if %{with test}
|
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
%endif
|
|
|
|
%python_subpackages
|
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.
|
|
|
|
|
|
|
|
%prep
|
2022-07-03 23:02:04 +02:00
|
|
|
%autosetup -p1
|
2015-10-19 13:43:09 +02:00
|
|
|
|
|
|
|
%build
|
2017-11-14 14:24:38 +01:00
|
|
|
%python_build
|
2015-10-19 13:43:09 +02:00
|
|
|
|
|
|
|
%install
|
2017-11-14 14:24:38 +01:00
|
|
|
%python_install
|
|
|
|
%fdupes %{buildroot}
|
2015-10-19 13:43:09 +02:00
|
|
|
|
2017-10-10 14:48:07 +02:00
|
|
|
%if %{with test}
|
2015-11-05 12:46:11 +01:00
|
|
|
%check
|
2017-11-14 14:24:38 +01:00
|
|
|
%python_exec setup.py check
|
2017-10-10 14:48:07 +02:00
|
|
|
%endif
|
2015-11-05 12:46:11 +01:00
|
|
|
|
2017-10-10 14:48:07 +02:00
|
|
|
%files %{python_files}
|
2015-10-19 13:43:09 +02:00
|
|
|
%doc LICENSE.txt README.md
|
|
|
|
%{python_sitearch}/*
|
|
|
|
|
|
|
|
%changelog
|