diff -r 5e7005042079 -r 2f8ffdf7658b gnupg/gnupg.spec --- a/gnupg/gnupg.spec Wed Feb 18 16:40:58 2009 +0100 +++ b/gnupg/gnupg.spec Sat Feb 21 16:39:01 2009 +0100 @@ -37,10 +37,10 @@ # package options %option with_curl yes %option with_ldap no +%option with_idea no # list of sources Source0: ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-%{version}.tar.bz2 -Source1: ftp://ftp.gnupg.dk/pub/contrib-dk/idea.c.gz Patch0: gnupg.patch # build information @@ -60,6 +60,10 @@ BuildPreReq: openldap, openssl PreReq: openldap, openssl %endif +%if "%{with_idea}" == "yes" +BuildPreReq: gcrypt::with_idea +PreReq: gcrypt::with_idea +%endif AutoReq: no AutoReqProv: no @@ -107,6 +111,9 @@ export CC="%{l_cc}" export CFLAGS="%{l_cflags -O}" export CPPFLAGS="%{l_cppflags}" +%if "%{with_idea}" == "yes" + export CPPFLAGS="-DUSE_IDEA $CPPFLAGS" +%endif export LDFLAGS="%{l_ldflags}" ./configure \ --prefix=%{l_prefix} \