public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/slrn] epel10: Create news user and group on installation
@ 2026-10-14 13:16
0 siblings, 0 replies; only message in thread
From: @ 2026-10-14 13:16 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/slrn
Branch : epel10
Commit : 2f495462a21d700aa5a05eb0f7c9e55af7dd8dd3
Author : Petr Písař <ppisar@redhat.com>
Date : 2013-02-11T11:06:07+01:00
Stats : +9/-0 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/slrn/c/2f495462a21d700aa5a05eb0f7c9e55af7dd8dd3?branch=epel10
Log:
Create news user and group on installation
---
diff --git a/slrn.spec b/slrn.spec
index 15cb141..fcd5b11 100644
--- a/slrn.spec
+++ b/slrn.spec
@@ -15,6 +15,7 @@ BuildRequires: inews
BuildRequires: nss-devel
BuildRequires: nss_compat_ossl-devel
BuildRequires: slang-devel >= 2.1
+Requires(pre): shadow-utils
%description
SLRN is a threaded Internet news reader. SLRN is highly customizable
@@ -72,6 +73,13 @@ chmod 644 doc/slrnpull/* contrib/*
# remove unpackaged files from the buildroot
rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/slrn
+# Static UID and GID defined by /usr/share/doc/setup-*/uidgid
+%pre
+getent group news >/dev/null || groupadd -r -g 13 news
+getent passwd news >/dev/null || \
+ useradd -r -u 9 -g news -d / -s /sbin/nologin -c "news user" news
+exit 0
+
%files -f %{name}.lang
%doc COPYING COPYRIGHT changes.txt README
%doc doc/FAQ doc/FIRST_STEPS doc/README.* doc/THANKS doc/*.txt doc/slrn*.html
@@ -94,6 +102,7 @@ rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/slrn
%changelog
* Mon Feb 11 2013 Petr Pisar <ppisar@redhat.com> - 1.0.1-2
- Improve README.rpm-slrnpull spelling
+- Create news user and group on installation
* Tue Jan 08 2013 Petr Pisar <ppisar@redhat.com> - 1.0.1-1
- 1.0.1 bump
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-14 13:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-14 13:16 [rpms/slrn] epel10: Create news user and group on installation
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox