michael@279: ## michael@279: ## libksba.spec -- OpenPKG RPM Package Specification michael@279: ## Copyright (c) 2000-2010 OpenPKG Foundation e.V. michael@279: ## michael@279: ## Permission to use, copy, modify, and distribute this software for michael@279: ## any purpose with or without fee is hereby granted, provided that michael@279: ## the above copyright notice and this permission notice appear in all michael@279: ## copies. michael@279: ## michael@279: ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED michael@279: ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF michael@279: ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. michael@279: ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR michael@279: ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, michael@279: ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT michael@279: ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF michael@279: ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND michael@279: ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, michael@279: ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT michael@279: ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF michael@279: ## SUCH DAMAGE. michael@279: ## michael@279: michael@279: # package information michael@279: Name: libksba michael@279: Summary: CMS/X.509 Access Library michael@279: URL: http://www.gnupg.org/related_software/libksba/ michael@279: Vendor: Werner Koch et al. michael@279: Packager: OpenPKG Foundation e.V. michael@279: Distribution: OpenPKG Community michael@279: Class: PLUS michael@279: Group: Cryptography michael@279: License: GPL/LGPL michael@279: Version: 1.0.8 michael@280: Release: 20101020 michael@279: michael@279: # list of sources michael@279: Source0: ftp://ftp.gnupg.org/gcrypt/libksba/libksba-%{version}.tar.bz2 michael@279: michael@279: # build information michael@280: Prefix: %{l_prefix} michael@280: BuildRoot: %{l_buildroot} michael@279: BuildPreReq: OpenPKG, openpkg >= 20100101 michael@279: PreReq: OpenPKG, openpkg >= 20100101 michael@279: BuildPreReq: gpg-error michael@279: PreReq: gpg-error michael@279: michael@279: %description michael@279: LibKSBA is the CMS and X.509 access library used by some GnuPG michael@279: related software. michael@279: michael@279: %track michael@279: prog libksba = { michael@279: version = %{version} michael@279: url = ftp://ftp.gnupg.org/gcrypt/libksba/ michael@279: regex = libksba-(__VER__)\.tar\.bz2 michael@279: } michael@279: michael@279: %prep michael@279: %setup -q michael@279: michael@279: %build michael@279: CC="%{l_cc}" \ michael@279: CFLAGS="%{l_cflags -O}" \ michael@279: CPPFLAGS="%{l_cppflags}" \ michael@279: LDFLAGS="%{l_ldflags}" \ michael@279: ./configure \ michael@279: --prefix=%{l_prefix} \ michael@279: --infodir=%{l_prefix}/info \ michael@279: --with-gpg-error-prefix=%{l_prefix} \ michael@279: --disable-shared michael@279: %{l_make} %{l_mflags -O} michael@279: michael@279: %install michael@280: rm -rf $RPM_BUILD_ROOT michael@279: %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" michael@279: rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir michael@279: %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} michael@279: michael@279: %files -f files michael@279: michael@279: %clean michael@280: rm -rf $RPM_BUILD_ROOT michael@279: