gnupg/gnupg.spec

changeset 107
2f8ffdf7658b
parent 31
bba786e365af
child 119
0c4aca8434e1
     1.1 --- a/gnupg/gnupg.spec	Wed Feb 18 16:40:58 2009 +0100
     1.2 +++ b/gnupg/gnupg.spec	Sat Feb 21 16:39:01 2009 +0100
     1.3 @@ -37,10 +37,10 @@
     1.4  #   package options
     1.5  %option       with_curl  yes
     1.6  %option       with_ldap  no
     1.7 +%option       with_idea  no
     1.8  
     1.9  #   list of sources
    1.10  Source0:      ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-%{version}.tar.bz2
    1.11 -Source1:      ftp://ftp.gnupg.dk/pub/contrib-dk/idea.c.gz
    1.12  Patch0:       gnupg.patch
    1.13  
    1.14  #   build information
    1.15 @@ -60,6 +60,10 @@
    1.16  BuildPreReq:  openldap, openssl
    1.17  PreReq:       openldap, openssl
    1.18  %endif
    1.19 +%if "%{with_idea}" == "yes"
    1.20 +BuildPreReq:  gcrypt::with_idea
    1.21 +PreReq:       gcrypt::with_idea
    1.22 +%endif
    1.23  AutoReq:      no
    1.24  AutoReqProv:  no
    1.25  
    1.26 @@ -107,6 +111,9 @@
    1.27      export CC="%{l_cc}"
    1.28      export CFLAGS="%{l_cflags -O}"
    1.29      export CPPFLAGS="%{l_cppflags}"
    1.30 +%if "%{with_idea}" == "yes"
    1.31 +    export CPPFLAGS="-DUSE_IDEA $CPPFLAGS"
    1.32 +%endif
    1.33      export LDFLAGS="%{l_ldflags}"
    1.34      ./configure \
    1.35          --prefix=%{l_prefix} \

mercurial