gcrypt/gcrypt.spec

Wed, 18 Feb 2009 16:40:58 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 18 Feb 2009 16:40:58 +0100
changeset 106
5e7005042079
child 107
2f8ffdf7658b
permissions
-rw-r--r--

Import package vendor original spec for necessary manipulations.

michael@106 1 ##
michael@106 2 ## gcrypt.spec -- OpenPKG RPM Package Specification
michael@106 3 ## Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
michael@106 4 ##
michael@106 5 ## Permission to use, copy, modify, and distribute this software for
michael@106 6 ## any purpose with or without fee is hereby granted, provided that
michael@106 7 ## the above copyright notice and this permission notice appear in all
michael@106 8 ## copies.
michael@106 9 ##
michael@106 10 ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
michael@106 11 ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
michael@106 12 ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
michael@106 13 ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
michael@106 14 ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
michael@106 15 ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
michael@106 16 ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
michael@106 17 ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
michael@106 18 ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
michael@106 19 ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
michael@106 20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
michael@106 21 ## SUCH DAMAGE.
michael@106 22 ##
michael@106 23
michael@106 24 # package information
michael@106 25 Name: gcrypt
michael@106 26 Summary: Cryptography Library
michael@106 27 URL: ftp://ftp.gnupg.org/gcrypt/libgcrypt/
michael@106 28 Vendor: Werner Koch et al.
michael@106 29 Packager: OpenPKG Foundation e.V.
michael@106 30 Distribution: OpenPKG Community
michael@106 31 Class: PLUS
michael@106 32 Group: Cryptography
michael@106 33 License: LGPL
michael@106 34 Version: 1.4.3
michael@106 35 Release: 20080921
michael@106 36
michael@106 37 # list of sources
michael@106 38 Source0: ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-%{version}.tar.gz
michael@106 39
michael@106 40 # build information
michael@106 41 Prefix: %{l_prefix}
michael@106 42 BuildRoot: %{l_buildroot}
michael@106 43 BuildPreReq: OpenPKG, openpkg >= 20040130, gpg-error, make, gcc
michael@106 44 PreReq: OpenPKG, openpkg >= 20040130, gpg-error
michael@106 45 AutoReq: no
michael@106 46 AutoReqProv: no
michael@106 47
michael@106 48 %description
michael@106 49 GCrypt is the split-out cryptography library from GnuPG.
michael@106 50
michael@106 51 %track
michael@106 52 prog gcrypt = {
michael@106 53 version = %{version}
michael@106 54 url = ftp://ftp.gnupg.org/gcrypt/libgcrypt/
michael@106 55 regex = libgcrypt-(__VER__)\.tar\.gz
michael@106 56 }
michael@106 57
michael@106 58 %prep
michael@106 59 %setup -q -n libgcrypt-%{version}
michael@106 60
michael@106 61 %build
michael@106 62 ( echo "ac_cv_lib_pthread_pthread_create=no"
michael@106 63 echo "ac_cv_lib_pth_pth_version=no"
michael@106 64 ) >config.cache
michael@106 65 CC="%{l_cc}" \
michael@106 66 CFLAGS="%{l_cflags -O}" \
michael@106 67 GREP="grep" \
michael@106 68 ./configure \
michael@106 69 --cache-file=./config.cache \
michael@106 70 --prefix=%{l_prefix} \
michael@106 71 --mandir=%{l_prefix}/man \
michael@106 72 --infodir=%{l_prefix}/info \
michael@106 73 --disable-shared
michael@106 74 %{l_make} %{l_mflags -O}
michael@106 75
michael@106 76 %install
michael@106 77 rm -rf $RPM_BUILD_ROOT
michael@106 78 %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
michael@106 79 rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir
michael@106 80 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
michael@106 81 %{l_files_std}
michael@106 82
michael@106 83 %files -f files
michael@106 84
michael@106 85 %clean
michael@106 86 rm -rf $RPM_BUILD_ROOT
michael@106 87

mercurial