SPECS: vpnc.spec - openssl bcond

adamg adamg at pld-linux.org
Thu Jan 3 00:59:15 CET 2008


Author: adamg                        Date: Wed Jan  2 23:59:15 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- openssl bcond

---- Files affected:
SPECS:
   vpnc.spec (1.15 -> 1.16) 

---- Diffs:

================================================================
Index: SPECS/vpnc.spec
diff -u SPECS/vpnc.spec:1.15 SPECS/vpnc.spec:1.16
--- SPECS/vpnc.spec:1.15	Thu Jan  3 00:56:44 2008
+++ SPECS/vpnc.spec	Thu Jan  3 00:59:09 2008
@@ -1,4 +1,8 @@
 # $Revision$, $Date$
+#
+# Conditional build:
+%bcond_with	openssl		# with openssl support (possible GPL violation)
+#
 Summary:	VPN Client for Cisco EasyVPN
 Summary(pl.UTF-8):	Klient VPN dla Cisco EasyVPN
 Name:		vpnc
@@ -12,6 +16,7 @@
 Patch0:		%{name}-bash.patch
 URL:		http://www.unix-ag.uni-kl.de/~massar/vpnc/
 BuildRequires:	libgcrypt-devel
+%{?with_openssl:BuildRequires:	openssl-devel}
 BuildRequires:	perl-base
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -28,7 +33,8 @@
 %build
 %{__make} \
 	CC="%{__cc}" \
-	CFLAGS="%{rpmcflags} -Wall '-DVERSION=\"%{version}\"'"
+	CFLAGS="%{rpmcflags} -Wall '-DVERSION=\"%{version}\"'%{?with_openssl: -DOPENSSL_GPL_VIOLATION}" \
+	%{?with_openssl:OPENSSLLIBS="-lcrypto"}
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -63,6 +69,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.16  2008-01-02 23:59:09  adamg
+- openssl bcond
+
 Revision 1.15  2008-01-02 23:56:44  darekr
 - BR: perl-base, more docs
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/vpnc.spec?r1=1.15&r2=1.16&f=u



More information about the pld-cvs-commit mailing list