Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-postorius for 
openSUSE:Factory checked in at 2024-03-07 22:02:26
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-postorius (Old)
 and      /work/SRC/openSUSE:Factory/.python-postorius.new.1770 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-postorius"

Thu Mar  7 22:02:26 2024 rev:8 rq:1156120 version:1.3.10

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-postorius/python-postorius.changes        
2024-03-04 21:24:46.609613539 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-postorius.new.1770/python-postorius.changes  
    2024-03-07 22:02:53.451814453 +0100
@@ -1,0 +2,6 @@
+Thu Mar  7 09:40:26 UTC 2024 - Andreas Schneider <a...@cryptomilk.org>
+
+- Validate source tarball
+- Split out system user
+
+-------------------------------------------------------------------

New:
----
  postorius-1.3.10.tar.gz.asc
  python-postorius.keyring

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-postorius.spec ++++++
--- /var/tmp/diff_new_pack.363hGQ/_old  2024-03-07 22:02:55.751899071 +0100
+++ /var/tmp/diff_new_pack.363hGQ/_new  2024-03-07 22:02:55.755899219 +0100
@@ -55,8 +55,10 @@
 License:        GPL-3.0-only
 URL:            https://gitlab.com/mailman/postorius
 #
-Source0:        
https://files.pythonhosted.org/packages/source/p/postorius/postorius-%{version}.tar.gz
-Source1:        python-postorius-rpmlintrc
+Source0:        
https://gitlab.com/mailman/postorius/-/releases/v%{version}/downloads/postorius-%{version}.tar.gz
+Source1:        
https://gitlab.com/mailman/postorius/-/releases/v%{version}/downloads/postorius-%{version}.tar.gz.asc
+Source2:        python-postorius.keyring
+Source3:        python-postorius-rpmlintrc
 #
 Source10:       postorius-manage.sh
 Source12:       postorius.uwsgi
@@ -123,8 +125,7 @@
 Requires:       acl
 Requires:       openssl
 Requires:       sudo
-Provides:       user(postorius)
-Provides:       group(postorius)
+Requires:       system-user-%{postorius_pkgname}
 
 %description -n %{postorius_pkgname}-web
 A web user interface for GNU Mailman.
@@ -145,6 +146,15 @@
 
 This package holds the uwsgi configuration.
 
+%package -n system-user-%{postorius_pkgname}
+Summary:        System user for HyperKitty
+BuildArch:      noarch
+BuildRequires:  sysuser-tools
+%sysusers_requires
+
+%description -n system-user-%{postorius_pkgname}
+System user for HyperKitty.
+
 %prep
 %setup -q -n postorius-%{version}
 cp %{SOURCE20} .
@@ -155,6 +165,10 @@
 
 %autopatch -p1
 
+tee > %{postorius_pkgname}.sysuser <<EOF
+u %{postorius_pkgname} - "Postorius" %{postorius_basedir} -
+EOF
+
 %build
 sed -i 's|^#!/usr/bin/env.*|#!%{__mypython}|' \
     example_project/manage.py
@@ -168,6 +182,8 @@
 export PYTHONPATH=$(pwd)/src
 %python_exec build_static_files/manage.py collectstatic --clear --noinput
 
+%sysusers_generate_pre %{postorius_pkgname}.sysuser %{postorius_pkgname}
+
 %install
 %pyproject_install
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
@@ -207,6 +223,9 @@
 install -d -m 0755 %{buildroot}%{_sysconfdir}/uwsgi/vassals
 install -m 0644 %{SOURCE12} 
%{buildroot}%{_sysconfdir}/uwsgi/vassals/postorius.ini
 
+install -d -m 0755 %{buildroot}%{_sysusersdir}
+install -m 0644 %{postorius_pkgname}.sysuser 
%{buildroot}%{_sysusersdir}/%{postorius_pkgname}.conf
+
 %if %{with testsuite}
 %check
 export PYTHONPATH="$(pwd):$(pwd)/src"
@@ -229,6 +248,8 @@
 %{_sbindir}/postorius-manage makemigrations --pythonpath 
/srv/www/webapps/mailman/postorius/ --settings settings
 %{_sbindir}/postorius-manage migrate --pythonpath 
/srv/www/webapps/mailman/postorius/ --settings settings
 
+%pre -n system-user-%{postorius_pkgname} -f %{postorius_pkgname}.pre
+
 %files -n %{postorius_pkgname}
 %doc README.rst example_project src/postorius/doc/*.rst
 %license COPYING
@@ -268,3 +289,6 @@
 %dir %{_sysconfdir}/uwsgi/vassals
 %config (noreplace) %{_sysconfdir}/uwsgi/vassals/postorius.ini
 
+%files -n system-user-%{postorius_pkgname}
+%{_sysusersdir}/%{postorius_pkgname}.conf
+

Reply via email to