gnupg/gnupg.spec

changeset 286
552d1939222f
parent 155
d02b8517b4af
child 287
c30c9dcebf8b
equal deleted inserted replaced
4:053f5cfc0087 5:3325bc5228a8
1 ## 1 ##
2 ## gnupg.spec -- OpenPKG RPM Package Specification 2 ## gnupg.spec -- OpenPKG RPM Package Specification
3 ## Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/> 3 ## Copyright (c) 2000-2010 OpenPKG Foundation e.V. <http://openpkg.net/>
4 ## 4 ##
5 ## Permission to use, copy, modify, and distribute this software for 5 ## Permission to use, copy, modify, and distribute this software for
6 ## any purpose with or without fee is hereby granted, provided that 6 ## any purpose with or without fee is hereby granted, provided that
7 ## the above copyright notice and this permission notice appear in all 7 ## the above copyright notice and this permission notice appear in all
8 ## copies. 8 ## copies.
29 Packager: OpenPKG Foundation e.V. 29 Packager: OpenPKG Foundation e.V.
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.11 34 Version: 2.0.16
35 Release: 20090408 35 Release: 20100719
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 %option with_idea no
42 # list of sources 42 # list of sources
43 Source0: ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-%{version}.tar.bz2 43 Source0: ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-%{version}.tar.bz2
44 Patch0: gnupg.patch 44 Patch0: gnupg.patch
45 45
46 # build information 46 # build information
47 Prefix: %{l_prefix} 47 BuildPreReq: OpenPKG, openpkg >= 20100101, make
48 BuildRoot: %{l_buildroot} 48 PreReq: OpenPKG, openpkg >= 20100101, pinentry
49 BuildPreReq: OpenPKG, openpkg >= 20040130, make 49 BuildPreReq: gcrypt >= 1.2.3, libksba >= 1.0.2, libassuan >= 2.0.0, gpg-error >= 1.4
50 PreReq: OpenPKG, openpkg >= 20040130, pinentry 50 PreReq: gcrypt >= 1.2.3, libksba >= 1.0.2, libassuan >= 2.0.0, gpg-error >= 1.4
51 BuildPreReq: gcrypt >= 1.2.3, libksba >= 1.0.2, libassuan >= 1.0.2, gpg-error >= 1.4
52 PreReq: gcrypt >= 1.2.3, libksba >= 1.0.2, libassuan >= 1.0.2, gpg-error >= 1.4
53 BuildPreReq: zlib, bzip2, readline, pth, libiconv 51 BuildPreReq: zlib, bzip2, readline, pth, libiconv
54 PreReq: zlib, bzip2, readline, pth, libiconv 52 PreReq: zlib, bzip2, readline, pth, libiconv
55 %if "%{with_curl}" == "yes" 53 %if "%{with_curl}" == "yes"
56 BuildPreReq: curl, openssl 54 BuildPreReq: curl, openssl
57 PreReq: curl, openssl 55 PreReq: curl, openssl
62 %endif 60 %endif
63 %if "%{with_idea}" == "yes" 61 %if "%{with_idea}" == "yes"
64 BuildPreReq: gcrypt::with_idea 62 BuildPreReq: gcrypt::with_idea
65 PreReq: gcrypt::with_idea 63 PreReq: gcrypt::with_idea
66 %endif 64 %endif
67 AutoReq: no
68 AutoReqProv: no
69 65
70 %description 66 %description
71 GnuPG (GNU Privacy Guard) is a GNU utility for encrypting data and 67 GnuPG (GNU Privacy Guard) is a GNU utility for encrypting data and
72 creating digital signatures. GnuPG has advanced key management 68 creating digital signatures. GnuPG has advanced key management
73 capabilities and is compliant with the proposed OpenPGP Internet 69 capabilities and is compliant with the proposed OpenPGP Internet
130 --with-ksba-prefix=%{l_prefix} \ 126 --with-ksba-prefix=%{l_prefix} \
131 --with-pth-prefix=%{l_prefix} \ 127 --with-pth-prefix=%{l_prefix} \
132 --with-agent-pgm=%{l_prefix}/bin/gpg-agent \ 128 --with-agent-pgm=%{l_prefix}/bin/gpg-agent \
133 --with-pinentry-pgm=%{l_prefix}/bin/pinentry \ 129 --with-pinentry-pgm=%{l_prefix}/bin/pinentry \
134 --with-dirmngr-pgm=%{l_prefix}/bin/dirmngr \ 130 --with-dirmngr-pgm=%{l_prefix}/bin/dirmngr \
135 --with-included-regex \
136 %if "%{with_curl}" == "yes" 131 %if "%{with_curl}" == "yes"
137 --with-libcurl=%{l_prefix} \ 132 --with-libcurl=%{l_prefix} \
138 %else 133 %else
139 --without-libcurl \ 134 --without-libcurl \
140 %endif 135 %endif
141 --without-included-gettext \
142 --without-libintl-prefix \ 136 --without-libintl-prefix \
143 --disable-nls \ 137 --disable-nls \
144 --disable-scdaemon \ 138 --disable-scdaemon \
145 --enable-generic \ 139 --enable-generic \
146 --enable-finger \ 140 --enable-finger \
163 # build program 157 # build program
164 %{l_make} %{l_mflags} 158 %{l_make} %{l_mflags}
165 159
166 %install 160 %install
167 # install program 161 # install program
168 rm -rf $RPM_BUILD_ROOT
169 %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" 162 %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
170 163
171 # provide unversioned names 164 # provide unversioned names
172 ln $RPM_BUILD_ROOT%{l_prefix}/bin/gpg2 \ 165 ln $RPM_BUILD_ROOT%{l_prefix}/bin/gpg2 \
173 $RPM_BUILD_ROOT%{l_prefix}/bin/gpg 166 $RPM_BUILD_ROOT%{l_prefix}/bin/gpg
195 '%attr(4755,%{l_susr},%{l_mgrp}) %{l_prefix}/bin/gpg2' 188 '%attr(4755,%{l_susr},%{l_mgrp}) %{l_prefix}/bin/gpg2'
196 189
197 %files -f files 190 %files -f files
198 191
199 %clean 192 %clean
200 rm -rf $RPM_BUILD_ROOT
201 193

mercurial