gpg-error/gpg-error.spec

Sun, 29 May 2011 16:29:06 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sun, 29 May 2011 16:29:06 +0200
changeset 344
e33c1efbd60f
parent 275
34ad7324825b
permissions
-rw-r--r--

Update, correct, improve build configuration and packaging logic.
Update to new version of vendor software, bump copyright date, remove implicit
gcc dependency, add comments for Trolltech bug tracking, correct enforced
dynamic library linkage, and install mysterious process stub binary.

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@276 35 Release: 20101020
michael@275 36
michael@275 37 # list of sources
michael@276 38 Prefix: %{l_prefix}
michael@276 39 BuildRoot: %{l_buildroot}
michael@275 40 Source0: ftp://ftp.gnupg.org/gcrypt/libgpg-error/libgpg-error-%{version}.tar.gz
michael@275 41 Patch0: gpg-error.patch
michael@275 42
michael@275 43 # build information
michael@275 44 BuildPreReq: OpenPKG, openpkg >= 20100101, make, gcc, gawk
michael@275 45 PreReq: OpenPKG, openpkg >= 20100101
michael@275 46
michael@275 47 %description
michael@275 48 This is a library that defines common error values for all GnuPG
michael@275 49 components. Among these are GPG, GPGSM, GPGME, GPG-Agent, libgcrypt,
michael@275 50 pinentry, SmartCard Daemon and possibly more in the future.
michael@275 51
michael@275 52 %track
michael@275 53 prog gpg-error = {
michael@275 54 version = %{version}
michael@275 55 url = ftp://ftp.gnupg.org/gcrypt/libgpg-error/
michael@275 56 regex = gpg-error-(__VER__)\.tar\.gz
michael@275 57 }
michael@275 58
michael@275 59 %prep
michael@275 60 %setup -q -n libgpg-error-%{version}
michael@275 61 %patch -p0
michael@275 62
michael@275 63 %build
michael@275 64 CC="%{l_cc}" \
michael@275 65 CXX="%{l_cxx}" \
michael@275 66 CFLAGS="%{l_cflags -O}" \
michael@275 67 CXXFLAGS="%{l_cxxflags -O}" \
michael@275 68 CPPFLAGS="%{l_cppflags}" \
michael@275 69 LDFLAGS="%{l_ldflags}" \
michael@275 70 ./configure \
michael@275 71 --prefix=%{l_prefix} \
michael@275 72 --disable-nls \
michael@275 73 --enable-shared=no
michael@275 74 %{l_make} %{l_mflags -O}
michael@275 75
michael@275 76 %install
michael@276 77 rm -rf $RPM_BUILD_ROOT
michael@275 78 %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
michael@275 79 strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
michael@275 80 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
michael@275 81 %{l_files_std}
michael@275 82
michael@275 83 %files -f files
michael@275 84
michael@275 85 %clean
michael@276 86 rm -rf $RPM_BUILD_ROOT
michael@275 87

mercurial