[packages/open-isns] - disable systemd install scripts if building without
qboosh
qboosh at pld-linux.org
Sat Sep 21 14:12:29 CEST 2024
commit e723b548140bbff724b4d565aea61a12df117034
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Sep 21 14:15:21 2024 +0200
- disable systemd install scripts if building without
open-isns.spec | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/open-isns.spec b/open-isns.spec
index 407e7f7..fffec47 100644
--- a/open-isns.spec
+++ b/open-isns.spec
@@ -1,8 +1,8 @@
# TODO: SysV init script? (Fedora has some old one)
#
# Conditional build:
-%bcond_without static_libs # static libraries
-%bcond_without systemd # systemd
+%bcond_without static_libs # static library
+%bcond_without systemd # systemd units
#
Summary: Partial implementation of iSNS (RFC 4171)
Summary(pl.UTF-8): Częściowa implementacja iSNS (RFC 4171)
@@ -84,6 +84,7 @@ rm -rf $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
+%if %{with systemd}
%post
%systemd_post isnsd.service
@@ -92,6 +93,7 @@ rm -rf $RPM_BUILD_ROOT
%postun
%systemd_postun isnsd.service
+%endif
%post libs -p /sbin/ldconfig
%postun libs -p /sbin/ldconfig
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/open-isns.git/commitdiff/e723b548140bbff724b4d565aea61a12df117034
More information about the pld-cvs-commit
mailing list