================================ libgcrypt:source=1.4.4-2 (previous: 1.4.4-1) cvc rdiff libgcrypt -1 /weasel.rpath.org@wgl:3-devel/1.4.4-2 ================================ 1.4.4-2 Filip Brcic (brcha@xxxxxxx) Wed Jan 6 11:11:39 2010 fixed recipe & metadata libgcrypt.recipe: changed Index: libgcrypt.recipe ==================================================================== contents(size sha1) inode(mtime) --- libgcrypt.recipe /weasel.rpath.org@wgl:3-devel/1.4.4-1 +++ libgcrypt.recipe /weasel.rpath.org@wgl:3-devel/1.4.4-2 @@ -1,42 +1,29 @@ # -# Copyright (c) 2005-2007 rPath, Inc. -# This file is distributed under the terms of the MIT License. -# A copy is available at http://www.rpath.com/permanent/mit-license.html +# Copyright (c) 2010 Filip Brcic <brcha@xxxxxxx> +# Distributed under the terms of the GNU General Public License v3 # -class Libgcrypt(AutoPackageRecipe) : +class Libgcrypt(AutoPackageRecipe): name = 'libgcrypt' version = '1.4.4' - buildRequires = [ 'libgpg-error:devel', 'install-info:runtime' ] - if Arch.x86_64: - buildRequires.extend(['multiarch_wrapper:runtime']) + buildRequires = [ + 'install-info:runtime', 'libgpg-error:devel', + ] + + shortDesc = 'GnuPG crypto library' + longDesc = 'General purpose crypto library based on the code used in GnuPG' + url = 'http://www.gnupg.org/' + licenses = [ 'LGPL-2.1' ] + categories = [ 'System/Development', 'Development/Libraries' ] def unpack(r): - r.addArchive('ftp://ftp.gnupg.org/gcrypt/%(name)s/', keyid='1CE0C630') - - if Arch.x86_64: - # First build 32bit library - macros32 = r.macros.copy() - macros32.cc = '"gcc -m32"' - macros32.cxx = '"g++ -m32"' - macros32.libdir = '%(prefix)s/lib' - r.Configure('--build=%(target32)s --host=%(target32)s', - objDir='build32', overrideMacros=macros32, - preConfigure='CXXCPP=%(bindir)s/cpp USE_ARCH=32') - r.Make(dir='build32', overrideMacros=macros32, preMake='USE_ARCH=32') - r.MakeInstall(dir='build32', overrideMacros=macros32, preMake='USE_ARCH=32') - r.Move('%(bindir)s/libgcrypt-config', '%(bindir)s/libgcrypt-config-32') - r.ComponentSpec('devel', '%(bindir)s/libgcrypt-config-32') + r.addArchive('mirror://gnupg/%(name)s/') def configure(r): - # FIXME: hack to get around missing /lib/cpp link in bootstrap - # gcc - specify where to find the g++ cpp - r.Configure(preConfigure='CXXCPP=%(bindir)s/cpp') - - def policy(r): - if Arch.x86_64: - r.Move('%(bindir)s/libgcrypt-config', '%(bindir)s/libgcrypt-config-64') - r.ComponentSpec('devel', '%(bindir)s/libgcrypt-config-64') - r.Symlink('%(bindir)s/multiarch_wrapper', '%(bindir)s/libgcrypt-config') - r.DanglingSymlinks(exceptions='%(bindir)s/libgcrypt-config') + r.Configure( + ' --disable-padlock-support' + ' --disable-dependency-tracking' + ' --with-pic' + ' --enable-noexecstack' + ) Committed by: brcha