]> git.pld-linux.org Git - packages/openvpn.git/commitdiff
- without_pkcs11 bcond added
authorJacek Konieczny <jajcus@pld-linux.org>
Tue, 5 Apr 2011 11:49:37 +0000 (11:49 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    openvpn.spec -> 1.162

openvpn.spec

index d6435847e1b286626adfa4386c182c0d6625b6d9..362e246ad387e8035d2790abecaecbc1fbfc404d 100644 (file)
@@ -1,3 +1,7 @@
+
+# Conditional build:
+%bcond_without pkcs11          # build without PKCS#11 support
+
 Summary:       VPN Daemon
 Summary(pl.UTF-8):     Serwer VPN
 Name:          openvpn
@@ -22,7 +26,7 @@ BuildRequires:        automake
 BuildRequires: lzo-devel
 BuildRequires: openssl-devel >= 0.9.7d
 BuildRequires: pam-devel
-BuildRequires: pkcs11-helper-devel
+%{?with_pkcs11:BuildRequires:  pkcs11-helper-devel}
 BuildRequires: rpmbuild(macros) >= 1.268
 Requires(post,preun):  /sbin/chkconfig
 Requires:      /sbin/ip
@@ -98,6 +102,7 @@ cp %{SOURCE4} .
 %{__automake}
 
 %configure \
+       %{!?with_pkcs11:--disable-pkcs11} \
        --enable-password-save \
        --enable-pthread \
        --enable-iproute2
This page took 0.072402 seconds and 4 git commands to generate.