SHA256
1
0
forked from pool/Botan

Accepting request 46980 from devel:libraries:c_c++

Copy from devel:libraries:c_c++/Botan based on submit request 46980 from user psmt

OBS-URL: https://build.opensuse.org/request/show/46980
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/Botan?expand=0&rev=13
This commit is contained in:
OBS User autobuild 2010-09-03 11:51:23 +00:00 committed by Git OBS Bridge
parent af9a3106b6
commit 05d5bd9487
7 changed files with 100 additions and 38 deletions

3
Botan-1.8.10.tar.bz2 Normal file
View File

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

View File

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

22
Botan-no-buildtime.patch Normal file
View File

@ -0,0 +1,22 @@
Index: src/build-data/buildh.in
===================================================================
--- src/build-data/buildh.in.orig
+++ src/build-data/buildh.in
@@ -2,7 +2,7 @@
#ifndef BOTAN_BUILD_CONFIG_H__
#define BOTAN_BUILD_CONFIG_H__
-/* This file was automatically generated %{timestamp} UTC */
+/* This file was automatically generated */
#define BOTAN_VERSION_MAJOR %{version_major}
#define BOTAN_VERSION_MINOR %{version_minor}
@@ -50,7 +50,7 @@
%{local_config}
/*
-%{user}@%{hostname} ran '%{command_line}'
+%{user} ran '%{command_line}'
Target
-------

View File

@ -0,0 +1,24 @@
Index: src/mutex/qt_mutex/mux_qt.cpp
===================================================================
--- src/mutex/qt_mutex/mux_qt.cpp.orig 2010-08-31 18:39:00.000000000 +0200
+++ src/mutex/qt_mutex/mux_qt.cpp 2010-09-01 18:50:46.546845986 +0200
@@ -9,7 +9,7 @@
#include <botan/mux_qt.h>
#include <qmutex.h>
-#if !defined(QT_THREAD_SUPPORT)
+#if !(defined(QT_THREAD_SUPPORT) || !defined(QT_NO_THREAD))
#error Your version of Qt does not support threads or mutexes
#endif
Index: src/mutex/qt_mutex/info.txt
===================================================================
--- src/mutex/qt_mutex/info.txt.orig 2010-08-31 18:39:00.000000000 +0200
+++ src/mutex/qt_mutex/info.txt 2010-09-01 20:07:41.039257575 +0200
@@ -14,5 +14,5 @@ mux_qt.h
# I think we want to always use qt-mt, not qt -- not much point in supporting
# mutexes in a single threaded application, after all.
<libs>
-all -> qt-mt
+all -> QtCore
</libs>

View File

@ -1,3 +1,42 @@
-------------------------------------------------------------------
Wed Sep 1 16:38:40 CEST 2010 - pth@suse.de
- Prefix last patch with Botan-.
- Enable building of the qt_mutex module. This means that from now
on libbotan requires libQtCore.
- Fix test for thread/mutex support to also work for Qt4.
- Update to 1.8.10:
* This release changes a number of aspects of how private keys are
encrypted. The default encryption algorithm has changed from 3DES
to AES-256
* The default iteration count for PBES1 and PBES2 encryption schemes
(which are used primarily to encrypt asymmetric keys like RSA or
DSA) has increased from 2048 to 10000, which should make brute
force key cracking substantially harder.
* The first round of AES now uses a smaller set of lookup tables;
this only reduces performance slightly but some timing and cache
analysis attacks against AES are substantially harder when AES is
implemented this way.
* The class known as S2K was renamed PBKDF in 1.9, with a typedef
for backwards compatibility. For providing an equivalent forward
compatibility path, 1.8.10 includes a typedef for PBKDF and a new
accessor function get_pbkdf. It also includes a new interface for
deriving keys with a passphrase which takes both the passphrase
and desired output length as well as the salt and iteration
count; in many cases this call is actually significantly more
convenient than the older API.
-------------------------------------------------------------------
Tue Aug 31 09:22:59 UTC 2010 - aj@suse.de
- Do not include build time and host in package to not trigger rebuilds.
- Add pkg-config build requires as suggested by rpmlint.
-------------------------------------------------------------------
Wed Mar 10 01:01:48 CET 2010 - ro@suse.de

View File

@ -1,5 +1,5 @@
#
# spec file for package Botan (Version 1.8.8)
# spec file for package Botan (Version 1.8.10)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@ -20,8 +20,8 @@
%define version_suffix 1_8_2
Name: Botan
Version: 1.8.8
Release: 5
Version: 1.8.10
Release: 1
Url: http://botan.randombit.net
Summary: A C++ Crypto Library
License: BSD3c
@ -32,11 +32,13 @@ Source: %{name}-%{version}.tar.bz2
Patch0: Botan-inttypes.patch
Patch1: Botan-ull_constants.patch.bz2
Patch2: Botan-fix_install_paths.patch
Patch3: botan-1.8.8-binutils_lea_offset.patch
Patch4: Botan-no-buildtime.patch
Patch5: Botan-qt_thread_support.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: zlib, bzip2 >= 1.0.2, gmp >= 4.1
BuildRequires: bzip2 >= 1.0.2 gmp-devel >= 4.1 zlib-devel
BuildRequires: gcc-c++ gmp-devel libbz2-devel openssl-devel python
BuildRequires: libqt4-devel pkg-config
%description
Botan is a C++ library that provides support for many common
@ -50,7 +52,8 @@ Authors:
--------
Jack Lloyd <lloyd@randombit.net>
%package -n libbotan-1_8_2
%package -n libbotan-%{version_suffix}
License: BSD3c
Summary: A C++ Crypto Library
Group: Development/Libraries/C and C++
@ -93,7 +96,8 @@ Authors:
%patch0
%patch1
%patch2
%patch3
%patch4
%patch5
%build
export RPM_OPT_FLAGS
@ -105,9 +109,10 @@ export RPM_OPT_FLAGS
--with-zlib \
--with-gnump \
--with-openssl \
--enable-modules=qt_mutex \
--with-tr1-implementation=system \
--cpu=%_target_cpu
make %{?_smp_mflags} WARN_FLAGS="$RPM_OPT_FLAGS"
make %{?_smp_mflags} WARN_FLAGS="$RPM_OPT_FLAGS -I/usr/include/Qt"
%install
%makeinstall

View File

@ -1,28 +0,0 @@
#
#
# patch "src/hash/sha1_amd64/sha1_amd64_imp.S"
# from [dd263db10309950dec501dd9257a8df43cf6c6aa]
# to [ab1db7a394b41a1d3b9a63a6e8e1571e4671b962]
#
================================================================================
--- src/hash/sha1_amd64/sha1_amd64_imp.S
+++ src/hash/sha1_amd64/sha1_amd64_imp.S
@@ -103,10 +103,16 @@
subq $320, W
+/*
+* Using negative values for SHA-1 constants > 2^31 to work around
+* a bug in binutils not accepting large lea displacements.
+* -0x70E44324 == 0x8F1BBCDC
+* -0x359D3E2A == 0xCA62C1D6
+*/
#define MAGIC1 0x5A827999
#define MAGIC2 0x6ED9EBA1
-#define MAGIC3 0x8F1BBCDC
-#define MAGIC4 0xCA62C1D6
+#define MAGIC3 -0x70E44324
+#define MAGIC4 -0x359D3E2A
#define T %esi
#define T2 %eax