From e93be971924b71c16311afb1f5954254fbdb64873b978258d942e3a845e87c78 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Wed, 10 Mar 2010 11:27:31 +0000 Subject: [PATCH 1/7] Accepting request 34467 from home:oertel:branches:devel:libraries:c_c++ Copy from home:oertel:branches:devel:libraries:c_c++/Botan via accept of submit request 34467 revision 2. Request was accepted with message: Reviewed ok OBS-URL: https://build.opensuse.org/request/show/34467 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/Botan?expand=0&rev=13 --- Botan.changes | 6 ++++++ Botan.spec | 2 ++ botan-1.8.8-binutils_lea_offset.patch | 28 +++++++++++++++++++++++++++ 3 files changed, 36 insertions(+) create mode 100644 botan-1.8.8-binutils_lea_offset.patch diff --git a/Botan.changes b/Botan.changes index 7bef5d5..aa3bf64 100644 --- a/Botan.changes +++ b/Botan.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Mar 10 01:01:48 CET 2010 - ro@suse.de + +- add patch from fedora to fix build on x86_64 + (botan-1.8.8-binutils_lea_offset.patch) + ------------------------------------------------------------------- Sun Jan 10 04:27:38 CET 2010 - jengelh@medozas.de diff --git a/Botan.spec b/Botan.spec index 2f0387c..c74b4d7 100644 --- a/Botan.spec +++ b/Botan.spec @@ -32,6 +32,7 @@ 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 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 @@ -92,6 +93,7 @@ Authors: %patch0 %patch1 %patch2 +%patch3 %build export RPM_OPT_FLAGS diff --git a/botan-1.8.8-binutils_lea_offset.patch b/botan-1.8.8-binutils_lea_offset.patch new file mode 100644 index 0000000..378371f --- /dev/null +++ b/botan-1.8.8-binutils_lea_offset.patch @@ -0,0 +1,28 @@ +# +# +# 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 From 634972220b44ae7ddc92767d69d07f9e5dbb0f29c2bd89813ad232a9054597ed Mon Sep 17 00:00:00 2001 From: OBS User autobuild Date: Fri, 12 Mar 2010 00:10:58 +0000 Subject: [PATCH 2/7] Accepting request 34490 from devel:libraries:c_c++ checked in (request 34490) OBS-URL: https://build.opensuse.org/request/show/34490 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/Botan?expand=0&rev=14 --- Botan.changes | 6 ------ Botan.spec | 2 -- botan-1.8.8-binutils_lea_offset.patch | 28 --------------------------- 3 files changed, 36 deletions(-) delete mode 100644 botan-1.8.8-binutils_lea_offset.patch diff --git a/Botan.changes b/Botan.changes index aa3bf64..7bef5d5 100644 --- a/Botan.changes +++ b/Botan.changes @@ -1,9 +1,3 @@ -------------------------------------------------------------------- -Wed Mar 10 01:01:48 CET 2010 - ro@suse.de - -- add patch from fedora to fix build on x86_64 - (botan-1.8.8-binutils_lea_offset.patch) - ------------------------------------------------------------------- Sun Jan 10 04:27:38 CET 2010 - jengelh@medozas.de diff --git a/Botan.spec b/Botan.spec index c74b4d7..2f0387c 100644 --- a/Botan.spec +++ b/Botan.spec @@ -32,7 +32,6 @@ 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 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 @@ -93,7 +92,6 @@ Authors: %patch0 %patch1 %patch2 -%patch3 %build export RPM_OPT_FLAGS diff --git a/botan-1.8.8-binutils_lea_offset.patch b/botan-1.8.8-binutils_lea_offset.patch deleted file mode 100644 index 378371f..0000000 --- a/botan-1.8.8-binutils_lea_offset.patch +++ /dev/null @@ -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 From cf3e0b143cfe3243774db410c29b1415d0fead40624f56afcaa474325d401472 Mon Sep 17 00:00:00 2001 From: Philipp Thomas Date: Tue, 31 Aug 2010 12:17:29 +0000 Subject: [PATCH 3/7] Accepting request 46811 from home:a_jaeger:branches:build-compare-test Copy from home:a_jaeger:branches:build-compare-test/Botan via accept of submit request 46811 revision 4. Request was accepted with message: OK OBS-URL: https://build.opensuse.org/request/show/46811 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/Botan?expand=0&rev=15 --- Botan.changes | 12 ++++++++++++ Botan.spec | 7 ++++++- botan-1.8.8-binutils_lea_offset.patch | 28 +++++++++++++++++++++++++++ no-buildtime.patch | 22 +++++++++++++++++++++ ready | 0 5 files changed, 68 insertions(+), 1 deletion(-) create mode 100644 botan-1.8.8-binutils_lea_offset.patch create mode 100644 no-buildtime.patch delete mode 100644 ready diff --git a/Botan.changes b/Botan.changes index 7bef5d5..b618a28 100644 --- a/Botan.changes +++ b/Botan.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +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 + +- add patch from fedora to fix build on x86_64 + (botan-1.8.8-binutils_lea_offset.patch) + ------------------------------------------------------------------- Sun Jan 10 04:27:38 CET 2010 - jengelh@medozas.de diff --git a/Botan.spec b/Botan.spec index 2f0387c..441462a 100644 --- a/Botan.spec +++ b/Botan.spec @@ -21,7 +21,7 @@ Name: Botan Version: 1.8.8 -Release: 4 +Release: 5 Url: http://botan.randombit.net Summary: A C++ Crypto Library License: BSD3c @@ -32,10 +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: no-buildtime.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: pkg-config %description Botan is a C++ library that provides support for many common @@ -92,6 +95,8 @@ Authors: %patch0 %patch1 %patch2 +%patch3 +%patch4 %build export RPM_OPT_FLAGS diff --git a/botan-1.8.8-binutils_lea_offset.patch b/botan-1.8.8-binutils_lea_offset.patch new file mode 100644 index 0000000..378371f --- /dev/null +++ b/botan-1.8.8-binutils_lea_offset.patch @@ -0,0 +1,28 @@ +# +# +# 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 diff --git a/no-buildtime.patch b/no-buildtime.patch new file mode 100644 index 0000000..a462f54 --- /dev/null +++ b/no-buildtime.patch @@ -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 + ------- diff --git a/ready b/ready deleted file mode 100644 index 473a0f4..0000000 From 42e563e34981920bcccedeb40bbb94bfe3d37411f6a23612d89000cb16d2e4dd Mon Sep 17 00:00:00 2001 From: Philipp Thomas Date: Thu, 2 Sep 2010 10:07:50 +0000 Subject: [PATCH 4/7] - 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. OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/Botan?expand=0&rev=16 --- Botan-1.8.10.tar.bz2 | 3 ++ Botan-1.8.8.tar.bz2 | 3 -- ...uildtime.patch => Botan-no-buildtime.patch | 0 Botan-qt_thread_support.patch | 24 ++++++++++++++ Botan.changes | 33 +++++++++++++++++++ Botan.spec | 17 +++++----- botan-1.8.8-binutils_lea_offset.patch | 28 ---------------- 7 files changed, 69 insertions(+), 39 deletions(-) create mode 100644 Botan-1.8.10.tar.bz2 delete mode 100644 Botan-1.8.8.tar.bz2 rename no-buildtime.patch => Botan-no-buildtime.patch (100%) create mode 100644 Botan-qt_thread_support.patch delete mode 100644 botan-1.8.8-binutils_lea_offset.patch diff --git a/Botan-1.8.10.tar.bz2 b/Botan-1.8.10.tar.bz2 new file mode 100644 index 0000000..9976a1f --- /dev/null +++ b/Botan-1.8.10.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e9da2d0f6a107f2a2032a5a1dcd27091f4a6ed428d896def5c91b4908be5fb6d +size 2828431 diff --git a/Botan-1.8.8.tar.bz2 b/Botan-1.8.8.tar.bz2 deleted file mode 100644 index 89ef2e7..0000000 --- a/Botan-1.8.8.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:73c8731368140a951ae03899d651dc1b9b94e27c1125e41cdf3c32d6881ec4eb -size 2557313 diff --git a/no-buildtime.patch b/Botan-no-buildtime.patch similarity index 100% rename from no-buildtime.patch rename to Botan-no-buildtime.patch diff --git a/Botan-qt_thread_support.patch b/Botan-qt_thread_support.patch new file mode 100644 index 0000000..a2e980f --- /dev/null +++ b/Botan-qt_thread_support.patch @@ -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 + #include + +-#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. + +-all -> qt-mt ++all -> QtCore + diff --git a/Botan.changes b/Botan.changes index b618a28..a769373 100644 --- a/Botan.changes +++ b/Botan.changes @@ -1,3 +1,36 @@ +------------------------------------------------------------------- +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 diff --git a/Botan.spec b/Botan.spec index 441462a..d1f9d4d 100644 --- a/Botan.spec +++ b/Botan.spec @@ -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,7 +20,7 @@ %define version_suffix 1_8_2 Name: Botan -Version: 1.8.8 +Version: 1.8.10 Release: 5 Url: http://botan.randombit.net Summary: A C++ Crypto Library @@ -32,13 +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: no-buildtime.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: pkg-config +BuildRequires: pkg-config libqt4-devel %description Botan is a C++ library that provides support for many common @@ -52,7 +52,7 @@ Authors: -------- Jack Lloyd -%package -n libbotan-1_8_2 +%package -n libbotan-%{version_suffix} License: BSD3c Summary: A C++ Crypto Library Group: Development/Libraries/C and C++ @@ -95,8 +95,8 @@ Authors: %patch0 %patch1 %patch2 -%patch3 %patch4 +%patch5 %build export RPM_OPT_FLAGS @@ -108,9 +108,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 diff --git a/botan-1.8.8-binutils_lea_offset.patch b/botan-1.8.8-binutils_lea_offset.patch deleted file mode 100644 index 378371f..0000000 --- a/botan-1.8.8-binutils_lea_offset.patch +++ /dev/null @@ -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 From b06576eceba64be59a4381deea3351b106d8042b21a8488658fccda23936b8f1 Mon Sep 17 00:00:00 2001 From: OBS User autobuild Date: Fri, 3 Sep 2010 11:51:22 +0000 Subject: [PATCH 5/7] Accepting request 46980 from devel:libraries:c_c++ checked in (request 46980) OBS-URL: https://build.opensuse.org/request/show/46980 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/Botan?expand=0&rev=17 --- Botan-1.8.10.tar.bz2 | 3 --- Botan-1.8.8.tar.bz2 | 3 +++ Botan-no-buildtime.patch | 22 --------------- Botan-qt_thread_support.patch | 24 ----------------- Botan.changes | 39 --------------------------- Botan.spec | 16 +++++------ botan-1.8.8-binutils_lea_offset.patch | 28 +++++++++++++++++++ 7 files changed, 37 insertions(+), 98 deletions(-) delete mode 100644 Botan-1.8.10.tar.bz2 create mode 100644 Botan-1.8.8.tar.bz2 delete mode 100644 Botan-no-buildtime.patch delete mode 100644 Botan-qt_thread_support.patch create mode 100644 botan-1.8.8-binutils_lea_offset.patch diff --git a/Botan-1.8.10.tar.bz2 b/Botan-1.8.10.tar.bz2 deleted file mode 100644 index 9976a1f..0000000 --- a/Botan-1.8.10.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e9da2d0f6a107f2a2032a5a1dcd27091f4a6ed428d896def5c91b4908be5fb6d -size 2828431 diff --git a/Botan-1.8.8.tar.bz2 b/Botan-1.8.8.tar.bz2 new file mode 100644 index 0000000..89ef2e7 --- /dev/null +++ b/Botan-1.8.8.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:73c8731368140a951ae03899d651dc1b9b94e27c1125e41cdf3c32d6881ec4eb +size 2557313 diff --git a/Botan-no-buildtime.patch b/Botan-no-buildtime.patch deleted file mode 100644 index a462f54..0000000 --- a/Botan-no-buildtime.patch +++ /dev/null @@ -1,22 +0,0 @@ -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 - ------- diff --git a/Botan-qt_thread_support.patch b/Botan-qt_thread_support.patch deleted file mode 100644 index a2e980f..0000000 --- a/Botan-qt_thread_support.patch +++ /dev/null @@ -1,24 +0,0 @@ -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 - #include - --#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. - --all -> qt-mt -+all -> QtCore - diff --git a/Botan.changes b/Botan.changes index a769373..aa3bf64 100644 --- a/Botan.changes +++ b/Botan.changes @@ -1,42 +1,3 @@ -------------------------------------------------------------------- -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 diff --git a/Botan.spec b/Botan.spec index d1f9d4d..1bc688d 100644 --- a/Botan.spec +++ b/Botan.spec @@ -1,5 +1,5 @@ # -# spec file for package Botan (Version 1.8.10) +# spec file for package Botan (Version 1.8.8) # # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # @@ -20,7 +20,7 @@ %define version_suffix 1_8_2 Name: Botan -Version: 1.8.10 +Version: 1.8.8 Release: 5 Url: http://botan.randombit.net Summary: A C++ Crypto Library @@ -32,13 +32,11 @@ Source: %{name}-%{version}.tar.bz2 Patch0: Botan-inttypes.patch Patch1: Botan-ull_constants.patch.bz2 Patch2: Botan-fix_install_paths.patch -Patch4: Botan-no-buildtime.patch -Patch5: Botan-qt_thread_support.patch +Patch3: botan-1.8.8-binutils_lea_offset.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: pkg-config libqt4-devel %description Botan is a C++ library that provides support for many common @@ -52,7 +50,7 @@ Authors: -------- Jack Lloyd -%package -n libbotan-%{version_suffix} +%package -n libbotan-1_8_2 License: BSD3c Summary: A C++ Crypto Library Group: Development/Libraries/C and C++ @@ -95,8 +93,7 @@ Authors: %patch0 %patch1 %patch2 -%patch4 -%patch5 +%patch3 %build export RPM_OPT_FLAGS @@ -108,10 +105,9 @@ 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 -I/usr/include/Qt" +make %{?_smp_mflags} WARN_FLAGS="$RPM_OPT_FLAGS" %install %makeinstall diff --git a/botan-1.8.8-binutils_lea_offset.patch b/botan-1.8.8-binutils_lea_offset.patch new file mode 100644 index 0000000..378371f --- /dev/null +++ b/botan-1.8.8-binutils_lea_offset.patch @@ -0,0 +1,28 @@ +# +# +# 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 From 9cac7e1d7b2216d1690c0e39961e08b690614fd09ded774a9a27fc66493faeaf Mon Sep 17 00:00:00 2001 From: Philipp Thomas Date: Wed, 22 Jun 2011 14:07:02 +0000 Subject: [PATCH 6/7] - Devel package now is versioned so multiple devel packages may be installed in parallel. - Devel package renamed back to Botan-devel to keep rpmlint from thinking it is a library package ... - Update to 1.10.0: New Features: * SSL (SSLv3, TLS 1.0, and TLS 1.1 are currently supported) * GOST 34.10-2001 signature scheme (a Russian ECC signature standard analogous to ECDSA) * The SHA-3 candidates Keccak and Blue Midnight Wish * Bcrypt password hashing * XSalsa20 * AES key wrapping * Comb4P hash combinator. Other Changes: * The block cipher interface now exposes any possible parallelism available to the implementation, and XTS, CTR, and CBC modes have been changed to use them. * SIMD implementations of Serpent, XTEA, Noekeon, and IDEA have been added, as has an implementation of AES using SSSE3 which runs both in constant time and, on recent processors, significantly faster than the usual table based implementation. There have also been numerous optimizations to elliptic curves. * The documentation, previously written in LaTeX, is now in reStructuredText, which is converted into HTML with Sphinx. This new format is significantly easier to write, encouraging more documentation to be written and updated. And, indeed, a number of features never before documented are now described in the manual. OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/Botan?expand=0&rev=18 --- Botan-1.10.0.tar.bz2 | 3 ++ Botan-1.8.8.tar.bz2 | 3 -- Botan-fix_install_paths.patch | 54 ++++++++++++------- Botan-fix_pkgconfig.patch | 12 +++++ Botan-inttypes.patch | 39 ++++++++++---- Botan-no-buildtime.patch | 15 ++++++ Botan-qt_thread_support.patch | 24 +++++++++ Botan.changes | 75 +++++++++++++++++++++++++++ Botan.spec | 70 ++++++++++++------------- botan-1.8.8-binutils_lea_offset.patch | 28 ---------- 10 files changed, 226 insertions(+), 97 deletions(-) create mode 100644 Botan-1.10.0.tar.bz2 delete mode 100644 Botan-1.8.8.tar.bz2 create mode 100644 Botan-fix_pkgconfig.patch create mode 100644 Botan-no-buildtime.patch create mode 100644 Botan-qt_thread_support.patch delete mode 100644 botan-1.8.8-binutils_lea_offset.patch diff --git a/Botan-1.10.0.tar.bz2 b/Botan-1.10.0.tar.bz2 new file mode 100644 index 0000000..f4e9dc7 --- /dev/null +++ b/Botan-1.10.0.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:65669a2ba74e07e1fa9ec5435c4785a5d901e4b5ca504701e9ec561513448aeb +size 2188918 diff --git a/Botan-1.8.8.tar.bz2 b/Botan-1.8.8.tar.bz2 deleted file mode 100644 index 89ef2e7..0000000 --- a/Botan-1.8.8.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:73c8731368140a951ae03899d651dc1b9b94e27c1125e41cdf3c32d6881ec4eb -size 2557313 diff --git a/Botan-fix_install_paths.patch b/Botan-fix_install_paths.patch index 6e6c8a5..6d5dbc0 100644 --- a/Botan-fix_install_paths.patch +++ b/Botan-fix_install_paths.patch @@ -1,26 +1,44 @@ Index: src/build-data/makefile/unix.in =================================================================== ---- src/build-data/makefile/unix.in.orig 2009-11-03 19:02:17.000000000 +0100 -+++ src/build-data/makefile/unix.in 2009-12-11 19:10:50.687527483 +0100 -@@ -19,7 +19,7 @@ VERSION = %{version} - ################################################## - DESTDIR = %{prefix} +--- src/build-data/makefile/unix.in.orig 2011-06-21 17:33:59.550471797 +0200 ++++ src/build-data/makefile/unix.in 2011-06-21 17:35:52.643901474 +0200 +@@ -12,12 +12,12 @@ VERSION = %{version} + SERIES = %{version_major}.%{version_minor} + + # Installation Settings +-DESTDIR = %{prefix} ++DESTDIR = -BINDIR = $(DESTDIR)/bin -+BINDIR = $(DESTDIR)/%{prefix}/bin - LIBDIR = $(DESTDIR)/%{libdir} - HEADERDIR = $(DESTDIR)/%{includedir}/botan - DOCDIR = $(DESTDIR)/%{docdir}/Botan-$(VERSION) +-LIBDIR = $(DESTDIR)/%{libdir} +-HEADERDIR = $(DESTDIR)/%{includedir}/botan-$(SERIES)/botan +-DOCDIR = $(DESTDIR)/%{docdir}/botan-$(VERSION) ++BINDIR = $(DESTDIR)%{prefix}/bin ++LIBDIR = $(DESTDIR)%{libdir} ++HEADERDIR = $(DESTDIR)%{includedir}/botan-$(SERIES)/botan ++DOCDIR = $(DESTDIR)%{docdir}/Botan-$(VERSION) + PKGCONF_DIR = $(LIBDIR)/pkgconfig + + CONFIG_SCRIPT = %{botan_config} Index: src/build-data/makefile/unix_shr.in =================================================================== ---- src/build-data/makefile/unix_shr.in.orig 2009-11-03 19:02:17.000000000 +0100 -+++ src/build-data/makefile/unix_shr.in 2009-12-11 19:10:40.239524087 +0100 -@@ -22,7 +22,7 @@ SO_VERSION = %{so_version} - ################################################## - DESTDIR = %{prefix} +--- src/build-data/makefile/unix_shr.in.orig 2011-06-21 17:33:59.550471797 +0200 ++++ src/build-data/makefile/unix_shr.in 2011-06-21 17:35:50.812926900 +0200 +@@ -14,12 +14,12 @@ VERSION = %{version} + SERIES = %{version_major}.%{version_minor} + + # Installation Settings +-DESTDIR = %{prefix} ++DESTDIR = -BINDIR = $(DESTDIR)/bin -+BINDIR = $(DESTDIR)/%{prefix}/bin - LIBDIR = $(DESTDIR)/%{libdir} - HEADERDIR = $(DESTDIR)/%{includedir}/botan - DOCDIR = $(DESTDIR)/%{docdir}/Botan-$(VERSION) +-LIBDIR = $(DESTDIR)/%{libdir} +-HEADERDIR = $(DESTDIR)/%{includedir}/botan-$(SERIES)/botan +-DOCDIR = $(DESTDIR)/%{docdir}/botan-$(VERSION) ++BINDIR = $(DESTDIR)%{prefix}/bin ++LIBDIR = $(DESTDIR)%{libdir} ++HEADERDIR = $(DESTDIR)%{includedir}/botan-$(SERIES)/botan ++DOCDIR = $(DESTDIR)%{docdir}/Botan-$(VERSION) + PKGCONF_DIR = $(LIBDIR)/pkgconfig + + CONFIG_SCRIPT = %{botan_config} diff --git a/Botan-fix_pkgconfig.patch b/Botan-fix_pkgconfig.patch new file mode 100644 index 0000000..efbef64 --- /dev/null +++ b/Botan-fix_pkgconfig.patch @@ -0,0 +1,12 @@ +Index: src/build-data/botan.pc.in +=================================================================== +--- src/build-data/botan.pc.in.orig 2011-06-20 15:52:09.000000000 +0200 ++++ src/build-data/botan.pc.in 2011-06-21 18:17:45.434985232 +0200 +@@ -1,6 +1,6 @@ + prefix=%{prefix} + exec_prefix=${prefix} +-libdir=${prefix}/%{libdir} ++libdir=${prefix}%{libdir} + includedir=${prefix}/include/botan-%{version_major}.%{version_minor} + + Name: Botan diff --git a/Botan-inttypes.patch b/Botan-inttypes.patch index 6acb523..63b54b8 100644 --- a/Botan-inttypes.patch +++ b/Botan-inttypes.patch @@ -1,27 +1,46 @@ Index: src/utils/types.h =================================================================== ---- src/utils/types.h.orig 2009-11-03 19:02:17.000000000 +0100 -+++ src/utils/types.h 2009-11-23 18:18:51.924780607 +0100 -@@ -9,21 +9,22 @@ +--- src/utils/types.h.orig 2011-06-20 15:52:09.000000000 +0200 ++++ src/utils/types.h 2011-06-21 16:48:39.324325773 +0200 +@@ -9,8 +9,8 @@ #define BOTAN_TYPES_H__ #include +-#include +- ++#include +#include - - namespace Botan { - + /** + * The primary namespace for the botan library + */ +@@ -19,22 +19,22 @@ namespace Botan { + /** + * Typedef representing an unsigned 8-bit quantity + */ -typedef unsigned char byte; --typedef unsigned short u16bit; --typedef unsigned int u32bit; +typedef uint8_t byte; + + /** + * Typedef representing an unsigned 16-bit quantity + */ +-typedef unsigned short u16bit; +typedef uint16_t u16bit; + + /** + * Typedef representing an unsigned 32-bit quantity + */ +-typedef unsigned int u32bit; +typedef uint32_t u32bit; + /** + * Typedef representing a signed 32-bit quantity + */ -typedef signed int s32bit; +typedef int32_t s32bit; - #if defined(_MSC_VER) || defined(__BORLANDC__) - typedef unsigned __int64 u64bit; + /** + * Typedef representing an unsigned 64-bit quantity +@@ -44,7 +44,7 @@ typedef signed int s32bit; #elif defined(__KCC) typedef unsigned __long_long u64bit; #elif defined(__GNUG__) diff --git a/Botan-no-buildtime.patch b/Botan-no-buildtime.patch new file mode 100644 index 0000000..1ffe926 --- /dev/null +++ b/Botan-no-buildtime.patch @@ -0,0 +1,15 @@ +Index: src/build-data/buildh.in +=================================================================== +--- src/build-data/buildh.in.orig 2011-06-20 15:52:09.000000000 +0200 ++++ src/build-data/buildh.in 2011-06-21 14:54:51.287402063 +0200 +@@ -3,8 +3,8 @@ + #define BOTAN_BUILD_CONFIG_H__ + + /* +-* This file was automatically generated %{timestamp} UTC by +-* %{user}@%{hostname} running '%{command_line}' ++* This file was automatically generated by ++* %{user} running '%{command_line}' + * + * Target + * - Compiler: %{cc} %{lib_opt} %{mach_opt} diff --git a/Botan-qt_thread_support.patch b/Botan-qt_thread_support.patch new file mode 100644 index 0000000..a8441aa --- /dev/null +++ b/Botan-qt_thread_support.patch @@ -0,0 +1,24 @@ +Index: src/mutex/qt_mutex/mux_qt.cpp +=================================================================== +--- src/mutex/qt_mutex/mux_qt.cpp.orig 2011-06-20 15:52:09.000000000 +0200 ++++ src/mutex/qt_mutex/mux_qt.cpp 2011-06-21 14:56:14.738269417 +0200 +@@ -9,7 +9,7 @@ + #include + #include + +-#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 2011-06-20 15:52:09.000000000 +0200 ++++ src/mutex/qt_mutex/info.txt 2011-06-21 14:55:17.957040061 +0200 +@@ -13,5 +13,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. + +-all -> qt-mt ++all -> QtCore + diff --git a/Botan.changes b/Botan.changes index aa3bf64..bf93457 100644 --- a/Botan.changes +++ b/Botan.changes @@ -1,3 +1,78 @@ +------------------------------------------------------------------- +Tue Jun 21 16:53:15 CEST 2011 - pth@suse.de + +- Devel package now is versioned so multiple devel packages may + be installed in parallel. +- Devel package renamed back to Botan-devel to keep rpmlint from + thinking it is a library package ... + +- Update to 1.10.0: + New Features: + * SSL (SSLv3, TLS 1.0, and TLS 1.1 are currently supported) + * GOST 34.10-2001 signature scheme (a Russian ECC signature standard + analogous to ECDSA) + * The SHA-3 candidates Keccak and Blue Midnight Wish + * Bcrypt password hashing + * XSalsa20 + * AES key wrapping + * Comb4P hash combinator. + + Other Changes: + * The block cipher interface now exposes any possible parallelism + available to the implementation, and XTS, CTR, and CBC modes have been + changed to use them. + + * SIMD implementations of Serpent, XTEA, Noekeon, and IDEA have been + added, as has an implementation of AES using SSSE3 which runs both in + constant time and, on recent processors, significantly faster than the + usual table based implementation. There have also been numerous + optimizations to elliptic curves. + + * The documentation, previously written in LaTeX, is now in + reStructuredText, which is converted into HTML with Sphinx. This new + format is significantly easier to write, encouraging more documentation + to be written and updated. And, indeed, a number of features never + before documented are now described in the manual. + +------------------------------------------------------------------- +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 diff --git a/Botan.spec b/Botan.spec index 1bc688d..b3cfa96 100644 --- a/Botan.spec +++ b/Botan.spec @@ -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. # @@ -17,26 +17,30 @@ # norootforbuild -%define version_suffix 1_8_2 +%define version_suffix 1_10-0 +%define short_version 1.10 Name: Botan -Version: 1.8.8 -Release: 5 +Version: 1.10.0 +Release: 1 Url: http://botan.randombit.net Summary: A C++ Crypto Library License: BSD3c AutoReqProv: on Prefix: /usr Group: Development/Libraries/C and C++ -Source: %{name}-%{version}.tar.bz2 +Source: Botan-1.10.0.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 +Patch6: Botan-fix_pkgconfig.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 +54,8 @@ Authors: -------- Jack Lloyd -%package -n libbotan-1_8_2 +%package -n libbotan-%{version_suffix} + License: BSD3c Summary: A C++ Crypto Library Group: Development/Libraries/C and C++ @@ -67,18 +72,19 @@ Authors: -------- Jack Lloyd -%package -n libbotan-devel +%package %{short_version}-devel License: BSD3c Summary: Development files for Botan Group: Development/Libraries/C and C++ Requires: libbotan-1_8_2 = %{version} Requires: gmp-devel libbz2-devel -Provides: Botan-devel = %{version} -Obsoletes: Botan-devel < %{version} +Provides: Botan-devel = %{version}, libbotan-devel = %{version} +Obsoletes: Botan-devel < %{version}, libbotan-devel < %{version} Requires: libbotan-%{version_suffix} = %{version} -%define botan_docdir %{_defaultdocdir}/%{name} -%description -n libbotan-devel +%define botan_docdir %{_datadir}/doc/packages/%{name}-%{version} + +%description %{short_version}-devel This package contains the header files and libraries needed to develop programs that use the Botan library. @@ -93,28 +99,28 @@ Authors: %patch0 %patch1 %patch2 -%patch3 +%patch4 +%patch5 +%patch6 %build export RPM_OPT_FLAGS %define common_config_flags --libdir=%{_lib} --with-bzip2 --with-zlib --with-gnump --with-openssl ./configure.py --prefix=/usr --libdir=%{_libdir} \ - --docdir=%{_defaultdocdir}/%{name} \ + --docdir=%{_defaultdocdir} \ --includedir=%{_includedir} \ --with-bzip2 \ --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 -mv %{buildroot}/%{botan_docdir}/%{name}-%{version}/* %{buildroot}/%{botan_docdir}/ -rm -rf %{buildroot}/usr/share/doc/Botan-%{version} -rm -f %{buildroot}/%{botan_docdir}/fips140.tex -rm -f %{buildroot}/%{_libdir}/libbotan.a +rm -f %{buildroot}/%{_libdir}/libbotan*.a %post -n libbotan-%{version_suffix} -p /sbin/ldconfig @@ -123,26 +129,14 @@ rm -f %{buildroot}/%{_libdir}/libbotan.a %files -n libbotan-%{version_suffix} %defattr(-,root,root) %docdir %{botan_docdir} -%{botan_docdir}/license.txt -%{botan_docdir}/readme.txt -%{botan_docdir}/log.txt -%{botan_docdir}/thanks.txt -%{botan_docdir}/credits.txt -%{botan_docdir}/pgpkeys.asc -#%{botan_docdir}/info.txt -%{_libdir}/libbotan-*.so +%{botan_docdir}/* +%{_libdir}/libbotan-%{short_version}.so.* -%files -n libbotan-devel +%files %{short_version}-devel %defattr(-,root,root) -%docdir %{botan_docdir} -%dir %{botan_docdir} -%{botan_docdir}/api.pdf -%{botan_docdir}/api.tex -%{botan_docdir}/tutorial.pdf -%{botan_docdir}/tutorial.tex -%{_libdir}/libbotan.so -%{_libdir}/pkgconfig/botan-1.8.pc -%{_includedir}/botan/ -%{_bindir}/botan-config +%{_libdir}/libbotan-%{short_version}.so +%{_libdir}/pkgconfig/botan-%{short_version}.pc +%{_includedir}/botan-%{short_version} +%{_bindir}/botan-config-%{short_version} %changelog diff --git a/botan-1.8.8-binutils_lea_offset.patch b/botan-1.8.8-binutils_lea_offset.patch deleted file mode 100644 index 378371f..0000000 --- a/botan-1.8.8-binutils_lea_offset.patch +++ /dev/null @@ -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 From e9908b0d88b893a7b14f52d9bce7ed1704286b80e4c7ab6af136a5d7df3d2768 Mon Sep 17 00:00:00 2001 From: Philipp Thomas Date: Wed, 22 Jun 2011 14:10:57 +0000 Subject: [PATCH 7/7] - Fix Requires for devel package. OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/Botan?expand=0&rev=19 --- Botan.changes | 5 +++++ Botan.spec | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Botan.changes b/Botan.changes index bf93457..bd197d1 100644 --- a/Botan.changes +++ b/Botan.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jun 22 16:10:32 CEST 2011 - pth@suse.de + +- Fix Requires for devel package. + ------------------------------------------------------------------- Tue Jun 21 16:53:15 CEST 2011 - pth@suse.de diff --git a/Botan.spec b/Botan.spec index b3cfa96..f4732b4 100644 --- a/Botan.spec +++ b/Botan.spec @@ -76,7 +76,6 @@ Authors: License: BSD3c Summary: Development files for Botan Group: Development/Libraries/C and C++ -Requires: libbotan-1_8_2 = %{version} Requires: gmp-devel libbz2-devel Provides: Botan-devel = %{version}, libbotan-devel = %{version} Obsoletes: Botan-devel < %{version}, libbotan-devel < %{version}