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
|
|
|
#
|
2012-02-12 17:27:21 +01:00
|
|
|
# Copyright (c) 2012 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
|
2011-10-02 20:44:43 +02:00
|
|
|
Version: 1.5.0
|
2012-02-12 17:27:21 +01:00
|
|
|
Release: 0
|
2007-01-16 00:21:52 +01:00
|
|
|
Summary: The GNU Crypto Library
|
2011-12-06 18:23:36 +01:00
|
|
|
License: GPL-2.0+ ; LGPL-2.1+
|
2007-01-16 00:21:52 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2012-06-13 09:19:23 +02:00
|
|
|
Source: %{name}-%{version}.tar.bz2
|
2010-01-14 15:27:35 +01:00
|
|
|
Source2: baselibs.conf
|
2012-03-23 12:47:53 +01:00
|
|
|
Source3: idea.c.gz
|
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
|
|
|
|
Patch5: %{name}-1.5.0-idea.patch
|
|
|
|
Patch6: %{name}-1.5.0-idea_codecleanup.patch
|
2007-01-16 00:21:52 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-06-13 09:19:23 +02:00
|
|
|
BuildRequires: libgpg-error-devel >= 1.8
|
|
|
|
BuildRequires: libtool
|
2007-01-16 00:21:52 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
Libgcrypt is a general purpose crypto library based on the code used in
|
|
|
|
GnuPG (alpha version).
|
|
|
|
|
2012-06-13 09:19:23 +02:00
|
|
|
%package -n %{libsoname}
|
2008-01-18 02:02:35 +01:00
|
|
|
Summary: The GNU Crypto Library
|
2012-02-12 17:27:21 +01:00
|
|
|
License: GPL-2.0+ ; 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
|
2012-02-12 17:27:21 +01:00
|
|
|
License: GFDL-1.1 ; GPL-2.0+ ; LGPL-2.1+ ; 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
|
|
|
|
Libgcrypt is a general purpose crypto library based on the code used in
|
|
|
|
GnuPG (alpha version).
|
|
|
|
|
|
|
|
This package contains needed files to compile and link against the
|
|
|
|
library.
|
|
|
|
|
|
|
|
%prep
|
2012-06-13 09:19:23 +02:00
|
|
|
%setup -q -n %{name}-%{version}
|
2012-03-23 12:47:53 +01:00
|
|
|
gzip -dc < %{S:3} > cipher/idea.c
|
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
|
2012-03-23 12:47:53 +01:00
|
|
|
%patch5 -p1
|
|
|
|
%patch6 -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
|
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
|
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
|
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
|
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
|