4 License: LGPL-2.1+ and GPL-2.0+
5 Summary: The GNU Crypto Library
6 %define libsoname %{name}
7 Url: http://directory.fsf.org/wiki/Libgcrypt
8 Group: Security/Crypto Libraries
9 Source: %{name}-%{version}.tar.bz2
10 Source2: baselibs.conf
11 Source1001: libgcrypt.manifest
12 BuildRequires: libgpg-error-devel >= 1.8
13 BuildRequires: libtool
16 Libgcrypt is a general purpose crypto library based on the code used in
17 GnuPG (alpha version).
20 License: GPL-2.0+ and LGPL-2.1+ and X11 and BSD-3-Clause and IETF
21 Summary: The GNU Crypto Library
22 Group: Development/Libraries
23 Requires: %{libsoname} = %{version}
25 Requires: libgpg-error-devel >= 1.8
28 Libgcrypt is a general purpose crypto library based on the code used in
29 GnuPG (alpha version).
31 This package contains needed files to compile and link against the
39 # define ciphers to build
40 ENABLE_CIPHER="arcfour blowfish cast5 des aes twofish serpent rfc2268 seed camellia"
41 ENABLE_PUBKEY="dsa elgamal rsa ecc"
42 ENABLE_DIGEST="crc md4 md5 rmd160 sha1 sha256 sha512 tiger whirlpool"
45 %configure --with-pic \
46 --enable-noexecstack \
48 --enable-ciphers="$ENABLE_CIPHER" \
49 --enable-pubkey-ciphers="$ENABLE_PUBKEY" \
50 --enable-digests="$ENABLE_DIGEST"
54 # Nice idea. however this uses /dev/random, which hangs
55 # on hardware without random feeds.
61 %post -p /sbin/ldconfig
63 %postun -p /sbin/ldconfig
66 %manifest %{name}.manifest
68 %license COPYING COPYING.LIB
69 %{_libdir}/%{name}.so.20*
72 %manifest %{name}.manifest
74 %{_infodir}/gcrypt.info.gz
75 %{_infodir}/gcrypt.info-1.gz
76 %{_infodir}/gcrypt.info-2.gz
77 %{_mandir}/man1/hmac256.1.gz
81 %{_bindir}/%{name}-config
83 %{_includedir}/gcrypt*.h
84 %{_datadir}/aclocal/%{name}.m4