SHA256
1
0
forked from pool/libgcrypt
libgcrypt/libgcrypt.spec

274 lines
8.3 KiB
RPMSpec

#
# spec file for package libgcrypt (Version 1.4.0)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: libgcrypt
BuildRequires: libgpg-error-devel
Url: http://www.gnu.org/directory/Security/libgcrypt.html
Version: 1.4.0
Release: 2
Summary: The GNU Crypto Library
License: GPL v2 or later; LGPL v2.1 or later
Group: Development/Libraries/C and C++
AutoReqProv: on
Source: %name-%version.tar.bz2
Patch0: %name-ppc64.patch
Patch1: libgcrypt-strict-aliasing.patch
Patch2: libgcrypt-mpicheck.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Libgcrypt is a general purpose crypto library based on the code used in
GnuPG (alpha version).
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émi Guyomarch <rguyom@mail.dotcom.fr>
Timo Schulz <twoaday@freakmail.de>
%package -n libgcrypt11
License: GPL v2 or later; LGPL v2.1 or later
Summary: The GNU Crypto Library
Group: Development/Libraries/C and C++
# libgcrypt last used in 10.3
Obsoletes: libgcrypt < %{version}
Provides: libgcrypt == %{version}
%description -n libgcrypt11
Libgcrypt is a general purpose crypto library based on the code used in
GnuPG (alpha version).
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émi Guyomarch <rguyom@mail.dotcom.fr>
Timo Schulz <twoaday@freakmail.de>
%package devel
License: GNU Free Documentation License, Version 1.1 (GFDL 1.1); GPL v2 or later; LGPL v2.1 or later; X11/MIT
Summary: The GNU Crypto Library
Group: Development/Libraries/C and C++
Requires: libgcrypt11 == %version, libgpg-error-devel, glibc-devel
PreReq: %install_info_prereq
%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émi Guyomarch <rguyom@mail.dotcom.fr>
Timo Schulz <twoaday@freakmail.de>
%prep
%setup -q -n libgcrypt-%version
%patch0 -p1
%patch1
%patch2
%build
# 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"
#
%{?suse_update_config}
autoreconf -fi
./configure --prefix=%{_prefix} \
--sysconfdir=/etc \
--libdir=/%{_lib} \
--infodir=%{_infodir} \
--enable-noexecstack \
--disable-static \
--enable-ciphers="$ENABLE_CIPHER" \
--enable-pubkey-ciphers="$ENABLE_PUBKEY" \
--enable-digessts="$ENABLE_DIGEST" \
CFLAGS="$RPM_OPT_FLAGS"
make
%check
# Nice idea. however this uses /dev/random, which hangs
# on hardware without random feeds.
#make check
%install
make DESTDIR=$RPM_BUILD_ROOT install
#
rm $RPM_BUILD_ROOT/%{_lib}/libgcrypt.la
mkdir -p $RPM_BUILD_ROOT%_libdir
rm $RPM_BUILD_ROOT/%{_lib}/libgcrypt.so
ln -s /%{_lib}/libgcrypt.so.11 $RPM_BUILD_ROOT%{_libdir}/libgcrypt.so
%clean
rm -rf $RPM_BUILD_ROOT
%post -n libgcrypt11
/sbin/ldconfig
%postun -n libgcrypt11
/sbin/ldconfig
%post devel
%install_info --info-dir=%{_infodir} %{_infodir}/gcrypt.info.gz
%postun devel
%install_info_delete --info-dir=%{_infodir} %{_infodir}/gcrypt.info.gz
%files -n libgcrypt11
%defattr(-,root,root)
%doc AUTHORS COPYING COPYING.LIB ChangeLog NEWS README THANKS TODO
/%_lib/libgcrypt.so.11*
%files devel
%defattr(-,root,root)
%doc %_infodir/gcrypt.info.gz
%_bindir/dumpsexp
%_bindir/libgcrypt-config
%_libdir/libgcrypt.so
%_includedir/gcrypt*.h
%_datadir/aclocal/libgcrypt.m4
%changelog
* Thu Apr 10 2008 ro@suse.de
- added baselibs.conf file to build xxbit packages
for multilib support
* Thu Jan 17 2008 mkoenig@suse.de
- update to version 1.4.0:
* The entire library is now under the LGPL. The helper programs and
the manual are under the GPL
* New control code GCRYCTL_PRINT_CONFIG
* Experimental support for ECDSA
* Assembler support for the AMD64 architecture
* Non executable stack support is now used by default
* New configure option --enable-random-daemon
* The new function gcry_md_debug should be used instead of the
gcry_md_start_debug and gcry_md_stop_debug macros.
* Support for DSA2
* Reserved algorithm ranges for use by applications
* gcry_mpi_rshift does not anymore truncate the shift count
* Support for OFB encryption mode
* Support for the Camellia cipher
* Support for the SEED cipher
* Support for SHA-224 and HMAC using SHA-384 and SHA-512
* Reading and writing the random seed file is now protected by a
fcntl style file lock
* Made the RNG immune against fork without exec
* Changed the way the RNG gets initialized
* The ASN.1 DER template for SHA-224 has been fixed
* The ACE engine of VIA processors is now used for AES-128
- changed package layout to conform shlib policy:
new subpackage libgcrypt11
- disable static library
- for reference: bugzilla entry of last change #304749
* Thu Sep 13 2007 ltinkl@suse.cz
- add sanity check for mpi of size 0 (#304479)
* Mon Feb 05 2007 mkoenig@suse.de
- update to version 1.2.4:
* Fixed a bug in the memory allocator which could have been the
reason for some of non-duplicable bugs.
* Other minor bug fixes.
* Wed Dec 13 2006 mkoenig@suse.de
- get rid of .la file and fix devel so link
* Tue Dec 05 2006 mkoenig@suse.de
- move shared lib to /%%_lib
* Thu Aug 31 2006 mkoenig@suse.de
- update to version 1.2.3:
* Rewrote gcry_mpi_rshift to allow arbitrary shift counts.
* Minor bug fixes.
- added libgpg-error-devel and glibc-devel to Requires tag
of devel subpackage
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Nov 02 2005 hvogel@suse.de
- enable noexecstack
- build ac.c with fno-strict-aliasing
* Tue Oct 25 2005 hvogel@suse.de
- update to version 1.2.2
* Thu Jun 23 2005 hvogel@suse.de
- call install_info macro in post/postun of the devel package
- depend on libgcrypt
- add clean section
* Tue Jan 18 2005 hvogel@suse.de
- update to version 1.2.1
* Tue Jan 11 2005 schwab@suse.de
- Fix info dir entry.
* Wed Nov 17 2004 hvogel@suse.de
- require libgpg-error-devel (Bug #48271)
- get rid of the NLD parts
* Wed Jul 14 2004 adrian@suse.de
- create -devel subpackage
- prepare for nld
* Wed May 19 2004 hvogel@suse.de
- update to version 1.2.0
* Mon Mar 22 2004 meissner@suse.de
- disable make check, because it uses /dev/random whihc is
not filled on some server machines.
* Wed Mar 17 2004 meissner@suse.de
- fixed too over enthusiastic powerpc switches to make it work
on ppc64. (It compiled before, but did not work).
- enabled make check.
* Wed Feb 18 2004 kukuk@suse.de
- Build against system pthread library, not pth.
* Tue Feb 17 2004 hvogel@suse.de
- update to version 1.1.91
- fix autoconf quotations
* Sat Jan 10 2004 adrian@suse.de
- add %%run_ldconfig to %%postun
* Sun Jul 27 2003 poeml@suse.de
- add libgcrypt-1.1.12-sexp-valgrind-error.patch from SLEC
* Thu Apr 24 2003 ro@suse.de
- fix install_info --delete call and move from preun to postun
* Tue Feb 11 2003 mmj@suse.de
- Use %%install_info macro [#23433]
* Mon Feb 10 2003 mc@suse.de
- switch to version 1.1.12
- gcry_pk_sign, gcry_pk_verify and gcry_pk_encrypt can now handle an
optional pkcs1 flags parameter in the S-expression. A similar flag
may be passed to gcry_pk_decrypt but it is only syntactically
implemented.
- New convenience macro gcry_md_get_asnoid.
- There is now some real stuff in the manual.
- New algorithm: MD4
- Implemented ciphertext stealing.
- Support for plain old DES
- Smaller bugs fixes and a few new OIDs.
* Tue Jan 14 2003 nadvornik@suse.cz
- fixed multi-line string literals
* Fri Aug 02 2002 poeml@suse.de
- create package