]> git.pld-linux.org Git - packages/cacti-spine.git/commitdiff
add bcond for linux caps
authorElan Ruusamäe <glen@delfi.ee>
Tue, 19 Jan 2016 11:06:49 +0000 (13:06 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Tue, 19 Jan 2016 11:07:00 +0000 (13:07 +0200)
cacti-spine.spec

index e15296bcd5a57881b212b9b54ef23bdb17bc093c..e4e366428996957f2f55337420bed3f27c1ec525 100644 (file)
@@ -3,6 +3,9 @@
 #spine.o: In function `drop_root':
 #/home/users/glen/rpm/packages/BUILD.x86_64-linux/cacti-spine-0.8.8f/spine.c:133: undefined reference to `cap_from_text'
 # - http://bugs.cacti.net/view.php?id=2650
+#
+# Conditional build:
+%bcond_without cap             # Enable support for the Linux Capabilities (default: disabled)
 
 Summary:       A backend data gatherer for Cacti
 Summary(pl.UTF-8):     Backend gromadzący dane dla Cacti
@@ -19,7 +22,7 @@ Patch1:               x32.patch
 URL:           http://www.cacti.net/
 BuildRequires: autoconf
 BuildRequires: automake
-BuildRequires: libcap-devel
+%{?with_cap:BuildRequires:     libcap-devel}
 BuildRequires: libtool
 BuildRequires: mysql-devel
 BuildRequires: net-snmp-devel
@@ -62,7 +65,7 @@ chmod +x ./configure
 %configure \
        --with-results-buffer=4096 \
        --with-mysql \
-       --enable-lcap \
+       %{__enable_disable cap lcap} \
        --with-snmp=%{_prefix}
 %{__make}
 
This page took 0.039226 seconds and 4 git commands to generate.