|
|
@@ -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}
|