Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions root/ppg/common/deps/python3-systemd/obs/_service
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<services>
<service name="obs_scm">
<param name="url">https://github.com/systemd/python-systemd.git</param>
<param name="scm">git</param>
<param name="revision">v235</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="versionrewrite-pattern">v(.*)</param>
<param name="filename">python3-systemd</param>
</service>
<service mode="buildtime" name="tar" />
<service mode="buildtime" name="recompress">
<param name="file">*.tar</param>
<param name="compression">gz</param>
</service>
<service mode="buildtime" name="set_version" />
</services>
14 changes: 14 additions & 0 deletions root/ppg/common/deps/python3-systemd/package.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
title: python3.12-systemd
description: Python interface for libsystemd, built for the python3.12 stream needed by percona-patroni on UBI containers
build:
RockyLinux_8: false
RockyLinux_9: false
RockyLinux_10: false
Debian_11: false
Debian_12: false
Debian_13: false
Ubuntu_22.04: false
Ubuntu_24.04: false
Ubuntu_26.04: false
openSUSE_Tumbleweed: false
openSUSE_Leap_16: false
41 changes: 41 additions & 0 deletions root/ppg/common/deps/python3-systemd/rpm/python3-systemd.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
%global debug_package %{nil}

%global __ospython %{_bindir}/python3.12

Name: python3.12-systemd
Version: 235
Release: 1%{?dist}
Summary: Python interface for libsystemd
License: LGPL-2.1-or-later
URL: https://github.com/systemd/python-systemd
Source0: python3-systemd-%{version}.tar.gz

BuildRequires: gcc
BuildRequires: pkgconfig
BuildRequires: systemd-devel
BuildRequires: python3.12-devel
BuildRequires: python3.12-setuptools

Provides: python3-systemd = %{version}-%{release}

%description
Python module for native access to libsystemd facilities: sending
structured messages to the journal, reading journal files, and querying
machine/boot identifiers. Needed by percona-patroni for systemd notify
support under the python3.12 interpreter stream.

%prep
%setup -q -n python3-systemd-%{version}

%build
%{__ospython} setup.py build

%install
%{__ospython} setup.py install --single-version-externally-managed -O1 --root=%{buildroot} --record=INSTALLED_FILES

%files -f INSTALLED_FILES
%license LICENSE.txt

%changelog
* Tue Sep 01 2026 Percona Development Team <info@percona.com> - 235-1
- Initial build of python-systemd 235 for python3.12 (needed by percona-patroni)
Loading