Browse Source

- add optional IDEA support - use external zlib package - disable mail HKP stuff (would require MTA) - disable execution of external stuff

Ralf S. Engelschall 22 years ago
parent
commit
fdc8e4166f
1 changed files with 12 additions and 2 deletions
  1. 12 2
      gnupg/gnupg.spec

+ 12 - 2
gnupg/gnupg.spec

@@ -35,13 +35,17 @@ License:      GPL
 Version:      1.2.2
 Release:      20030501
 
+#   package options
+%option       with_idea  no
+
 #   list of sources
 Source0:      ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-%{version}.tar.gz
+Source1:      ftp://ftp.gnupg.dk/pub/contrib-dk/idea.c.gz
 
 #   build information
 Prefix:       %{l_prefix}
 BuildRoot:    %{l_buildroot}
-BuildPreReq:  OpenPKG, openpkg >= 20020206, make
+BuildPreReq:  OpenPKG, openpkg >= 20020206, make, zlib
 PreReq:       OpenPKG, openpkg >= 20020206
 AutoReq:      no
 AutoReqProv:  no
@@ -57,14 +61,20 @@ Provides:     OPENPGP
 
 %prep
     %setup -q
+%if "%{with_idea}" == "yes"
+    %{l_gzip} -d -c %{SOURCE idea.c.gz} >cipher/idea.c
+%endif
 
 %build
     CC="%{l_cc}" \
     CFLAGS="%{l_cflags -O}" \
+    LDFLAGS="%{l_ldflags}" \
     ./configure \
         --prefix=%{l_prefix} \
-        --with-included-zlib \
+        --with-zlib=%{l_prefix} \
         --with-included-gettext \
+        --disable-mailto \
+        --disable-exec \
         --disable-dynload \
         --disable-nls
     %{l_make} %{l_mflags}