2007-01-16 00:21:52 +01:00
|
|
|
#
|
2011-10-02 20:44:43 +02:00
|
|
|
# spec file for package libgcrypt
|
2007-01-16 00:21:52 +01:00
|
|
|
#
|
2013-02-03 08:04:40 +01:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:21:52 +01:00
|
|
|
#
|
2008-11-02 15:42:29 +01:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-16 00:21:52 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: libgcrypt
|
2012-06-13 09:19:23 +02:00
|
|
|
%define libsoname %{name}11
|
2012-03-23 12:47:53 +01:00
|
|
|
Url: http://directory.fsf.org/wiki/Libgcrypt
|
2013-04-18 21:00:41 +02:00
|
|
|
Version: 1.5.2
|
2012-02-12 17:27:21 +01:00
|
|
|
Release: 0
|
2007-01-16 00:21:52 +01:00
|
|
|
Summary: The GNU Crypto Library
|
2013-03-22 10:31:45 +01:00
|
|
|
License: GPL-2.0+ and LGPL-2.1+ and GPL-3.0+
|
2007-01-16 00:21:52 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2013-03-19 10:04:38 +01:00
|
|
|
Source: ftp://ftp.gnupg.org/gcrypt/libgcrypt/%{name}-%{version}.tar.bz2
|
|
|
|
Source1: ftp://ftp.gnupg.org/gcrypt/libgcrypt/%{name}-%{version}.tar.bz2.sig
|
2010-01-14 15:27:35 +01:00
|
|
|
Source2: baselibs.conf
|
2013-03-19 10:04:38 +01:00
|
|
|
# http://www.gnupg.org/signature_key.en.html
|
|
|
|
Source4: %{name}.keyring
|
2012-06-13 09:19:23 +02:00
|
|
|
Patch0: %{name}-ppc64.patch
|
|
|
|
Patch1: %{name}-strict-aliasing.patch
|
|
|
|
Patch3: %{name}-1.4.1-rijndael_no_strict_aliasing.patch
|
|
|
|
Patch4: %{name}-sparcv9.diff
|
2007-01-16 00:21:52 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2013-03-19 10:04:38 +01:00
|
|
|
BuildRequires: automake >= 1.11
|
2012-06-13 09:19:23 +02:00
|
|
|
BuildRequires: libgpg-error-devel >= 1.8
|
|
|
|
BuildRequires: libtool
|
2013-03-19 10:04:38 +01:00
|
|
|
%if 0%{?suse_version} >= 1230
|
|
|
|
BuildRequires: gpg-offline
|
|
|
|
%endif
|
2007-01-16 00:21:52 +01:00
|
|
|
|
|
|
|
%description
|
2013-03-19 10:04:38 +01:00
|
|
|
Libgcrypt is a general purpose library of cryptographic building
|
|
|
|
blocks. It is originally based on code used by GnuPG. It does not
|
|
|
|
provide any implementation of OpenPGP or other protocols. Thorough
|
|
|
|
understanding of applied cryptography is required to use Libgcrypt.
|
2007-01-16 00:21:52 +01:00
|
|
|
|
2012-06-13 09:19:23 +02:00
|
|
|
%package -n %{libsoname}
|
2008-01-18 02:02:35 +01:00
|
|
|
Summary: The GNU Crypto Library
|
2013-02-03 08:04:40 +01:00
|
|
|
License: GPL-2.0+ and LGPL-2.1+
|
2008-01-18 02:02:35 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2009-01-29 23:14:05 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
2012-06-13 09:19:23 +02:00
|
|
|
Obsoletes: %{name}-64bit
|
2009-01-29 23:14:05 +01:00
|
|
|
%endif
|
|
|
|
#
|
2008-01-18 02:02:35 +01:00
|
|
|
# libgcrypt last used in 10.3
|
2012-06-13 09:19:23 +02:00
|
|
|
Obsoletes: %{name} < %{version}
|
|
|
|
Provides: %{name} = %{version}
|
2008-01-18 02:02:35 +01:00
|
|
|
|
2012-06-13 09:19:23 +02:00
|
|
|
%description -n %{libsoname}
|
2008-01-18 02:02:35 +01:00
|
|
|
Libgcrypt is a general purpose crypto library based on the code used in
|
|
|
|
GnuPG (alpha version).
|
|
|
|
|
2007-01-16 00:21:52 +01:00
|
|
|
%package devel
|
|
|
|
Summary: The GNU Crypto Library
|
2013-02-03 08:04:40 +01:00
|
|
|
License: GFDL-1.1 and GPL-2.0+ and LGPL-2.1+ and MIT
|
2007-01-16 00:21:52 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2012-06-13 09:19:23 +02:00
|
|
|
Requires: %{libsoname} = %{version}
|
2012-03-23 12:47:53 +01:00
|
|
|
Requires: glibc-devel
|
2012-06-13 09:19:23 +02:00
|
|
|
Requires: libgpg-error-devel >= 1.8
|
2008-11-02 15:42:29 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
2012-06-13 09:19:23 +02:00
|
|
|
Obsoletes: %{name}-devel-64bit
|
2008-11-02 15:42:29 +01:00
|
|
|
%endif
|
|
|
|
#
|
2008-01-18 02:02:35 +01:00
|
|
|
PreReq: %install_info_prereq
|
2007-01-16 00:21:52 +01:00
|
|
|
|
|
|
|
%description devel
|
2013-03-19 10:04:38 +01:00
|
|
|
Libgcrypt is a general purpose library of cryptographic building
|
|
|
|
blocks. It is originally based on code used by GnuPG. It does not
|
|
|
|
provide any implementation of OpenPGP or other protocols. Thorough
|
|
|
|
understanding of applied cryptography is required to use Libgcrypt.
|
2007-01-16 00:21:52 +01:00
|
|
|
|
|
|
|
This package contains needed files to compile and link against the
|
|
|
|
library.
|
|
|
|
|
|
|
|
%prep
|
2013-03-19 10:04:38 +01:00
|
|
|
%{?gpg_verify: %gpg_verify %{S:1}}
|
2012-06-13 09:19:23 +02:00
|
|
|
%setup -q -n %{name}-%{version}
|
2007-01-16 00:21:52 +01:00
|
|
|
%patch0 -p1
|
|
|
|
%patch1
|
2008-11-17 17:16:05 +01:00
|
|
|
%patch3 -p1
|
2010-07-20 20:17:16 +02:00
|
|
|
%patch4 -p1
|
2007-01-16 00:21:52 +01:00
|
|
|
|
|
|
|
%build
|
2008-01-18 02:02:35 +01:00
|
|
|
# define ciphers to build
|
2012-03-23 12:47:53 +01:00
|
|
|
ENABLE_CIPHER="arcfour blowfish cast5 des aes twofish serpent rfc2268 seed camellia idea"
|
2008-01-18 02:02:35 +01:00
|
|
|
ENABLE_PUBKEY="dsa elgamal rsa ecc"
|
|
|
|
ENABLE_DIGEST="crc md4 md5 rmd160 sha1 sha256 sha512 tiger whirlpool"
|
|
|
|
#
|
2007-01-16 00:21:52 +01:00
|
|
|
%{?suse_update_config}
|
|
|
|
autoreconf -fi
|
2013-06-17 09:25:49 +02:00
|
|
|
export CFLAGS="%optflags $(getconf LFS_CFLAGS)"
|
2012-02-12 17:27:21 +01:00
|
|
|
%configure --with-pic \
|
2008-01-18 02:02:35 +01:00
|
|
|
--enable-noexecstack \
|
|
|
|
--disable-static \
|
2010-01-14 15:27:35 +01:00
|
|
|
%ifarch %sparc
|
|
|
|
--disable-asm \
|
|
|
|
%endif
|
2008-01-18 02:02:35 +01:00
|
|
|
--enable-ciphers="$ENABLE_CIPHER" \
|
|
|
|
--enable-pubkey-ciphers="$ENABLE_PUBKEY" \
|
2009-04-23 19:01:04 +02:00
|
|
|
--enable-digests="$ENABLE_DIGEST"
|
2010-07-20 20:17:16 +02:00
|
|
|
%{__make} %{?_smp_mflags}
|
2008-01-18 02:02:35 +01:00
|
|
|
|
|
|
|
%check
|
2007-01-16 00:21:52 +01:00
|
|
|
# Nice idea. however this uses /dev/random, which hangs
|
|
|
|
# on hardware without random feeds.
|
2008-01-18 02:02:35 +01:00
|
|
|
#make check
|
2007-01-16 00:21:52 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
2008-01-18 02:02:35 +01:00
|
|
|
#
|
2012-06-13 09:19:23 +02:00
|
|
|
rm %{buildroot}%{_libdir}/%{name}.la
|
2007-01-16 00:21:52 +01:00
|
|
|
|
2012-06-13 09:19:23 +02:00
|
|
|
%post -n %{libsoname} -p /sbin/ldconfig
|
2008-01-18 02:02:35 +01:00
|
|
|
|
2012-06-13 09:19:23 +02:00
|
|
|
%postun -n %{libsoname} -p /sbin/ldconfig
|
2007-01-16 00:21:52 +01:00
|
|
|
|
|
|
|
%post devel
|
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/gcrypt.info.gz
|
2011-10-02 20:44:43 +02:00
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/gcrypt-1.info.gz
|
2013-03-19 10:04:38 +01:00
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/gcrypt-2.info.gz
|
2007-01-16 00:21:52 +01:00
|
|
|
|
|
|
|
%postun devel
|
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/gcrypt.info.gz
|
2011-10-02 20:44:43 +02:00
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/gcrypt-1.info.gz
|
2013-03-19 10:04:38 +01:00
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/gcrypt-2.info.gz
|
2007-01-16 00:21:52 +01:00
|
|
|
|
2012-06-13 09:19:23 +02:00
|
|
|
%files -n %{libsoname}
|
2007-01-16 00:21:52 +01:00
|
|
|
%defattr(-,root,root)
|
2008-01-18 02:02:35 +01:00
|
|
|
%doc AUTHORS COPYING COPYING.LIB ChangeLog NEWS README THANKS TODO
|
2012-06-13 09:19:23 +02:00
|
|
|
%{_libdir}/%{name}.so.11*
|
2007-01-16 00:21:52 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2011-10-02 20:44:43 +02:00
|
|
|
%_infodir/gcrypt.info.gz
|
|
|
|
%_infodir/gcrypt.info-1.gz
|
2013-03-19 10:04:38 +01:00
|
|
|
%_infodir/gcrypt.info-2.gz
|
2008-01-18 02:02:35 +01:00
|
|
|
%_bindir/dumpsexp
|
2009-04-23 19:01:04 +02:00
|
|
|
%_bindir/hmac256
|
2012-06-13 09:19:23 +02:00
|
|
|
%_bindir/%{name}-config
|
|
|
|
%_libdir/%{name}.so
|
2008-01-18 02:02:35 +01:00
|
|
|
%_includedir/gcrypt*.h
|
2012-06-13 09:19:23 +02:00
|
|
|
%_datadir/aclocal/%{name}.m4
|
2007-01-16 00:21:52 +01:00
|
|
|
|
2007-09-13 18:48:03 +02:00
|
|
|
%changelog
|