| 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.17 |
34 Version: 2.0.19 |
| 35 Release: 20110914 |
35 Release: 20120800 |
| 36 |
36 |
| 37 # package options |
37 # package options |
| 38 %option with_curl yes |
38 %option with_setuid yes |
| 39 %option with_ldap no |
39 %option with_curl yes |
| 40 %option with_idea no |
40 %option with_ldap no |
| 41 %option with_setuid no |
41 %option with_idea no |
| 42 |
42 |
| 43 # list of sources |
43 # list of sources |
| 44 Source0: ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-%{version}.tar.bz2 |
44 Source0: ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-%{version}.tar.bz2 |
| 45 Patch0: gnupg.patch |
45 Patch0: gnupg.patch |
| 46 |
46 |
| 47 # build information |
47 # build information |
| 48 Prefix: %{l_prefix} |
48 BuildPreReq: OpenPKG, openpkg >= 20100101, make |
| 49 BuildRoot: %{l_buildroot} |
49 PreReq: OpenPKG, openpkg >= 20100101, pinentry |
| 50 BuildPreReq: OpenPKG, openpkg >= 20060823, make |
|
| 51 PreReq: OpenPKG, openpkg >= 20060823, pinentry |
|
| 52 BuildPreReq: gcrypt >= 1.2.3, libksba >= 1.0.2, libassuan >= 2.0.0, gpg-error >= 1.4 |
50 BuildPreReq: 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 |
51 PreReq: gcrypt >= 1.2.3, libksba >= 1.0.2, libassuan >= 2.0.0, gpg-error >= 1.4 |
| 54 BuildPreReq: zlib, bzip2, readline, pth, libiconv |
52 BuildPreReq: zlib, bzip2, readline, pth, libiconv |
| 55 PreReq: zlib, bzip2, readline, pth, libiconv |
53 PreReq: zlib, bzip2, readline, pth, libiconv |
| 56 %if "%{with_curl}" == "yes" |
54 %if "%{with_curl}" == "yes" |
| 63 %endif |
61 %endif |
| 64 %if "%{with_idea}" == "yes" |
62 %if "%{with_idea}" == "yes" |
| 65 BuildPreReq: gcrypt::with_idea |
63 BuildPreReq: gcrypt::with_idea |
| 66 PreReq: gcrypt::with_idea |
64 PreReq: gcrypt::with_idea |
| 67 %endif |
65 %endif |
| 68 AutoReq: no |
|
| 69 AutoReqProv: no |
|
| 70 |
66 |
| 71 %description |
67 %description |
| 72 GnuPG (GNU Privacy Guard) is a GNU utility for encrypting data and |
68 GnuPG (GNU Privacy Guard) is a GNU utility for encrypting data and |
| 73 creating digital signatures. GnuPG has advanced key management |
69 creating digital signatures. GnuPG has advanced key management |
| 74 capabilities and is compliant with the proposed OpenPGP Internet |
70 capabilities and is compliant with the proposed OpenPGP Internet |
| 158 --enable-keyserver-helpers \ |
154 --enable-keyserver-helpers \ |
| 159 --with-mailprog="%{l_prefix}/sbin/sendmail" \ |
155 --with-mailprog="%{l_prefix}/sbin/sendmail" \ |
| 160 --disable-mailto |
156 --disable-mailto |
| 161 |
157 |
| 162 # build program |
158 # build program |
| 163 %{l_make} %{l_mflags} |
159 %{l_make} %{l_mflags -O} |
| 164 |
160 |
| 165 %install |
161 %install |
| 166 # install program |
162 # install program |
| 167 rm -rf $RPM_BUILD_ROOT |
163 %{l_make} %{l_mflags} install DESTDIR="$RPM_BUILD_ROOT" |
| 168 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT |
|
| 169 |
164 |
| 170 # MSvB: facilitate PATH order of independent |
165 # provide unversioned names |
| 171 # MSvB: GnuPG v1 and GnuPG v2 installations. |
166 ln $RPM_BUILD_ROOT%{l_prefix}/bin/gpg2 \ |
| 172 # # provide unversioned names |
167 $RPM_BUILD_ROOT%{l_prefix}/bin/gpg |
| 173 # ln $RPM_BUILD_ROOT%{l_prefix}/bin/gpg2 \ |
168 ln $RPM_BUILD_ROOT%{l_prefix}/bin/gpgv2 \ |
| 174 # $RPM_BUILD_ROOT%{l_prefix}/bin/gpg |
169 $RPM_BUILD_ROOT%{l_prefix}/bin/gpgv |
| 175 # ln $RPM_BUILD_ROOT%{l_prefix}/bin/gpgv2 \ |
170 ln $RPM_BUILD_ROOT%{l_prefix}/man/man1/gpg2.1 \ |
| 176 # $RPM_BUILD_ROOT%{l_prefix}/bin/gpgv |
171 $RPM_BUILD_ROOT%{l_prefix}/man/man1/gpg.1 |
| 177 # ln $RPM_BUILD_ROOT%{l_prefix}/man/man1/gpg2.1 \ |
172 ln $RPM_BUILD_ROOT%{l_prefix}/man/man1/gpgv2.1 \ |
| 178 # $RPM_BUILD_ROOT%{l_prefix}/man/man1/gpg.1 |
173 $RPM_BUILD_ROOT%{l_prefix}/man/man1/gpgv.1 |
| 179 # ln $RPM_BUILD_ROOT%{l_prefix}/man/man1/gpgv2.1 \ |
|
| 180 # $RPM_BUILD_ROOT%{l_prefix}/man/man1/gpgv.1 |
|
| 181 |
174 |
| 182 # strip down and post-adjust installation files |
175 # strip down and post-adjust installation files |
| 183 strip $RPM_BUILD_ROOT%{l_prefix}/bin/* 2>/dev/null || true |
176 strip $RPM_BUILD_ROOT%{l_prefix}/bin/* 2>/dev/null || true |
| 184 strip $RPM_BUILD_ROOT%{l_prefix}/libexec/gnupg/* 2>/dev/null || true |
177 strip $RPM_BUILD_ROOT%{l_prefix}/libexec/gnupg/* 2>/dev/null || true |
| 185 rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir |
178 rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir |
| 191 |
184 |
| 192 # determine installation files |
185 # determine installation files |
| 193 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ |
186 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ |
| 194 %{l_files_std} \ |
187 %{l_files_std} \ |
| 195 %if "%{with_setuid}" == "yes" |
188 %if "%{with_setuid}" == "yes" |
| |
189 '%attr(4755,%{l_susr},%{l_mgrp}) %{l_prefix}/bin/gpg' \ |
| 196 '%attr(4755,%{l_susr},%{l_mgrp}) %{l_prefix}/bin/gpg2' |
190 '%attr(4755,%{l_susr},%{l_mgrp}) %{l_prefix}/bin/gpg2' |
| 197 # '%attr(4755,%{l_susr},%{l_mgrp}) %{l_prefix}/bin/gpg2' \ |
|
| 198 # '%attr(4755,%{l_susr},%{l_mgrp}) %{l_prefix}/bin/gpg' |
|
| 199 %else |
191 %else |
| |
192 '%attr(0755,%{l_susr},%{l_mgrp}) %{l_prefix}/bin/gpg' \ |
| 200 '%attr(0755,%{l_susr},%{l_mgrp}) %{l_prefix}/bin/gpg2' |
193 '%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 |
194 %endif |
| 204 |
195 |
| 205 %files -f files |
196 %files -f files |
| 206 |
197 |
| 207 %clean |
198 %clean |
| 208 rm -rf $RPM_BUILD_ROOT |
|
| 209 |
199 |