gnupg/gnupg.spec

changeset 107
2f8ffdf7658b
parent 31
bba786e365af
child 119
0c4aca8434e1
equal deleted inserted replaced
1:dab68eb68034 2:cb0b0f1ce0c7
35 Release: 20090106 35 Release: 20090106
36 36
37 # package options 37 # package options
38 %option with_curl yes 38 %option with_curl yes
39 %option with_ldap no 39 %option with_ldap no
40 %option with_idea no
40 41
41 # list of sources 42 # list of sources
42 Source0: ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-%{version}.tar.bz2 43 Source0: ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-%{version}.tar.bz2
43 Source1: ftp://ftp.gnupg.dk/pub/contrib-dk/idea.c.gz
44 Patch0: gnupg.patch 44 Patch0: gnupg.patch
45 45
46 # build information 46 # build information
47 Prefix: %{l_prefix} 47 Prefix: %{l_prefix}
48 BuildRoot: %{l_buildroot} 48 BuildRoot: %{l_buildroot}
57 PreReq: curl, openssl 57 PreReq: curl, openssl
58 %endif 58 %endif
59 %if "%{with_ldap}" == "yes" 59 %if "%{with_ldap}" == "yes"
60 BuildPreReq: openldap, openssl 60 BuildPreReq: openldap, openssl
61 PreReq: openldap, openssl 61 PreReq: openldap, openssl
62 %endif
63 %if "%{with_idea}" == "yes"
64 BuildPreReq: gcrypt::with_idea
65 PreReq: gcrypt::with_idea
62 %endif 66 %endif
63 AutoReq: no 67 AutoReq: no
64 AutoReqProv: no 68 AutoReqProv: no
65 69
66 %description 70 %description
105 %endif 109 %endif
106 LIBS="$LIBS -liconv" 110 LIBS="$LIBS -liconv"
107 export CC="%{l_cc}" 111 export CC="%{l_cc}"
108 export CFLAGS="%{l_cflags -O}" 112 export CFLAGS="%{l_cflags -O}"
109 export CPPFLAGS="%{l_cppflags}" 113 export CPPFLAGS="%{l_cppflags}"
114 %if "%{with_idea}" == "yes"
115 export CPPFLAGS="-DUSE_IDEA $CPPFLAGS"
116 %endif
110 export LDFLAGS="%{l_ldflags}" 117 export LDFLAGS="%{l_ldflags}"
111 ./configure \ 118 ./configure \
112 --prefix=%{l_prefix} \ 119 --prefix=%{l_prefix} \
113 --libexecdir=%{l_prefix}/libexec/gnupg \ 120 --libexecdir=%{l_prefix}/libexec/gnupg \
114 --mandir=%{l_prefix}/man \ 121 --mandir=%{l_prefix}/man \

mercurial