head 1.12; access; symbols OPENPKG_E1_MP:1.7 OPENPKG_E1_MP_HEAD:1.7; locks; strict; comment @-- @; 1.12 date 2007.07.06.10.52.02; author rse; state dead; branches; next 1.11; commitid LdqzHtrshAwXeHos; 1.11 date 2007.07.06.07.27.44; author rse; state Exp; branches; next 1.10; commitid gK94P46vgxoS6Gos; 1.10 date 2007.05.09.20.28.22; author rse; state Exp; branches; next 1.9; commitid POaaPLfxHEhgiihs; 1.9 date 2007.03.08.17.27.20; author rse; state Exp; branches; next 1.8; commitid Amv7XMDGxqkIhj9s; 1.8 date 2007.02.01.08.29.07; author rse; state Exp; branches; next 1.7; commitid ELc5wZn9vtiPqL4s; 1.7 date 2007.01.01.17.38.15; author rse; state Exp; branches; next 1.6; commitid BicZD6VUl7GuqP0s; 1.6 date 2006.12.07.19.42.20; author rse; state Exp; branches; next 1.5; commitid waBpOqNgnSEnXCXr; 1.5 date 2006.11.29.08.22.29; author rse; state Exp; branches; next 1.4; commitid 49cCuNccYsM5sxWr; 1.4 date 2006.11.28.07.11.10; author rse; state Exp; branches; next 1.3; commitid Es26iHRVSrMC5pWr; 1.3 date 2006.11.16.07.08.08; author rse; state Exp; branches; next 1.2; commitid 13kqTDiDRvztsRUr; 1.2 date 2006.11.15.21.23.54; author rse; state Exp; branches; next 1.1; commitid MgubUbJ7u7M4eOUr; 1.1 date 2006.11.15.20.52.51; author rse; state Exp; branches; next ; commitid WNdUqaV0RtZp3OUr; desc @@ 1.12 log @remove gnupg2 @ text @## ## gnupg2.spec -- OpenPKG RPM Package Specification ## Copyright (c) 2000-2007 OpenPKG Foundation e.V. ## Copyright (c) 2000-2007 Ralf S. Engelschall ## ## Permission to use, copy, modify, and distribute this software for ## any purpose with or without fee is hereby granted, provided that ## the above copyright notice and this permission notice appear in all ## copies. ## ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ## SUCH DAMAGE. ## # package information Name: gnupg2 Summary: GNU Privacy Guard URL: http://www.gnupg.org/ Vendor: Werner Koch Packager: OpenPKG Foundation e.V. Distribution: OpenPKG Community Class: EVAL Group: PGP License: GPL Version: 2.0.5 Release: 20070706 # package options %option with_curl yes %option with_idea no %option with_ldap no # list of sources Source0: ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-%{version}.tar.bz2 Source1: ftp://ftp.gnupg.dk/pub/contrib-dk/idea.c.gz Patch0: gnupg2.patch # build information Prefix: %{l_prefix} BuildRoot: %{l_buildroot} BuildPreReq: OpenPKG, openpkg >= 20040130, make PreReq: OpenPKG, openpkg >= 20040130, pinentry BuildPreReq: gcrypt, libksba, libassuan >= 1.0.2, gpg-error, zlib, bzip2, readline, pth, libiconv PreReq: gcrypt, libksba, libassuan >= 1.0.2, gpg-error, zlib, bzip2, readline, pth, libiconv %if "%{with_curl}" == "yes" BuildPreReq: curl, openssl PreReq: curl, openssl %endif %if "%{with_ldap}" == "yes" BuildPreReq: openldap, openssl PreReq: openldap, openssl %endif AutoReq: no AutoReqProv: no %description GnuPG (GNU Privacy Guard) is a GNU utility for encrypting data and creating digital signatures. GnuPG has advanced key management capabilities and is compliant with the proposed OpenPGP Internet standard described in RFC2440. Since GnuPG doesn't use any patented algorithm, it is not compatible with any version of PGP2 (PGP2.x uses only IDEA, patented worldwide). %track prog gnupg2 = { version = %{version} url = ftp://ftp.gnupg.org/gcrypt/gnupg/ regex = gnupg-(2\.__VER__)\.tar\.(gz|bz2) } %prep %setup -q -n gnupg-%{version} %if "%{with_idea}" == "yes" %{l_gzip} -d -c %{SOURCE idea.c.gz} >cipher/idea.c %endif %patch -p0 %build # configure program export LIBS="" echo "int main(int argc, char *argv[]) { return 0; }" >dummy.c for lib in termcap termlib curses ncurses; do rc=0; %{l_cc} -o dummy dummy.c -l$lib >/dev/null 2>&1 || rc=1 if [ $rc -eq 0 ]; then LIBS="$LIBS -l$lib"; break; fi done %if "%{with_curl}" == "yes" || "%{with_ldap}" == "yes" LIBS="$LIBS -lssl -lcrypto" %endif %if "%{with_curl}" == "yes" LIBS="$LIBS -lz" %endif LIBS="$LIBS -liconv" export CC="%{l_cc}" export CFLAGS="%{l_cflags -O}" export CPPFLAGS="%{l_cppflags}" export LDFLAGS="%{l_ldflags}" ./configure \ --prefix=%{l_prefix} \ --datadir=%{l_prefix}/share/gnupg2 \ --mandir=%{l_prefix}/man \ --infodir=%{l_prefix}/info \ --with-zlib=%{l_prefix} \ --with-bzip2=%{l_prefix} \ --with-readline=%{l_prefix} \ --with-libiconv-prefix=%{l_prefix} \ --with-gpg-error-prefix=%{l_prefix} \ --with-libgcrypt-prefix=%{l_prefix} \ --with-libassuan-prefix=%{l_prefix} \ --with-ksba-prefix=%{l_prefix} \ --with-pth-prefix=%{l_prefix} \ --with-agent-pgm=%{l_prefix}/bin/gpg-agent \ --with-pinentry-pgm=%{l_prefix}/bin/pinentry \ --with-dirmngr-pgm=%{l_prefix}/bin/dirmngr \ --with-included-regex \ %if "%{with_curl}" == "yes" --with-libcurl=%{l_prefix} \ %else --without-libcurl \ %endif --without-included-gettext \ --without-libintl-prefix \ --disable-nls \ --disable-scdaemon \ --enable-generic \ --enable-finger \ --enable-hkp \ %if "%{with_ldap}" == "yes" --enable-ldap \ %else --disable-ldap \ %endif %if "%{with_curl}" == "yes" --with-libcurl=%{l_prefix} \ %else --without-libcurl \ %endif --enable-exec \ --enable-keyserver-helpers \ --with-mailprog="%{l_prefix}/sbin/sendmail" \ --disable-mailto # build program %{l_make} %{l_mflags} %install # install program rm -rf $RPM_BUILD_ROOT %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" # strip down and post-adjust installation files strip $RPM_BUILD_ROOT%{l_prefix}/bin/* 2>/dev/null || true strip $RPM_BUILD_ROOT%{l_prefix}/libexec/gnupg/* 2>/dev/null || true rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir rm -f $RPM_BUILD_ROOT%{l_prefix}/man/man1/scdaemon.1 mv $RPM_BUILD_ROOT%{l_prefix}/bin/gpgsm-gencert.sh \ $RPM_BUILD_ROOT%{l_prefix}/bin/gpgsm-gencert mv $RPM_BUILD_ROOT%{l_prefix}/man/man1/gpgsm-gencert.sh.1 \ $RPM_BUILD_ROOT%{l_prefix}/man/man1/gpgsm-gencert.1 # determine installation files %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ %{l_files_std} \ '%attr(4755,%{l_susr},%{l_mgrp}) %{l_prefix}/bin/gpg2' %files -f files %clean rm -rf $RPM_BUILD_ROOT @ 1.11 log @upgrading package: gnupg2 2.0.4 -> 2.0.5 @ text @@ 1.10 log @upgrading package: gnupg2 2.0.3 -> 2.0.4 @ text @d35 2 a36 2 Version: 2.0.4 Release: 20070509 d53 2 a54 2 BuildPreReq: gcrypt, libksba, libassuan, gpg-error, zlib, bzip2, readline, pth, libiconv PreReq: gcrypt, libksba, libassuan, gpg-error, zlib, bzip2, readline, pth, libiconv @ 1.9 log @upgrading package: gnupg2 2.0.2 -> 2.0.3 @ text @d35 2 a36 2 Version: 2.0.3 Release: 20070308 @ 1.8 log @upgrading package: gnupg2 2.0.1 -> 2.0.2 @ text @d35 2 a36 2 Version: 2.0.2 Release: 20070201 @ 1.7 log @Welcome Year 2007! @ text @d35 2 a36 2 Version: 2.0.1 Release: 20061207 @ 1.6 log @Security Fix (CVE-2006-6235) @ text @d3 2 a4 2 ## Copyright (c) 2000-2006 OpenPKG Foundation e.V. ## Copyright (c) 2000-2006 Ralf S. Engelschall @ 1.5 log @upgrading package: gnupg2 2.0.0 -> 2.0.1 @ text @d36 1 a36 1 Release: 20061129 @ 1.4 log @Security Fix @ text @d35 2 a36 2 Version: 2.0.0 Release: 20061128 d78 1 a78 1 regex = gnupg-(__VER__)\.tar\.gz d110 2 @ 1.3 log @ops, fix tracking (too much cut & paste) @ text @d36 1 a36 1 Release: 20061116 @ 1.2 log @resolve file conflicts @ text @d36 1 a36 1 Release: 20061115 d75 1 a75 1 prog gnupg = { @ 1.1 log @new package: gnupg2 2.0.0 (GNU Privacy Guard) @ text @d109 1 @