From 6975d27e6098ae7486f2928d72368c45802f41ae Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Fri, 23 Jan 2009 23:40:00 +0000 Subject: [PATCH 1/5] Initialize branch EL-5 for botan --- branch | 1 + 1 file changed, 1 insertion(+) create mode 100644 branch diff --git a/branch b/branch new file mode 100644 index 0000000..42f697a --- /dev/null +++ b/branch @@ -0,0 +1 @@ +EL-5 From 07681937bd35983af1d9acc2143a31c02b92a4f3 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 26 Nov 2009 01:23:02 +0000 Subject: [PATCH 2/5] Fix typo that causes a failure to update the common directory. (releng #2781) --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index c931fe6..d529283 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,10 @@ # Makefile for source rpm: botan -# $Id$ +# $Id: Makefile,v 1.1 2009/01/18 22:29:46 kevin Exp $ NAME := botan SPECFILE = $(firstword $(wildcard *.spec)) define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done +for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done endef MAKEFILE_COMMON := $(shell $(find-makefile-common)) From 8cbc64c2e9bccf04a3cb895fa110875323bedbcb Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 28 Jul 2010 11:13:28 +0000 Subject: [PATCH 3/5] dist-git conversion --- .cvsignore => .gitignore | 0 Makefile | 21 --------------------- branch | 1 - import.log | 2 -- 4 files changed, 24 deletions(-) rename .cvsignore => .gitignore (100%) delete mode 100644 Makefile delete mode 100644 branch delete mode 100644 import.log diff --git a/.cvsignore b/.gitignore similarity index 100% rename from .cvsignore rename to .gitignore diff --git a/Makefile b/Makefile deleted file mode 100644 index d529283..0000000 --- a/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# Makefile for source rpm: botan -# $Id: Makefile,v 1.1 2009/01/18 22:29:46 kevin Exp $ -NAME := botan -SPECFILE = $(firstword $(wildcard *.spec)) - -define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done -endef - -MAKEFILE_COMMON := $(shell $(find-makefile-common)) - -ifeq ($(MAKEFILE_COMMON),) -# attept a checkout -define checkout-makefile-common -test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 -endef - -MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) -endif - -include $(MAKEFILE_COMMON) diff --git a/branch b/branch deleted file mode 100644 index 42f697a..0000000 --- a/branch +++ /dev/null @@ -1 +0,0 @@ -EL-5 diff --git a/import.log b/import.log deleted file mode 100644 index efd1a94..0000000 --- a/import.log +++ /dev/null @@ -1,2 +0,0 @@ -botan-1_8_0-2_fc10:HEAD:botan-1.8.0-2.fc10.src.rpm:1232354502 -botan-1_8_1-1_fc10:HEAD:botan-1.8.1-1.fc10.src.rpm:1232633562 From 97b101615bf0794efe58903a9258e86fa83ee654 Mon Sep 17 00:00:00 2001 From: Thomas Moschny Date: Sat, 10 May 2014 16:16:59 +0200 Subject: [PATCH 4/5] Add patch to fix prime testing. --- botan-1.8.14-fix_prime_testing.patch | 14 ++++++++++++++ botan.spec | 9 ++++++++- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 botan-1.8.14-fix_prime_testing.patch diff --git a/botan-1.8.14-fix_prime_testing.patch b/botan-1.8.14-fix_prime_testing.patch new file mode 100644 index 0000000..5698c6a --- /dev/null +++ b/botan-1.8.14-fix_prime_testing.patch @@ -0,0 +1,14 @@ +============================================================ +--- src/math/numbertheory/numthry.cpp e810b1dace1f2f07c3fceabddb59844a8807d58f ++++ src/math/numbertheory/numthry.cpp 03df310d0075893ff7b86ca57867fa0f0293c22e +@@ -285,9 +285,9 @@ bool passes_mr_tests(RandomNumberGenerat + + u32bit tests = miller_rabin_test_iterations(n.bits(), verify); + +- BigInt nonce; + for(u32bit i = 0; i != tests; ++i) + { ++ BigInt nonce; + if(!verify && PRIMES[i] < (n-1)) + nonce = PRIMES[i]; + else diff --git a/botan.spec b/botan.spec index cb1aebf..5a051b4 100644 --- a/botan.spec +++ b/botan.spec @@ -1,6 +1,6 @@ Name: botan Version: 1.8.14 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Crypto library written in C++ Group: System Environment/Libraries @@ -12,6 +12,9 @@ Source0: Botan-%{version}.stripped.tbz Source1: README.fedora # soname was changed unintentionally upstream, revert it. Patch0: botan-1.8.14-soname.patch +# patch to fix prime testing, see also +# http://botan.randombit.net/relnotes/1_10_8.html +Patch1: botan-1.8.14-fix_prime_testing.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: gcc-c++ @@ -51,6 +54,7 @@ developing applications that use %{name}. %prep %setup -q -n Botan-%{version} %patch0 -p0 +%patch1 -p0 cp -av %{SOURCE1} . %build @@ -122,6 +126,9 @@ LD_LIBRARY_PATH=%{buildroot}%{_libdir} ./check --validate %changelog +* Sat May 10 2014 Thomas Moschny - 1.8.14-2 +- Add patch to fix prime testing. + * Sat Aug 25 2012 Thomas Moschny - 1.8.14-1 - Update to 1.8.14. From 0a1517fcd9f562f184547eb77970633a330869a3 Mon Sep 17 00:00:00 2001 From: Thomas Moschny Date: Mon, 15 Feb 2016 19:04:11 +0100 Subject: [PATCH 5/5] Update to 1.8.15. - Remove patch applied upstream. - Remove %defattr directives. --- .gitignore | 1 + botan-1.8.14-fix_prime_testing.patch | 14 ------------ botan-1.8.14-soname.patch | 19 ---------------- botan-1.8.15-soname.patch | 12 ++++++++++ botan.spec | 23 +++++++++---------- repack.sh | 34 ++++++++++++++-------------- sources | 2 +- 7 files changed, 42 insertions(+), 63 deletions(-) delete mode 100644 botan-1.8.14-fix_prime_testing.patch delete mode 100644 botan-1.8.14-soname.patch create mode 100644 botan-1.8.15-soname.patch diff --git a/.gitignore b/.gitignore index c755cb4..970128b 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ /Botan-1.8.12.stripped.tbz /Botan-1.8.13.stripped.tbz /Botan-1.8.14.stripped.tbz +/Botan-1.8.15.stripped.tar.gz diff --git a/botan-1.8.14-fix_prime_testing.patch b/botan-1.8.14-fix_prime_testing.patch deleted file mode 100644 index 5698c6a..0000000 --- a/botan-1.8.14-fix_prime_testing.patch +++ /dev/null @@ -1,14 +0,0 @@ -============================================================ ---- src/math/numbertheory/numthry.cpp e810b1dace1f2f07c3fceabddb59844a8807d58f -+++ src/math/numbertheory/numthry.cpp 03df310d0075893ff7b86ca57867fa0f0293c22e -@@ -285,9 +285,9 @@ bool passes_mr_tests(RandomNumberGenerat - - u32bit tests = miller_rabin_test_iterations(n.bits(), verify); - -- BigInt nonce; - for(u32bit i = 0; i != tests; ++i) - { -+ BigInt nonce; - if(!verify && PRIMES[i] < (n-1)) - nonce = PRIMES[i]; - else diff --git a/botan-1.8.14-soname.patch b/botan-1.8.14-soname.patch deleted file mode 100644 index 6976728..0000000 --- a/botan-1.8.14-soname.patch +++ /dev/null @@ -1,19 +0,0 @@ -# -# old_revision [adcf24b7e258c125f78aaff4ef2d3557f1183c3e] -# -# patch "configure.py" -# from [b43917e0e74e7ef1ff0024542da0dabe104a1582] -# to [ba82e657a585f31e9ba20056a57c5f597c0f0297] -# -============================================================ ---- configure.py b43917e0e74e7ef1ff0024542da0dabe104a1582 -+++ configure.py ba82e657a585f31e9ba20056a57c5f597c0f0297 -@@ -38,7 +38,7 @@ class BuildConfigurationInformation(obje - version_major = 1 - version_minor = 8 - version_patch = 14 -- version_so_patch = 13 -+ version_so_patch = 2 - version_suffix = '' - - version_string = '%d.%d.%d%s' % ( diff --git a/botan-1.8.15-soname.patch b/botan-1.8.15-soname.patch new file mode 100644 index 0000000..92621f0 --- /dev/null +++ b/botan-1.8.15-soname.patch @@ -0,0 +1,12 @@ +diff -up Botan-1.8.15/configure.py.orig Botan-1.8.15/configure.py +--- Botan-1.8.15/configure.py.orig 2016-02-13 17:52:52.000000000 +0100 ++++ Botan-1.8.15/configure.py 2016-02-13 19:42:13.768986406 +0100 +@@ -38,7 +38,7 @@ class BuildConfigurationInformation(obje + version_major = 1 + version_minor = 8 + version_patch = 15 +- version_so_patch = 13 ++ version_so_patch = 2 + version_suffix = '' + + version_string = '%d.%d.%d%s' % ( diff --git a/botan.spec b/botan.spec index 5a051b4..6f43c6c 100644 --- a/botan.spec +++ b/botan.spec @@ -1,20 +1,17 @@ Name: botan -Version: 1.8.14 -Release: 2%{?dist} +Version: 1.8.15 +Release: 1%{?dist} Summary: Crypto library written in C++ Group: System Environment/Libraries License: BSD URL: http://botan.randombit.net/ # tarfile is stripped using repack.sh. original tarfile to be found -# here: http://files.randombit.net/botan/Botan-%%{version}.tbz -Source0: Botan-%{version}.stripped.tbz +# here: http://botan.randombit.net/releases/Botan-%%{version}.tgz +Source0: Botan-%{version}.stripped.tar.gz Source1: README.fedora # soname was changed unintentionally upstream, revert it. -Patch0: botan-1.8.14-soname.patch -# patch to fix prime testing, see also -# http://botan.randombit.net/relnotes/1_10_8.html -Patch1: botan-1.8.14-fix_prime_testing.patch +Patch0: botan-1.8.15-soname.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: gcc-c++ @@ -53,8 +50,7 @@ developing applications that use %{name}. %prep %setup -q -n Botan-%{version} -%patch0 -p0 -%patch1 -p0 +%patch0 -p1 cp -av %{SOURCE1} . %build @@ -97,7 +93,6 @@ rm -rf %{buildroot} %files -%defattr(-,root,root,-) %{_libdir}/libbotan*-*.so %doc _doc/readme.txt _doc/log.txt _doc/thanks.txt _doc/credits.txt %doc _doc/license.txt _doc/fips140.tex _doc/pgpkeys.asc @@ -105,7 +100,6 @@ rm -rf %{buildroot} %files devel -%defattr(-,root,root,-) %doc doc/examples %doc _doc/api* _doc/tutorial* %{_bindir}/botan-config @@ -126,6 +120,11 @@ LD_LIBRARY_PATH=%{buildroot}%{_libdir} ./check --validate %changelog +* Sat Feb 13 2016 Thomas Moschny - 1.8.15-1 +- Update to 1.8.15. +- Remove patch applied upstream. +- Remove %%defattr directives. + * Sat May 10 2014 Thomas Moschny - 1.8.14-2 - Add patch to fix prime testing. diff --git a/repack.sh b/repack.sh index 9bd4162..475c8b7 100755 --- a/repack.sh +++ b/repack.sh @@ -1,23 +1,23 @@ #! /bin/bash -version=1.8.14 -name=Botan-${version} -suffix=.tbz -newsuffix=.stripped.tbz -compr=bzip2 +name=Botan-1.8.15 +src=${name}.tgz +dst=${name}.stripped.tar.gz -trap '${tmpfile:+rm ${tmpfile}}' EXIT -tmpfile=$(mktemp) +rm -f ${dst} ${dst%.gz} +cp -av ${src} ${dst} -${compr} -cd ${name}${suffix} > ${tmpfile} +gzip -d ${dst} -tar --delete --file=${tmpfile} ./Botan-${version}/src/block/idea -tar --delete --file=${tmpfile} ./Botan-${version}/src/block/rc6 -tar --delete --file=${tmpfile} ./Botan-${version}/src/block/rc5 -tar --delete --file=${tmpfile} ./Botan-${version}/src/math/gfpmath -tar --delete --file=${tmpfile} ./Botan-${version}/src/pubkey/ec_dompar -tar --delete --file=${tmpfile} ./Botan-${version}/src/pubkey/ecc_key -tar --delete --file=${tmpfile} ./Botan-${version}/src/pubkey/ecdsa -tar --delete --file=${tmpfile} ./Botan-${version}/src/pubkey/eckaeg +tar --delete --file=${dst%.gz} \ + ${name}/src/block/idea \ + ${name}/src/block/rc6 \ + ${name}/src/block/rc5 \ + ${name}/src/math/gfpmath \ + ${name}/src/pubkey/ec_dompar \ + ${name}/src/pubkey/ecc_key \ + ${name}/src/pubkey/ecdsa \ + ${name}/src/pubkey/eckaeg +touch -m -r ${src} ${dst%.gz} -${compr} -c ${tmpfile} > ${name}${newsuffix} +gzip ${dst%.gz} diff --git a/sources b/sources index 219b46d..cdf2878 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -4b5ce78b1cfc0735eb7ec4f6903068ca Botan-1.8.14.stripped.tbz +9206a5cb467cd9c8f81be72a52a2d4f8 Botan-1.8.15.stripped.tar.gz