[packages/procps] - use __mv macro, added elogind bcond
qboosh
qboosh at pld-linux.org
Wed Nov 21 17:16:03 CET 2018
commit 8d3bc5a9186cb63825c8b95488164408932a71da
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Wed Nov 21 17:20:15 2018 +0100
- use __mv macro, added elogind bcond
procps.spec | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/procps.spec b/procps.spec
index b508632..3e6ed9f 100644
--- a/procps.spec
+++ b/procps.spec
@@ -5,9 +5,13 @@
# Conditional build:
%bcond_without systemd # systemd support
+%bcond_with elogind # elogind support (instead of systemd)
%bcond_with selinux # libselinux support (get ps context values from dynamically loaded libselinux.so.1 instead of /proc/*/attr/current)
%bcond_with tests # run tests. The testsuite is unsuitable for running on buildsystems
+%if %{with elogind}
+%undefine with_systemd
+%endif
Summary: Utilities for monitoring your system and processes on your system
Summary(de.UTF-8): Utilities zum Ueberwachen Ihres Systems und der Prozesse
Summary(es.UTF-8): Utilitarios de monitoración de procesos
@@ -36,6 +40,7 @@ URL: https://gitlab.com/procps-ng/procps
BuildRequires: autoconf >= 2.69
BuildRequires: automake >= 1:1.11
%{?with_tests:BuildRequires: dejagnu}
+%{?with_elogind:BuildRequires: elogind-devel}
BuildRequires: gettext-tools >= 0.14.1
%{?with_selinux:BuildRequires: libselinux-devel}
BuildRequires: libtool >= 2:2
@@ -155,6 +160,7 @@ Statyczna wersja biblioteki libproc.
%{__automake}
%configure \
--disable-silent-rules \
+ %{?with_elogind:--with-elogind} \
%{?with_systemd:--with-systemd} \
%{?with_selinux:--enable-libselinux} \
--disable-pidof \
@@ -181,10 +187,10 @@ install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},/%{_lib},/bin}
ln -f $RPM_BUILD_ROOT%{_bindir}/{pkill,pgrep}
ln -f $RPM_BUILD_ROOT%{_bindir}/{snice,skill}
-mv $RPM_BUILD_ROOT{%{_bindir},/bin}/ps
+%{__mv} $RPM_BUILD_ROOT{%{_bindir},/bin}/ps
install -d $RPM_BUILD_ROOT/%{_lib}
-mv -f $RPM_BUILD_ROOT{%{_libdir}/libprocps.so.*,/%{_lib}}
+%{__mv} $RPM_BUILD_ROOT{%{_libdir}/libprocps.so.*,/%{_lib}}
ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libprocps.so.*.*.*) \
$RPM_BUILD_ROOT%{_libdir}/libprocps.so
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/procps.git/commitdiff/8d3bc5a9186cb63825c8b95488164408932a71da
More information about the pld-cvs-commit
mailing list