diff -r 442a711da911 -r b8e8f9dbbfd3 gnupg/gnupg.spec --- a/gnupg/gnupg.spec Wed Sep 21 13:46:39 2011 +0200 +++ b/gnupg/gnupg.spec Wed Sep 21 13:51:49 2011 +0200 @@ -31,13 +31,14 @@ Class: PLUS Group: PGP License: GPL -Version: 2.0.16 -Release: 20101026 +Version: 2.0.17 +Release: 20110914 # package options %option with_curl yes %option with_ldap no %option with_idea no +%option with_setuid no # list of sources Source0: ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-%{version}.tar.bz2 @@ -46,8 +47,8 @@ # build information Prefix: %{l_prefix} BuildRoot: %{l_buildroot} -BuildPreReq: OpenPKG, openpkg >= 20100101, make -PreReq: OpenPKG, openpkg >= 20100101, pinentry +BuildPreReq: OpenPKG, openpkg >= 20060823, make +PreReq: OpenPKG, openpkg >= 20060823, pinentry BuildPreReq: gcrypt >= 1.2.3, libksba >= 1.0.2, libassuan >= 2.0.0, gpg-error >= 1.4 PreReq: gcrypt >= 1.2.3, libksba >= 1.0.2, libassuan >= 2.0.0, gpg-error >= 1.4 BuildPreReq: zlib, bzip2, readline, pth, libiconv @@ -64,6 +65,8 @@ BuildPreReq: gcrypt::with_idea PreReq: gcrypt::with_idea %endif +AutoReq: no +AutoReqProv: no %description GnuPG (GNU Privacy Guard) is a GNU utility for encrypting data and @@ -189,9 +192,15 @@ # determine installation files %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ %{l_files_std} \ +%if "%{with_setuid}" == "yes" '%attr(4755,%{l_susr},%{l_mgrp}) %{l_prefix}/bin/gpg2' # '%attr(4755,%{l_susr},%{l_mgrp}) %{l_prefix}/bin/gpg2' \ # '%attr(4755,%{l_susr},%{l_mgrp}) %{l_prefix}/bin/gpg' +%else + '%attr(0755,%{l_susr},%{l_mgrp}) %{l_prefix}/bin/gpg2' +# '%attr(0755,%{l_susr},%{l_mgrp}) %{l_prefix}/bin/gpg' \ +# '%attr(0755,%{l_susr},%{l_mgrp}) %{l_prefix}/bin/gpg2' +%endif %files -f files