public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/slrn] epel10: Create news user and group on installation
Date: Wed, 14 Oct 2026 13:16:32 GMT [thread overview]
Message-ID: <179198379253.1.6986661909433816544.rpms-slrn-2f495462a21d@fedoraproject.org> (raw)
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
reply other threads:[~2026-10-14 13:16 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179198379253.1.6986661909433816544.rpms-slrn-2f495462a21d@fedoraproject.org \
--to=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox