]> git.pld-linux.org Git - packages/apcupsd.git/commitdiff
- fixed BR, snmp default off
authormarcus <marcus@pld-linux.org>
Sun, 4 Dec 2005 19:57:20 +0000 (19:57 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apcupsd.spec -> 1.57

apcupsd.spec

index 3f7c589c6674dc8df53e0173fd6b93bf98295c36..b49beaf3d0c58cc504c0917cc39f9b6711030f7c 100644 (file)
@@ -1,15 +1,15 @@
 #
 # Conditional build:
 %bcond_without test    # without TEST support
-%bcond_without usb     # with USB support
-%bcond_without net     # with network support
-%bcond_without snmp    # with SNMP support
+%bcond_without usb     # without USB support
+%bcond_without net     # without network support
+%bcond_with    snmp    # with SNMP support
 #
 Summary:       Power management software for APC UPS hardware
 Summary(pl):   Oprogramowanie do zarz±dzania energi± dla UPS-ów APC
 Name:          apcupsd
 Version:       3.10.18
-Release:       2
+Release:       3
 License:       GPL v2
 Group:         Networking/Daemons
 Source0:       http://dl.sourceforge.net/apcupsd/%{name}-%{version}.tar.gz
@@ -21,6 +21,7 @@ Patch0:               %{name}-configure.patch
 URL:           http://www.apcupsd.com/
 BuildRequires: autoconf
 BuildRequires: automake
+%{?with_snmp:BuildRequires: net-snmp-devel}    
 Requires(post):        fileutils
 Requires(post,preun):  /sbin/chkconfig
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -56,7 +57,7 @@ cd ..
        --with-stat-dir=%{_var}/lib/apcupsd \
        %{?with_test:--enable-test} \
        %{?with_net:--enable-net} \
-       %{?with_net:--enable-snmp} \
+       %{?with_snmp:--enable-snmp} \
 %if %{with usb}
        --enable-usb \
        --with-serial-dev=/dev/usb/hiddev[0-15] \
This page took 0.058192 seconds and 4 git commands to generate.