michael@275: ## michael@275: ## gpg-error.spec -- OpenPKG RPM Package Specification michael@275: ## Copyright (c) 2000-2010 OpenPKG Foundation e.V. michael@275: ## michael@275: ## Permission to use, copy, modify, and distribute this software for michael@275: ## any purpose with or without fee is hereby granted, provided that michael@275: ## the above copyright notice and this permission notice appear in all michael@275: ## copies. michael@275: ## michael@275: ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED michael@275: ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF michael@275: ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. michael@275: ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR michael@275: ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, michael@275: ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT michael@275: ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF michael@275: ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND michael@275: ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, michael@275: ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT michael@275: ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF michael@275: ## SUCH DAMAGE. michael@275: ## michael@275: michael@275: # package information michael@275: Name: gpg-error michael@275: Summary: GnuPG Error Library michael@275: URL: ftp://ftp.gnupg.org/gcrypt/libgpg-error/ michael@275: Vendor: g10 Code GmbH michael@275: Packager: OpenPKG Foundation e.V. michael@275: Distribution: OpenPKG Community michael@275: Class: PLUS michael@275: Group: Cryptography michael@275: License: LGPL michael@275: Version: 1.9 michael@276: Release: 20101020 michael@275: michael@275: # list of sources michael@276: Prefix: %{l_prefix} michael@276: BuildRoot: %{l_buildroot} michael@275: Source0: ftp://ftp.gnupg.org/gcrypt/libgpg-error/libgpg-error-%{version}.tar.gz michael@275: Patch0: gpg-error.patch michael@275: michael@275: # build information michael@275: BuildPreReq: OpenPKG, openpkg >= 20100101, make, gcc, gawk michael@275: PreReq: OpenPKG, openpkg >= 20100101 michael@275: michael@275: %description michael@275: This is a library that defines common error values for all GnuPG michael@275: components. Among these are GPG, GPGSM, GPGME, GPG-Agent, libgcrypt, michael@275: pinentry, SmartCard Daemon and possibly more in the future. michael@275: michael@275: %track michael@275: prog gpg-error = { michael@275: version = %{version} michael@275: url = ftp://ftp.gnupg.org/gcrypt/libgpg-error/ michael@275: regex = gpg-error-(__VER__)\.tar\.gz michael@275: } michael@275: michael@275: %prep michael@275: %setup -q -n libgpg-error-%{version} michael@275: %patch -p0 michael@275: michael@275: %build michael@275: CC="%{l_cc}" \ michael@275: CXX="%{l_cxx}" \ michael@275: CFLAGS="%{l_cflags -O}" \ michael@275: CXXFLAGS="%{l_cxxflags -O}" \ michael@275: CPPFLAGS="%{l_cppflags}" \ michael@275: LDFLAGS="%{l_ldflags}" \ michael@275: ./configure \ michael@275: --prefix=%{l_prefix} \ michael@275: --disable-nls \ michael@275: --enable-shared=no michael@275: %{l_make} %{l_mflags -O} michael@275: michael@275: %install michael@276: rm -rf $RPM_BUILD_ROOT michael@275: %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" michael@275: strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true michael@275: %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ michael@275: %{l_files_std} michael@275: michael@275: %files -f files michael@275: michael@275: %clean michael@276: rm -rf $RPM_BUILD_ROOT michael@275: