libksba/libksba.spec

Fri, 22 Oct 2010 19:52:12 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 22 Oct 2010 19:52:12 +0200
changeset 279
b4136bb65c40
child 280
12edd2e01528
permissions
-rw-r--r--

Import package vendor original specs for necessary manipulations.

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@279 35 Release: 20100716
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@279 41 BuildPreReq: OpenPKG, openpkg >= 20100101
michael@279 42 PreReq: OpenPKG, openpkg >= 20100101
michael@279 43 BuildPreReq: gpg-error
michael@279 44 PreReq: gpg-error
michael@279 45
michael@279 46 %description
michael@279 47 LibKSBA is the CMS and X.509 access library used by some GnuPG
michael@279 48 related software.
michael@279 49
michael@279 50 %track
michael@279 51 prog libksba = {
michael@279 52 version = %{version}
michael@279 53 url = ftp://ftp.gnupg.org/gcrypt/libksba/
michael@279 54 regex = libksba-(__VER__)\.tar\.bz2
michael@279 55 }
michael@279 56
michael@279 57 %prep
michael@279 58 %setup -q
michael@279 59
michael@279 60 %build
michael@279 61 CC="%{l_cc}" \
michael@279 62 CFLAGS="%{l_cflags -O}" \
michael@279 63 CPPFLAGS="%{l_cppflags}" \
michael@279 64 LDFLAGS="%{l_ldflags}" \
michael@279 65 ./configure \
michael@279 66 --prefix=%{l_prefix} \
michael@279 67 --infodir=%{l_prefix}/info \
michael@279 68 --with-gpg-error-prefix=%{l_prefix} \
michael@279 69 --disable-shared
michael@279 70 %{l_make} %{l_mflags -O}
michael@279 71
michael@279 72 %install
michael@279 73 %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
michael@279 74 rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir
michael@279 75 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
michael@279 76
michael@279 77 %files -f files
michael@279 78
michael@279 79 %clean
michael@279 80

mercurial