]> git.pld-linux.org Git - packages/iputils.git/commitdiff
- BR docbook-style-xsl, added systemd bcond to allow building on systems
authorMarcin Krol <hawk@tld-linux.org>
Sun, 9 May 2021 21:12:21 +0000 (23:12 +0200)
committerMarcin Krol <hawk@tld-linux.org>
Sun, 9 May 2021 21:12:21 +0000 (23:12 +0200)
  without systemd (unit files are not installed if systemd is not found)

iputils.spec

index 04bfcda0306cd26bfffea64eb23a414eb1850327..79a07adb0a0792a385b2635327033de97fa4755b 100644 (file)
@@ -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@.service
 %{systemdunitdir}/rdisc.service
+%endif
 
 %files -n ping
 %defattr(644,root,root,755)
This page took 0.133113 seconds and 4 git commands to generate.