libksba/libksba.spec

Tue, 29 Mar 2011 19:46:35 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 29 Mar 2011 19:46:35 +0200
changeset 333
4ecfc2416fd8
parent 279
b4136bb65c40
permissions
-rw-r--r--

Correct and introduce slightly needed logic, leading to better reliability:
Update bash(1) patch logic, correct several buildconf make location
errors, correct failed bash(1) configure invocation, enable perl(1) to
build with unpathed make(1), patch rpm(1) to correctly link with
internal libdb(3), and lastly unsuscessfully try to reorganize rpm patch
hunks.

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

mercurial