public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/inn] epel10: Introduction of systemd rpm macros
@ 2026-08-26  8:06 Jochen Schmitt
  0 siblings, 0 replies; only message in thread
From: Jochen Schmitt @ 2026-08-26  8:06 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/inn
Branch : epel10
Commit : ab93e05d6e8f9c82dc62567e4d8f37e137837fd3
Author : Jochen Schmitt <Jochen@herr-schmitt.de>
Date   : 2012-10-05T19:58:47+02:00
Stats  : +7/-9 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/inn/c/ab93e05d6e8f9c82dc62567e4d8f37e137837fd3?branch=epel10

Log:
Introduction of systemd rpm macros

---
diff --git a/inn.spec b/inn.spec
index 6fdb678..13f138f 100644
--- a/inn.spec
+++ b/inn.spec
@@ -1,7 +1,7 @@
 Summary: The InterNetNews system, an Usenet news server
 Name: inn
 Version: 2.5.3
-Release: 3%{?dist}
+Release: 4%{?dist}
 #see LICENSE file for details
 License: GPLv2+ and BSD and MIT and Public Domain
 Group: System Environment/Daemons
@@ -220,9 +220,7 @@ touch /var/log/news/news.crit
 touch /var/log/news/news.err
 chown -R news:news /var/log/news*
 
-if [ $1 -eq 1 ]; then
-   /bin/systemctl daemon-reload >/dev/null 2>&1 || :
-fi
+%systemd_post innd.service
 
 %post libs -p /sbin/ldconfig
 
@@ -275,18 +273,15 @@ if [ -f /etc/syslog.conf ]; then
 fi
 
 %preun
+%systemd_preun innd.service
 if [ $1 = 0 ]; then
-    /bin/systemctl disable innd.service >/dev/null 2>&1 || :
-    /bin/systemctl --no-reload stop innd.service >/dev/null 2>&1 || :
     if [ -f /var/lib/news/history.dir ]; then
        rm -f /var/lib/news/history.*
     fi
 fi
 
 %postun
-if [ "$1" -ge 1 ]; then
-   /bin/systemctl try-restart innd.service >/dev/null 2>&1 || :
-fi
+%systemd_postun_with_restart innd.service
 
 %postun libs -p /sbin/ldconfig
 
@@ -529,6 +524,9 @@ fi
 %{_mandir}/man1/inews*
 
 %changelog
+* Fri Oct  5 2012 Jochen Schmitt <Jochen herr-schmitt de> - 2.5.3-4
+- Introduction of systemd rpm macros
+
 * Tue Sep 11 2012 Jochen Schmitt <Jochen herr-schmitt de> - 2.5.3-3
 - New release is SMP compilant
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-26  8:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-26  8:06 [rpms/inn] epel10: Introduction of systemd rpm macros Jochen Schmitt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox