SHA256
1
0
forked from pool/libgcrypt
OBS User unknown 2008-01-18 01:02:35 +00:00 committed by Git OBS Bridge
parent 1ba9047201
commit 8363b4f071
5 changed files with 165 additions and 71 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7d6155c4d0a40fba3dba0f21a959c7848c734ba6734de8e27eea26ae53c0c880
size 799237

3
libgcrypt-1.4.0.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d7f855f766944a5b6e7ffee2d6ffdf828ab709acd4453b0e64aea808ce2760ec
size 964779

View File

@ -1,24 +1,25 @@
diff -Nur libgcrypt-1.2.1/mpi/config.links libgcrypt-1.2.1.ppc/mpi/config.links
--- libgcrypt-1.2.1/mpi/config.links 2004-12-16 17:26:18.000000000 +0100
+++ libgcrypt-1.2.1.ppc/mpi/config.links 2005-01-18 11:24:14.713430963 +0100
@@ -221,7 +221,7 @@
path="m68k/mc68020 m68k"
;;
Index: libgcrypt-1.4.0/mpi/config.links
===================================================================
--- libgcrypt-1.4.0.orig/mpi/config.links
+++ libgcrypt-1.4.0/mpi/config.links
@@ -237,11 +237,11 @@ case "${host}" in
;;
- powerpc*-*-linux*)
+ powerpc-*-linux*)
echo '/* configured for powerpc/ELF */' >>./mpi/asm-syntax.h
echo '#define ELF_SYNTAX' >>./mpi/asm-syntax.h
cat $srcdir/mpi/powerpc32/syntax.h >>./mpi/asm-syntax.h
@@ -265,11 +265,11 @@
path="powerpc32"
;;
ppc620-*-* | \
- powerpc64*-*-*)
+ powerpc64-*-*)
mpi_sflags="-Wa,-mppc"
path="powerpc64"
;;
- powerpc*-*-linux*)
+ powerpc-*-linux*)
echo '/* configured for powerpc/ELF */' >>./mpi/asm-syntax.h
echo '#define ELF_SYNTAX' >>./mpi/asm-syntax.h
cat $srcdir/mpi/powerpc32/syntax.h >>./mpi/asm-syntax.h
@@ -276,7 +276,7 @@ case "${host}" in
mpi_sflags="-Wa,-mppc"
path="powerpc32"
;;
- powerpc*-*-*)
+ powerpc-*-*)
mpi_sflags="-Wa,-mppc"

View File

@ -1,3 +1,34 @@
-------------------------------------------------------------------
Thu Jan 17 12:20:25 CET 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 01:28:53 CEST 2007 - ltinkl@suse.cz

View File

@ -1,7 +1,7 @@
#
# spec file for package libgcrypt (Version 1.2.4)
# spec file for package libgcrypt (Version 1.4.0)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# 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.
#
@ -12,19 +12,18 @@
Name: libgcrypt
BuildRequires: libgpg-error-devel
URL: http://www.gnu.org/directory/Security/libgcrypt.html
Version: 1.2.4
Release: 36
Url: http://www.gnu.org/directory/Security/libgcrypt.html
Version: 1.4.0
Release: 1
Summary: The GNU Crypto Library
License: GPL v2 or later, LGPL v2 or later
License: GPL v2 or later; LGPL v2.1 or later
Group: Development/Libraries/C and C++
Autoreqprov: on
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
PreReq: %install_info_prereq
%description
Libgcrypt is a general purpose crypto library based on the code used in
@ -32,6 +31,30 @@ 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
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
@ -46,8 +69,8 @@ Authors:
%package devel
Summary: The GNU Crypto Library
Group: Development/Libraries/C and C++
Provides: libgcrypt:/usr/include/gcrypt.h
Requires: libgcrypt == %version, libgpg-error-devel, glibc-devel
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
@ -76,118 +99,157 @@ Authors:
%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
CFLAGS="$RPM_OPT_FLAGS" ./configure \
--prefix=%{_prefix} \
./configure --prefix=%{_prefix} \
--sysconfdir=/etc \
--libdir=/%{_lib} \
--infodir=%{_infodir} \
--enable-noexecstack
--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
#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
mv $RPM_BUILD_ROOT/%{_lib}/libgcrypt.a $RPM_BUILD_ROOT%_libdir
%clean
rm -rf $RPM_BUILD_ROOT
%post
%run_ldconfig
%post -n libgcrypt11
/sbin/ldconfig
%postun -n libgcrypt11
/sbin/ldconfig
%post devel
%install_info --info-dir=%{_infodir} %{_infodir}/gcrypt.info.gz
%postun
%run_ldconfig
%postun devel
%install_info_delete --info-dir=%{_infodir} %{_infodir}/gcrypt.info.gz
%files
%files -n libgcrypt11
%defattr(-,root,root)
%doc AUTHORS BUGS COPYING COPYING.LIB ChangeLog NEWS README THANKS TODO VERSION
/%_lib/libgcrypt*.so.*
%doc AUTHORS COPYING COPYING.LIB ChangeLog NEWS README THANKS TODO
/%_lib/libgcrypt.so.11*
%files devel
%defattr(-,root,root)
%doc %_infodir/gc*
%_bindir/*
%_libdir/libgcrypt*.so
%_libdir/libgcrypt*a
%_includedir/*
%_datadir/aclocal/*
%doc %_infodir/gcrypt.info.gz
%_bindir/dumpsexp
%_bindir/libgcrypt-config
%_libdir/libgcrypt.so
%_includedir/gcrypt*.h
%_datadir/aclocal/libgcrypt.m4
%changelog
* Thu Sep 13 2007 - ltinkl@suse.cz
* 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
* 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
* Wed Dec 13 2006 mkoenig@suse.de
- get rid of .la file and fix devel so link
* Tue Dec 05 2006 - mkoenig@suse.de
* Tue Dec 05 2006 mkoenig@suse.de
- move shared lib to /%%_lib
* Thu Aug 31 2006 - mkoenig@suse.de
* 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
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Nov 02 2005 - hvogel@suse.de
* Wed Nov 02 2005 hvogel@suse.de
- enable noexecstack
- build ac.c with fno-strict-aliasing
* Tue Oct 25 2005 - hvogel@suse.de
* Tue Oct 25 2005 hvogel@suse.de
- update to version 1.2.2
* Thu Jun 23 2005 - hvogel@suse.de
* 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
* Tue Jan 18 2005 hvogel@suse.de
- update to version 1.2.1
* Tue Jan 11 2005 - schwab@suse.de
* Tue Jan 11 2005 schwab@suse.de
- Fix info dir entry.
* Wed Nov 17 2004 - hvogel@suse.de
* 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
* Wed Jul 14 2004 adrian@suse.de
- create -devel subpackage
- prepare for nld
* Wed May 19 2004 - hvogel@suse.de
* Wed May 19 2004 hvogel@suse.de
- update to version 1.2.0
* Mon Mar 22 2004 - meissner@suse.de
* 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
* 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
* Wed Feb 18 2004 kukuk@suse.de
- Build against system pthread library, not pth.
* Tue Feb 17 2004 - hvogel@suse.de
* Tue Feb 17 2004 hvogel@suse.de
- update to version 1.1.91
- fix autoconf quotations
* Sat Jan 10 2004 - adrian@suse.de
* Sat Jan 10 2004 adrian@suse.de
- add %%run_ldconfig to %%postun
* Sun Jul 27 2003 - poeml@suse.de
* 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
* Thu Apr 24 2003 ro@suse.de
- fix install_info --delete call and move from preun to postun
* Mon Feb 10 2003 - mmj@suse.de
* Mon Feb 10 2003 mmj@suse.de
- Use %%install_info macro [#23433]
* Mon Feb 10 2003 - mc@suse.de
* 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
@ -199,7 +261,7 @@ rm -rf $RPM_BUILD_ROOT
- Implemented ciphertext stealing.
- Support for plain old DES
- Smaller bugs fixes and a few new OIDs.
* Tue Jan 14 2003 - nadvornik@suse.cz
* Tue Jan 14 2003 nadvornik@suse.cz
- fixed multi-line string literals
* Thu Aug 01 2002 - poeml@suse.de
* Thu Aug 01 2002 poeml@suse.de
- create package