gnupg/gnupg.spec

changeset 287
c30c9dcebf8b
parent 286
552d1939222f
child 303
2bd9bf3f6f03
equal deleted inserted replaced
5:3325bc5228a8 6:68fa4624a7a6
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.16 34 Version: 2.0.16
35 Release: 20100719 35 Release: 20101020
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}
48 BuildRoot: %{l_buildroot}
47 BuildPreReq: OpenPKG, openpkg >= 20100101, make 49 BuildPreReq: OpenPKG, openpkg >= 20100101, make
48 PreReq: OpenPKG, openpkg >= 20100101, pinentry 50 PreReq: OpenPKG, openpkg >= 20100101, pinentry
49 BuildPreReq: 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 >= 2.0.0, gpg-error >= 1.4
50 PreReq: gcrypt >= 1.2.3, libksba >= 1.0.2, libassuan >= 2.0.0, gpg-error >= 1.4 52 PreReq: gcrypt >= 1.2.3, libksba >= 1.0.2, libassuan >= 2.0.0, gpg-error >= 1.4
51 BuildPreReq: zlib, bzip2, readline, pth, libiconv 53 BuildPreReq: zlib, bzip2, readline, pth, libiconv
157 # build program 159 # build program
158 %{l_make} %{l_mflags} 160 %{l_make} %{l_mflags}
159 161
160 %install 162 %install
161 # install program 163 # install program
164 rm -rf $RPM_BUILD_ROOT
162 %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" 165 %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
163 166
164 # provide unversioned names 167 # provide unversioned names
165 ln $RPM_BUILD_ROOT%{l_prefix}/bin/gpg2 \ 168 ln $RPM_BUILD_ROOT%{l_prefix}/bin/gpg2 \
166 $RPM_BUILD_ROOT%{l_prefix}/bin/gpg 169 $RPM_BUILD_ROOT%{l_prefix}/bin/gpg
188 '%attr(4755,%{l_susr},%{l_mgrp}) %{l_prefix}/bin/gpg2' 191 '%attr(4755,%{l_susr},%{l_mgrp}) %{l_prefix}/bin/gpg2'
189 192
190 %files -f files 193 %files -f files
191 194
192 %clean 195 %clean
196 rm -rf $RPM_BUILD_ROOT
193 197

mercurial