gpg-error/gpg-error.spec

Fri, 22 Oct 2010 19:11:05 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 22 Oct 2010 19:11:05 +0200
changeset 275
34ad7324825b
child 276
e67c4d490bd3
permissions
-rw-r--r--

Import package vendor original specs for necessary manipulations.

michael@275 1 ##
michael@275 2 ## gpg-error.spec -- OpenPKG RPM Package Specification
michael@275 3 ## Copyright (c) 2000-2010 OpenPKG Foundation e.V. <http://openpkg.net/>
michael@275 4 ##
michael@275 5 ## Permission to use, copy, modify, and distribute this software for
michael@275 6 ## any purpose with or without fee is hereby granted, provided that
michael@275 7 ## the above copyright notice and this permission notice appear in all
michael@275 8 ## copies.
michael@275 9 ##
michael@275 10 ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
michael@275 11 ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
michael@275 12 ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
michael@275 13 ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
michael@275 14 ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
michael@275 15 ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
michael@275 16 ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
michael@275 17 ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
michael@275 18 ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
michael@275 19 ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
michael@275 20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
michael@275 21 ## SUCH DAMAGE.
michael@275 22 ##
michael@275 23
michael@275 24 # package information
michael@275 25 Name: gpg-error
michael@275 26 Summary: GnuPG Error Library
michael@275 27 URL: ftp://ftp.gnupg.org/gcrypt/libgpg-error/
michael@275 28 Vendor: g10 Code GmbH
michael@275 29 Packager: OpenPKG Foundation e.V.
michael@275 30 Distribution: OpenPKG Community
michael@275 31 Class: PLUS
michael@275 32 Group: Cryptography
michael@275 33 License: LGPL
michael@275 34 Version: 1.9
michael@275 35 Release: 20100722
michael@275 36
michael@275 37 # list of sources
michael@275 38 Source0: ftp://ftp.gnupg.org/gcrypt/libgpg-error/libgpg-error-%{version}.tar.gz
michael@275 39 Patch0: gpg-error.patch
michael@275 40
michael@275 41 # build information
michael@275 42 BuildPreReq: OpenPKG, openpkg >= 20100101, make, gcc, gawk
michael@275 43 PreReq: OpenPKG, openpkg >= 20100101
michael@275 44
michael@275 45 %description
michael@275 46 This is a library that defines common error values for all GnuPG
michael@275 47 components. Among these are GPG, GPGSM, GPGME, GPG-Agent, libgcrypt,
michael@275 48 pinentry, SmartCard Daemon and possibly more in the future.
michael@275 49
michael@275 50 %track
michael@275 51 prog gpg-error = {
michael@275 52 version = %{version}
michael@275 53 url = ftp://ftp.gnupg.org/gcrypt/libgpg-error/
michael@275 54 regex = gpg-error-(__VER__)\.tar\.gz
michael@275 55 }
michael@275 56
michael@275 57 %prep
michael@275 58 %setup -q -n libgpg-error-%{version}
michael@275 59 %patch -p0
michael@275 60
michael@275 61 %build
michael@275 62 CC="%{l_cc}" \
michael@275 63 CXX="%{l_cxx}" \
michael@275 64 CFLAGS="%{l_cflags -O}" \
michael@275 65 CXXFLAGS="%{l_cxxflags -O}" \
michael@275 66 CPPFLAGS="%{l_cppflags}" \
michael@275 67 LDFLAGS="%{l_ldflags}" \
michael@275 68 ./configure \
michael@275 69 --prefix=%{l_prefix} \
michael@275 70 --disable-nls \
michael@275 71 --enable-shared=no
michael@275 72 %{l_make} %{l_mflags -O}
michael@275 73
michael@275 74 %install
michael@275 75 %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
michael@275 76 strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
michael@275 77 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
michael@275 78 %{l_files_std}
michael@275 79
michael@275 80 %files -f files
michael@275 81
michael@275 82 %clean
michael@275 83

mercurial