diff -r 3839a3a70f72 -r bba786e365af gnupg/gnupg.spec --- a/gnupg/gnupg.spec Wed Jan 07 22:13:49 2009 +0100 +++ b/gnupg/gnupg.spec Wed Jan 07 22:15:29 2009 +0100 @@ -32,7 +32,7 @@ Group: PGP License: GPL Version: 2.0.9 -Release: 20080326 +Release: 20090106 # package options %option with_curl yes @@ -40,6 +40,7 @@ # 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 @@ -88,6 +89,9 @@ %build # configure program export LIBS="" + case "%{l_platform -t}" in + *-sunos* ) LIBS="$LIBS -lsocket -lnsl" ;; + esac echo "int main(int argc, char *argv[]) { return 0; }" >dummy.c for lib in termcap termlib curses ncurses; do rc=0; %{l_cc} -o dummy dummy.c -l$lib >/dev/null 2>&1 || rc=1