From f83a9ec61bf45abd92c14ad1715a5a2275e36764973e5592c82b82eba5a21842 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 26 Feb 2024 14:32:22 +0000 Subject: [PATCH] Accepting request 1150191 from openSUSE:infrastructure:mailman3 - Split out system user (needed for other packages shipping directories/files owned by hyperkitty) and switch to sysusers - Build for Python 3.12 (to restore compatibility with Mailman) OBS-URL: https://build.opensuse.org/request/show/1150191 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:mailman/python-HyperKitty?expand=0&rev=76 --- python-HyperKitty.changes | 5 +++++ python-HyperKitty.spec | 31 +++++++++++++++++++++++++------ 2 files changed, 30 insertions(+), 6 deletions(-) diff --git a/python-HyperKitty.changes b/python-HyperKitty.changes index 6eaad14..ed28958 100644 --- a/python-HyperKitty.changes +++ b/python-HyperKitty.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Feb 24 20:34:06 UTC 2024 - Georg Pfuetzenreuter + +- Split out system user + ------------------------------------------------------------------- Fri Feb 23 22:20:00 UTC 2024 - Georg Pfuetzenreuter diff --git a/python-HyperKitty.spec b/python-HyperKitty.spec index 929c588..0809f3a 100644 --- a/python-HyperKitty.spec +++ b/python-HyperKitty.spec @@ -41,6 +41,7 @@ %global webapps_dir /srv/www/webapps %global hyperkitty_pkgname HyperKitty +%global lowname hyperkitty %global hyperkitty_basedir %{webapps_dir}/mailman/hyperkitty %global hyperkitty_localedir %{hyperkitty_basedir}/locale @@ -182,8 +183,7 @@ Requires: %{hyperkitty_pkgname} Requires: acl Requires: openssl Requires: sudo -Requires(pre): /usr/sbin/groupadd -Requires(pre): /usr/sbin/useradd +Requires: system-user-%{lowname} %description -n %{hyperkitty_pkgname}-web A web user interface for GNU Mailman. @@ -204,6 +204,15 @@ A web user interface for GNU Mailman. This package holds the uwsgi configuration. +%package -n system-user-%{lowname} +Summary: System user for HyperKitty +BuildArch: noarch +BuildRequires: sysuser-tools +%sysusers_requires + +%description -n system-user-%{lowname} +System user for HyperKitty. + %prep %setup -n HyperKitty-%{version} cp %{SOURCE30} . @@ -214,6 +223,10 @@ rsync -a example_project/* build_static_files %autopatch -p1 +tee > %{lowname}.sysuser <