gnupg/gnupg.spec

changeset 31
bba786e365af
parent 30
3839a3a70f72
child 107
2f8ffdf7658b
equal deleted inserted replaced
0:fadc66e85187 1:dab68eb68034
30 Distribution: OpenPKG Community 30 Distribution: OpenPKG Community
31 Class: PLUS 31 Class: PLUS
32 Group: PGP 32 Group: PGP
33 License: GPL 33 License: GPL
34 Version: 2.0.9 34 Version: 2.0.9
35 Release: 20080326 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 40
41 # list of sources 41 # list of sources
42 Source0: ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-%{version}.tar.bz2 42 Source0: ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-%{version}.tar.bz2
43 Source1: ftp://ftp.gnupg.dk/pub/contrib-dk/idea.c.gz
43 Patch0: gnupg.patch 44 Patch0: gnupg.patch
44 45
45 # build information 46 # build information
46 Prefix: %{l_prefix} 47 Prefix: %{l_prefix}
47 BuildRoot: %{l_buildroot} 48 BuildRoot: %{l_buildroot}
86 g10/armor.c 87 g10/armor.c
87 88
88 %build 89 %build
89 # configure program 90 # configure program
90 export LIBS="" 91 export LIBS=""
92 case "%{l_platform -t}" in
93 *-sunos* ) LIBS="$LIBS -lsocket -lnsl" ;;
94 esac
91 echo "int main(int argc, char *argv[]) { return 0; }" >dummy.c 95 echo "int main(int argc, char *argv[]) { return 0; }" >dummy.c
92 for lib in termcap termlib curses ncurses; do 96 for lib in termcap termlib curses ncurses; do
93 rc=0; %{l_cc} -o dummy dummy.c -l$lib >/dev/null 2>&1 || rc=1 97 rc=0; %{l_cc} -o dummy dummy.c -l$lib >/dev/null 2>&1 || rc=1
94 if [ $rc -eq 0 ]; then LIBS="$LIBS -l$lib"; break; fi 98 if [ $rc -eq 0 ]; then LIBS="$LIBS -l$lib"; break; fi
95 done 99 done

mercurial