michael@106: ## michael@106: ## gcrypt.spec -- OpenPKG RPM Package Specification michael@284: ## Copyright (c) 2000-2010 OpenPKG Foundation e.V. michael@106: ## michael@106: ## Permission to use, copy, modify, and distribute this software for michael@106: ## any purpose with or without fee is hereby granted, provided that michael@106: ## the above copyright notice and this permission notice appear in all michael@106: ## copies. michael@106: ## michael@106: ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED michael@106: ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF michael@106: ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. michael@106: ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR michael@106: ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, michael@106: ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT michael@106: ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF michael@106: ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND michael@106: ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, michael@106: ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT michael@106: ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF michael@106: ## SUCH DAMAGE. michael@106: ## michael@106: michael@106: # package information michael@106: Name: gcrypt michael@106: Summary: Cryptography Library michael@106: URL: ftp://ftp.gnupg.org/gcrypt/libgcrypt/ michael@106: Vendor: Werner Koch et al. michael@106: Packager: OpenPKG Foundation e.V. michael@106: Distribution: OpenPKG Community michael@106: Class: PLUS michael@106: Group: Cryptography michael@106: License: LGPL michael@284: Version: 1.4.6 michael@285: Release: 20101020 michael@107: michael@107: # package options michael@107: %option with_idea no michael@106: michael@106: # list of sources michael@106: Source0: ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-%{version}.tar.gz michael@107: Source1: idea.c michael@107: Patch0: gcrypt.patch michael@106: michael@106: # build information michael@285: Prefix: %{l_prefix} michael@285: BuildRoot: %{l_buildroot} michael@284: BuildPreReq: OpenPKG, openpkg >= 20100101, gpg-error, make, gcc michael@284: PreReq: OpenPKG, openpkg >= 20100101, gpg-error michael@106: michael@106: %description michael@106: GCrypt is the split-out cryptography library from GnuPG. michael@106: michael@106: %track michael@106: prog gcrypt = { michael@106: version = %{version} michael@106: url = ftp://ftp.gnupg.org/gcrypt/libgcrypt/ michael@106: regex = libgcrypt-(__VER__)\.tar\.gz michael@106: } michael@106: michael@106: %prep michael@106: %setup -q -n libgcrypt-%{version} michael@107: %patch -p0 michael@107: %if "%{with_idea}" == "yes" michael@107: echo $PWD michael@107: pwd michael@107: echo `pwd` michael@107: cp %{SOURCE idea.c} cipher/ michael@107: %{l_shtool} subst \ michael@107: -e 's;^\(EXTRA_libcipher_la_SOURCES =\);\1 idea.c;' \ michael@107: -e 's;^\(GCRYPT_MODULES = .*[^\ \t]\)[\ \t]*$;\1 idea.lo;' \ michael@107: -e 's;^\(GCRYPT_CIPHERS = .*[^\ \t]\)[\ \t]*$;\1 idea.lo;' \ michael@107: -e 's;^\(LIBGCRYPT_CIPHERS = .*[^\ \t]\)[\ \t]*$;\1 idea;' \ michael@107: cipher/Makefile.in michael@107: %{l_shtool} subst \ michael@107: -e 's;^\(available_ciphers="arcfour [^"][^"]*\)";\1 idea";' \ michael@107: configure michael@107: %endif michael@106: michael@106: %build michael@106: ( echo "ac_cv_lib_pthread_pthread_create=no" michael@106: echo "ac_cv_lib_pth_pth_version=no" michael@106: ) >config.cache michael@106: CC="%{l_cc}" \ michael@106: CFLAGS="%{l_cflags -O}" \ michael@107: %if "%{with_idea}" == "yes" michael@107: CPPFLAGS="-DUSE_IDEA $CPPFLAGS" \ michael@107: %endif michael@106: GREP="grep" \ michael@106: ./configure \ michael@106: --cache-file=./config.cache \ michael@106: --prefix=%{l_prefix} \ michael@106: --mandir=%{l_prefix}/man \ michael@106: --infodir=%{l_prefix}/info \ michael@106: --disable-shared michael@106: %{l_make} %{l_mflags -O} michael@106: michael@106: %install michael@285: rm -rf $RPM_BUILD_ROOT michael@285: %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT michael@106: rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir michael@106: %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ michael@106: %{l_files_std} michael@106: michael@106: %files -f files michael@106: michael@106: %clean michael@285: rm -rf $RPM_BUILD_ROOT michael@106: