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.16 |
34 Version: 2.0.17 |
35 Release: 20101026 |
35 Release: 20110914 |
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 |
|
41 %option with_setuid no |
41 |
42 |
42 # list of sources |
43 # list of sources |
43 Source0: ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-%{version}.tar.bz2 |
44 Source0: ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-%{version}.tar.bz2 |
44 Patch0: gnupg.patch |
45 Patch0: gnupg.patch |
45 |
46 |
46 # build information |
47 # build information |
47 Prefix: %{l_prefix} |
48 Prefix: %{l_prefix} |
48 BuildRoot: %{l_buildroot} |
49 BuildRoot: %{l_buildroot} |
49 BuildPreReq: OpenPKG, openpkg >= 20100101, make |
50 BuildPreReq: OpenPKG, openpkg >= 20060823, make |
50 PreReq: OpenPKG, openpkg >= 20100101, pinentry |
51 PreReq: OpenPKG, openpkg >= 20060823, pinentry |
51 BuildPreReq: gcrypt >= 1.2.3, libksba >= 1.0.2, libassuan >= 2.0.0, gpg-error >= 1.4 |
52 BuildPreReq: 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 |
53 PreReq: gcrypt >= 1.2.3, libksba >= 1.0.2, libassuan >= 2.0.0, gpg-error >= 1.4 |
53 BuildPreReq: zlib, bzip2, readline, pth, libiconv |
54 BuildPreReq: zlib, bzip2, readline, pth, libiconv |
54 PreReq: zlib, bzip2, readline, pth, libiconv |
55 PreReq: zlib, bzip2, readline, pth, libiconv |
55 %if "%{with_curl}" == "yes" |
56 %if "%{with_curl}" == "yes" |
62 %endif |
63 %endif |
63 %if "%{with_idea}" == "yes" |
64 %if "%{with_idea}" == "yes" |
64 BuildPreReq: gcrypt::with_idea |
65 BuildPreReq: gcrypt::with_idea |
65 PreReq: gcrypt::with_idea |
66 PreReq: gcrypt::with_idea |
66 %endif |
67 %endif |
|
68 AutoReq: no |
|
69 AutoReqProv: no |
67 |
70 |
68 %description |
71 %description |
69 GnuPG (GNU Privacy Guard) is a GNU utility for encrypting data and |
72 GnuPG (GNU Privacy Guard) is a GNU utility for encrypting data and |
70 creating digital signatures. GnuPG has advanced key management |
73 creating digital signatures. GnuPG has advanced key management |
71 capabilities and is compliant with the proposed OpenPGP Internet |
74 capabilities and is compliant with the proposed OpenPGP Internet |
187 $RPM_BUILD_ROOT%{l_prefix}/man/man1/gpgsm-gencert.1 |
190 $RPM_BUILD_ROOT%{l_prefix}/man/man1/gpgsm-gencert.1 |
188 |
191 |
189 # determine installation files |
192 # determine installation files |
190 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ |
193 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ |
191 %{l_files_std} \ |
194 %{l_files_std} \ |
|
195 %if "%{with_setuid}" == "yes" |
192 '%attr(4755,%{l_susr},%{l_mgrp}) %{l_prefix}/bin/gpg2' |
196 '%attr(4755,%{l_susr},%{l_mgrp}) %{l_prefix}/bin/gpg2' |
193 # '%attr(4755,%{l_susr},%{l_mgrp}) %{l_prefix}/bin/gpg2' \ |
197 # '%attr(4755,%{l_susr},%{l_mgrp}) %{l_prefix}/bin/gpg2' \ |
194 # '%attr(4755,%{l_susr},%{l_mgrp}) %{l_prefix}/bin/gpg' |
198 # '%attr(4755,%{l_susr},%{l_mgrp}) %{l_prefix}/bin/gpg' |
|
199 %else |
|
200 '%attr(0755,%{l_susr},%{l_mgrp}) %{l_prefix}/bin/gpg2' |
|
201 # '%attr(0755,%{l_susr},%{l_mgrp}) %{l_prefix}/bin/gpg' \ |
|
202 # '%attr(0755,%{l_susr},%{l_mgrp}) %{l_prefix}/bin/gpg2' |
|
203 %endif |
195 |
204 |
196 %files -f files |
205 %files -f files |
197 |
206 |
198 %clean |
207 %clean |
199 rm -rf $RPM_BUILD_ROOT |
208 rm -rf $RPM_BUILD_ROOT |