[packages/logrotate] - require libselinux-utils only with tests
qboosh
qboosh at pld-linux.org
Thu Aug 29 17:35:34 CEST 2013
commit ba301319cdfa11d39dde78ef1cb8d8c7cef95140
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Thu Aug 29 17:35:08 2013 +0200
- require libselinux-utils only with tests
logrotate.spec | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/logrotate.spec b/logrotate.spec
index e4356a3..52aecb1 100644
--- a/logrotate.spec
+++ b/logrotate.spec
@@ -7,7 +7,7 @@
# Conditional build:
%bcond_without acl # build without ACLs support
%bcond_without selinux # build without SELinux support
-%bcond_without tests # do not perform "make test"
+%bcond_without tests # do not perform "make test"
Summary: Rotates, compresses, removes and mails system log files
Summary(de.UTF-8): Rotiert, komprimiert und verschickt Systemlogs
@@ -33,8 +33,10 @@ Patch1: %{name}-man.patch
Patch2: tabooext.patch
URL: https://fedorahosted.org/logrotate/
%{?with_acl:BuildRequires: acl-devel}
-%{?with_selinux:BuildRequires: libselinux-devel}
-%{?with_selinux:BuildRequires: libselinux-utils}
+%if %{with selinux}
+BuildRequires: libselinux-devel
+%{?with_tests:BuildRequires: libselinux-utils}
+%endif
BuildRequires: popt-devel >= 1.3
Requires: coreutils
Requires: crondaemon
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/logrotate.git/commitdiff/ba301319cdfa11d39dde78ef1cb8d8c7cef95140
More information about the pld-cvs-commit
mailing list