[packages/iputils] - BR docbook-style-xsl, added systemd bcond to allow building on systems without systemd (unit fil

hawk hawk at pld-linux.org
Sun May 9 23:13:39 CEST 2021


commit c0c76e5a4ed25133a3bc8b1749d1ebbf542b2b1e
Author: Marcin Krol <hawk at tld-linux.org>
Date:   Sun May 9 23:12:21 2021 +0200

    - BR docbook-style-xsl, added systemd bcond to allow building on systems
      without systemd (unit files are not installed if systemd is not found)

 iputils.spec | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/iputils.spec b/iputils.spec
index 04bfcda..79a07ad 100644
--- a/iputils.spec
+++ b/iputils.spec
@@ -1,3 +1,4 @@
+%bcond_without	systemd	# systemd
 Summary:	Utilities for IPv4/IPv6 networking
 Summary(pl.UTF-8):	Użytki przeznaczone dla pracy z siecią IPv4/IPv6
 Summary(ru.UTF-8):	Набор базовых сетевых утилит (ping, tracepath etc.)
@@ -15,6 +16,7 @@ Source0:	https://github.com/iputils/iputils/archive/%{version}.tar.gz
 Patch0:		%{name}-libcap.patch
 URL:		https://github.com/iputils/iputils
 BuildRequires:	docbook-dtd31-sgml
+BuildRequires:	docbook-style-xsl
 BuildRequires:	docbook-utils >= 0.6.10
 BuildRequires:	gcc >= 5:3.2
 BuildRequires:	gettext-tools
@@ -155,9 +157,11 @@ rm -rf $RPM_BUILD_ROOT
 %{_mandir}/man8/tracepath4.8*
 %{_mandir}/man8/tracepath6.8*
 %{_mandir}/man8/traceroute6.8*
+%if %{with systemd}
 %{systemdunitdir}/ninfod.service
 %{systemdunitdir}/rarpd at .service
 %{systemdunitdir}/rdisc.service
+%endif
 
 %files -n ping
 %defattr(644,root,root,755)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/iputils.git/commitdiff/c0c76e5a4ed25133a3bc8b1749d1ebbf542b2b1e



More information about the pld-cvs-commit mailing list