public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/openarc] f43: Fix user/group creation for older releases
@ 2026-09-28 19:21 Xavier Bachelot
0 siblings, 0 replies; only message in thread
From: Xavier Bachelot @ 2026-09-28 19:21 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/openarc
Branch : f43
Commit : 30ac48e53a353bfcdc8df790df866c23bd265a11
Author : Xavier Bachelot <xavier@bachelot.org>
Date : 2026-02-20T13:58:05+01:00
Stats : +13/-9 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/openarc/c/30ac48e53a353bfcdc8df790df866c23bd265a11?branch=f43
Log:
Fix user/group creation for older releases
---
diff --git a/openarc-sysusers.conf b/openarc-sysusers.conf
new file mode 100644
index 0000000..3700558
--- /dev/null
+++ b/openarc-sysusers.conf
@@ -0,0 +1,3 @@
+#Type Name ID GECOS Home directory Shell
+u openarc - - /var/lib/openarc -
+m openarc mail
diff --git a/openarc.spec b/openarc.spec
index ea1267f..3c809a4 100644
--- a/openarc.spec
+++ b/openarc.spec
@@ -1,4 +1,4 @@
-%global baserelease 1
+%global baserelease 2
#global pre_rel Beta3
Summary: An open source library and milter for providing ARC service
@@ -9,6 +9,7 @@ Release: %{?pre_rel:0.}%{baserelease}%{?pre_rel:.%pre_rel}%{?dist}
License: LicenseRef-Callaway-BSD AND Sendmail-8.23
URL: https://github.com/flowerysong/OpenARC
Source0: %{url}/releases/download/v%{version}/%{name}-%{version}.tar.gz
+Source1: openarc-sysusers.conf
BuildRequires: autoconf
BuildRequires: automake
@@ -25,6 +26,7 @@ BuildRequires: systemd-rpm-macros
%else
BuildRequires: systemd
%endif
+%{?sysusers_requires_compat}
Requires: lib%{name}%{?_isa} = %{version}-%{release}
@@ -57,13 +59,6 @@ required for developing applications against libopenarc.
%prep
%autosetup -p1
-# Previously, a non-system group was created :(, sysusers does not support this
-# Create a sysusers.d config file
-cat >openarc.sysusers.conf <<EOF
-u openarc - - %{_localstatedir}/lib/%{name} -
-m openarc mail
-EOF
-
%build
%if 0%{?fedora} >= 42
@@ -115,9 +110,12 @@ chmod 0640 %{buildroot}%{_sysconfdir}/%{name}/PeerList
install -d -m 0755 %{buildroot}%{_unitdir}
install -m 0644 contrib/systemd/openarc.service %{buildroot}%{_unitdir}/
-install -m0644 -D openarc.sysusers.conf %{buildroot}%{_sysusersdir}/openarc.conf
+install -m0644 -D %{SOURCE1} %{buildroot}%{_sysusersdir}/openarc.conf
+%pre
+%sysusers_create_compat %{SOURCE1}
+
%post
%systemd_post %{name}.service
@@ -157,6 +155,9 @@ install -m0644 -D openarc.sysusers.conf %{buildroot}%{_sysusersdir}/openarc.conf
%changelog
+* Fri Feb 20 2026 Xavier Bachelot <xavier@bachelot.org> - 1.3.0-2
+- Fix user/group creation for older releases
+
* Wed Feb 04 2026 Xavier Bachelot <xavier@bachelot.org> - 1.3.0-1
- Update to 1.3.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-28 19:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-28 19:21 [rpms/openarc] f43: Fix user/group creation for older releases Xavier Bachelot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox