2007-01-16 00:21:52 +01:00
|
|
|
|
#
|
2010-11-20 11:15:45 +01:00
|
|
|
|
# spec file for package libgcrypt (Version 1.4.6)
|
2007-01-16 00:21:52 +01:00
|
|
|
|
#
|
2010-01-14 15:27:35 +01:00
|
|
|
|
# Copyright (c) 2010 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/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
|
2008-04-10 14:25:16 +02:00
|
|
|
|
|
2007-01-16 00:21:52 +01:00
|
|
|
|
Name: libgcrypt
|
|
|
|
|
BuildRequires: libgpg-error-devel
|
2008-01-18 02:02:35 +01:00
|
|
|
|
Url: http://www.gnu.org/directory/Security/libgcrypt.html
|
2010-11-20 11:15:36 +01:00
|
|
|
|
Version: 1.4.6
|
|
|
|
|
Release: 1
|
2007-01-16 00:21:52 +01:00
|
|
|
|
Summary: The GNU Crypto Library
|
2010-01-14 15:27:35 +01:00
|
|
|
|
License: GPLv2+ ; LGPLv2.1+
|
2007-01-16 00:21:52 +01:00
|
|
|
|
Group: Development/Libraries/C and C++
|
2008-01-18 02:02:35 +01:00
|
|
|
|
AutoReqProv: on
|
2007-01-16 00:21:52 +01:00
|
|
|
|
Source: %name-%version.tar.bz2
|
2010-01-14 15:27:35 +01:00
|
|
|
|
Source2: baselibs.conf
|
2007-01-16 00:21:52 +01:00
|
|
|
|
Patch0: %name-ppc64.patch
|
2007-09-13 18:48:03 +02:00
|
|
|
|
Patch1: libgcrypt-strict-aliasing.patch
|
2009-04-23 19:01:04 +02:00
|
|
|
|
Patch2: libgcrypt-1.4.4-mpicheck.patch
|
2008-11-17 17:16:05 +01:00
|
|
|
|
Patch3: libgcrypt-1.4.1-rijndael_no_strict_aliasing.patch
|
2010-07-20 20:17:16 +02:00
|
|
|
|
Patch4: libgcrypt-sparcv9.diff
|
2007-01-16 00:21:52 +01:00
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Libgcrypt is a general purpose crypto library based on the code used in
|
|
|
|
|
GnuPG (alpha version).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-01-18 02:02:35 +01:00
|
|
|
|
Authors:
|
|
|
|
|
--------
|
|
|
|
|
Maintainer: wk@g10code.com
|
|
|
|
|
|
|
|
|
|
Authors: Werner Koch <wk@gnupg.org>
|
|
|
|
|
Matthew Skala <mskala@ansuz.sooke.bc.ca>
|
|
|
|
|
Michael Roth <mroth@nessie.de>
|
|
|
|
|
Niklas Hernaeus <nh@df.lth.se>
|
|
|
|
|
R<EFBFBD>mi Guyomarch <rguyom@mail.dotcom.fr>
|
|
|
|
|
Timo Schulz <twoaday@freakmail.de>
|
|
|
|
|
|
|
|
|
|
%package -n libgcrypt11
|
2010-01-14 15:27:35 +01:00
|
|
|
|
License: GPLv2+ ; LGPLv2.1+
|
2008-01-18 02:02:35 +01:00
|
|
|
|
Summary: The GNU Crypto Library
|
|
|
|
|
Group: Development/Libraries/C and C++
|
2009-01-29 23:14:05 +01:00
|
|
|
|
# bug437293
|
|
|
|
|
%ifarch ppc64
|
|
|
|
|
Obsoletes: libgcrypt-64bit
|
|
|
|
|
%endif
|
|
|
|
|
#
|
2008-01-18 02:02:35 +01:00
|
|
|
|
# libgcrypt last used in 10.3
|
|
|
|
|
Obsoletes: libgcrypt < %{version}
|
2008-05-16 22:06:57 +02:00
|
|
|
|
Provides: libgcrypt = %{version}
|
2008-01-18 02:02:35 +01:00
|
|
|
|
|
|
|
|
|
%description -n libgcrypt11
|
|
|
|
|
Libgcrypt is a general purpose crypto library based on the code used in
|
|
|
|
|
GnuPG (alpha version).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-01-16 00:21:52 +01:00
|
|
|
|
Authors:
|
|
|
|
|
--------
|
|
|
|
|
Maintainer: wk@g10code.com
|
|
|
|
|
|
|
|
|
|
Authors: Werner Koch <wk@gnupg.org>
|
|
|
|
|
Matthew Skala <mskala@ansuz.sooke.bc.ca>
|
|
|
|
|
Michael Roth <mroth@nessie.de>
|
|
|
|
|
Niklas Hernaeus <nh@df.lth.se>
|
|
|
|
|
R<EFBFBD>mi Guyomarch <rguyom@mail.dotcom.fr>
|
|
|
|
|
Timo Schulz <twoaday@freakmail.de>
|
|
|
|
|
|
|
|
|
|
%package devel
|
2010-01-14 15:27:35 +01:00
|
|
|
|
License: GFDLv1.1 ; GPLv2+ ; LGPLv2.1+ ; MIT
|
2007-01-16 00:21:52 +01:00
|
|
|
|
Summary: The GNU Crypto Library
|
|
|
|
|
Group: Development/Libraries/C and C++
|
2009-04-23 19:01:04 +02:00
|
|
|
|
Requires: libgcrypt11 = %version libgpg-error-devel
|
2008-11-02 15:42:29 +01:00
|
|
|
|
# bug437293
|
|
|
|
|
%ifarch ppc64
|
|
|
|
|
Obsoletes: libgcrypt-devel-64bit
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
|
--------
|
|
|
|
|
Maintainer: wk@g10code.com
|
|
|
|
|
|
|
|
|
|
Authors: Werner Koch <wk@gnupg.org>
|
|
|
|
|
Matthew Skala <mskala@ansuz.sooke.bc.ca>
|
|
|
|
|
Michael Roth <mroth@nessie.de>
|
|
|
|
|
Niklas Hernaeus <nh@df.lth.se>
|
|
|
|
|
R<EFBFBD>mi Guyomarch <rguyom@mail.dotcom.fr>
|
|
|
|
|
Timo Schulz <twoaday@freakmail.de>
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n libgcrypt-%version
|
|
|
|
|
%patch0 -p1
|
|
|
|
|
%patch1
|
2007-09-13 18:48:03 +02:00
|
|
|
|
%patch2
|
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
|
|
|
|
|
ENABLE_CIPHER="arcfour blowfish cast5 des aes twofish serpent rfc2268 seed camellia"
|
|
|
|
|
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
|
2009-04-23 19:01:04 +02:00
|
|
|
|
%configure --with-pic --libdir=/%{_lib} \
|
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
|
|
|
|
#
|
2007-01-16 00:21:52 +01:00
|
|
|
|
rm $RPM_BUILD_ROOT/%{_lib}/libgcrypt.la
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%_libdir
|
2009-04-23 19:01:04 +02:00
|
|
|
|
%{__ln_s} -v /%{_lib}/$(readlink %{buildroot}/%{_lib}/%{name}.so) %{buildroot}%{_libdir}/%{name}.so
|
|
|
|
|
%{__rm} -v %{buildroot}/%{_lib}/%{name}.so
|
2007-01-16 00:21:52 +01:00
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
2008-01-18 02:02:35 +01:00
|
|
|
|
%post -n libgcrypt11
|
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%postun -n libgcrypt11
|
|
|
|
|
/sbin/ldconfig
|
2007-01-16 00:21:52 +01:00
|
|
|
|
|
|
|
|
|
%post devel
|
|
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/gcrypt.info.gz
|
|
|
|
|
|
|
|
|
|
%postun devel
|
|
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/gcrypt.info.gz
|
|
|
|
|
|
2008-01-18 02:02:35 +01:00
|
|
|
|
%files -n libgcrypt11
|
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
|
|
|
|
|
/%_lib/libgcrypt.so.11*
|
2007-01-16 00:21:52 +01:00
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%defattr(-,root,root)
|
2008-01-18 02:02:35 +01:00
|
|
|
|
%doc %_infodir/gcrypt.info.gz
|
|
|
|
|
%_bindir/dumpsexp
|
2009-04-23 19:01:04 +02:00
|
|
|
|
%_bindir/hmac256
|
2008-01-18 02:02:35 +01:00
|
|
|
|
%_bindir/libgcrypt-config
|
|
|
|
|
%_libdir/libgcrypt.so
|
|
|
|
|
%_includedir/gcrypt*.h
|
|
|
|
|
%_datadir/aclocal/libgcrypt.m4
|
2007-01-16 00:21:52 +01:00
|
|
|
|
|
2007-09-13 18:48:03 +02:00
|
|
|
|
%changelog
|