commit
5d6ca9cb99
|
@ -1 +1,2 @@
|
|||
Botan-1.8.1.tgz
|
||||
/Botan-1.8.9.tbz
|
||||
/Botan-1.8.9.stripped.tbz
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
For legal reasons, the following modules have been completely removed
|
||||
from the Botan package in Fedora:
|
||||
|
||||
* Block Ciphers
|
||||
* IDEA [src/block/idea]
|
||||
* RC6 [src/block/rc6]
|
||||
* RC5 [src/block/rc5]
|
||||
* Public Key Base
|
||||
* ECC Public Key [src/pubkey/ecc_key]
|
||||
* ECC Domain Parameters [src/pubkey/ec_dompar]
|
||||
* ECDSA [src/pubkey/ecdsa]
|
||||
* ECKAEG [src/pubkey/eckaeg]
|
||||
* Math
|
||||
* GF(p) Math [src/math/gfpmath]
|
81
botan.spec
81
botan.spec
|
@ -1,16 +1,19 @@
|
|||
Name: botan
|
||||
Version: 1.8.1
|
||||
Release: 1%{?dist}
|
||||
Version: 1.8.9
|
||||
Release: 4%{?dist}
|
||||
Summary: Crypto library written in C++
|
||||
|
||||
Group: System Environment/Libraries
|
||||
License: BSD
|
||||
URL: http://botan.randombit.net/
|
||||
Source0: http://files.randombit.net/botan/Botan-%{version}.tgz
|
||||
# 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
|
||||
Source1: README.fedora
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: perl
|
||||
BuildRequires: python
|
||||
|
||||
BuildRequires: bzip2-devel
|
||||
BuildRequires: zlib-devel
|
||||
|
@ -32,6 +35,11 @@ Summary: Development files for %{name}
|
|||
Group: Development/Libraries
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: pkgconfig
|
||||
Requires: bzip2-devel
|
||||
Requires: zlib-devel
|
||||
Requires: gmp-devel
|
||||
Requires: openssl-devel
|
||||
|
||||
|
||||
%description devel
|
||||
The %{name}-devel package contains libraries and header files for
|
||||
|
@ -40,7 +48,7 @@ developing applications that use %{name}.
|
|||
|
||||
%prep
|
||||
%setup -q -n Botan-%{version}
|
||||
|
||||
cp -av %{SOURCE1} .
|
||||
|
||||
%build
|
||||
# we have the necessary prerequisites, so enable optional modules
|
||||
|
@ -49,7 +57,7 @@ developing applications that use %{name}.
|
|||
# fixme: maybe disable unix_procs, very slow.
|
||||
%define disable_modules %{nil}
|
||||
|
||||
./configure.pl \
|
||||
./configure.py \
|
||||
--prefix=%{_prefix} \
|
||||
--libdir=%{_lib} \
|
||||
--cc=gcc \
|
||||
|
@ -86,6 +94,7 @@ rm -rf %{buildroot}
|
|||
%{_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
|
||||
%doc README.fedora
|
||||
|
||||
|
||||
%files devel
|
||||
|
@ -101,10 +110,70 @@ rm -rf %{buildroot}
|
|||
|
||||
%check
|
||||
make CXX="g++ ${CXXFLAGS:-%{optflags}}" %{?_smp_mflags} check
|
||||
|
||||
# these checks would fail
|
||||
mv checks/validate.dat{,.orig}
|
||||
awk '/\[.*\]/{f=0} /\[(RC5.*|RC6|IDEA)\]/{f=1} (f && !/^#/){sub(/^/,"#")} {print}' \
|
||||
checks/validate.dat.orig > checks/validate.dat
|
||||
LD_LIBRARY_PATH=%{buildroot}%{_libdir} ./check --validate
|
||||
|
||||
|
||||
%changelog
|
||||
* Sun Aug 29 2010 Thomas Moschny <thomas.moschny@gmx.de> - 1.8.9-4
|
||||
- Update README.fedora.
|
||||
|
||||
* Fri Aug 27 2010 Thomas Moschny <thomas.moschny@gmx.de> - 1.8.9-3
|
||||
- Also remove RC5 from the tarfile.
|
||||
- Comment out RC5, RC6 and IDEA validation tests.
|
||||
|
||||
* Wed Aug 4 2010 Thomas Moschny <thomas.moschny@gmx.de> - 1.8.9-2
|
||||
- Remove IDEA, RC6, and ECC-related modules from the tarfile,
|
||||
see bz 615372.
|
||||
|
||||
* Wed Jun 16 2010 Thomas Moschny <thomas.moschny@gmx.de> - 1.8.9-1
|
||||
- Update to 1.8.9.
|
||||
- Drop patch applied upstream.
|
||||
|
||||
* Thu Nov 19 2009 Thomas Moschny <thomas.moschny@gmx.de> - 1.8.8-2
|
||||
- Add patch from upstream to build with binutils-2.20.51.0.2.
|
||||
Fixes bz 538949 (ftbfs).
|
||||
|
||||
* Thu Nov 5 2009 Thomas Moschny <thomas.moschny@gmx.de> - 1.8.8-1
|
||||
- Update to 1.8.8, a bugfix release.
|
||||
|
||||
* Thu Sep 10 2009 Thomas Moschny <thomas.moschny@gmx.de> - 1.8.7-1
|
||||
- Update to 1.8.7. This is mainly a bugfix release.
|
||||
|
||||
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 1.8.6-2
|
||||
- rebuilt with new openssl
|
||||
|
||||
* Thu Aug 13 2009 Thomas Moschny <thomas.moschny@gmx.de> - 1.8.6-1
|
||||
- Update to 1.8.6, which contains new features as well as bugfixes,
|
||||
e.g. concerning the /proc-walking entropy source.
|
||||
|
||||
* Wed Aug 12 2009 Thomas Moschny <thomas.moschny@gmx.de> - 1.8.5-2
|
||||
- Fix changelog.
|
||||
|
||||
* Wed Aug 12 2009 Thomas Moschny <thomas.moschny@gmx.de> - 1.8.5-1
|
||||
- Update to 1.8.5.
|
||||
- Use .tbz source file.
|
||||
- Configuration script uses python now.
|
||||
|
||||
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.2-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
||||
|
||||
* Sat Apr 25 2009 Thomas Moschny <thomas.moschny@gmx.de> - 1.8.2-1
|
||||
- Update to 1.8.2.
|
||||
|
||||
* Mon Mar 16 2009 Thomas Moschny <thomas.moschny@gmx.de> - 1.8.1-4
|
||||
- Add missing requirements to -devel package.
|
||||
|
||||
* Fri Feb 27 2009 Thomas Moschny <thomas.moschny@gmx.de> - 1.8.1-3
|
||||
- Rebuilt again after failed attempt in mass rebuild.
|
||||
|
||||
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.1-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
||||
|
||||
* Wed Jan 21 2009 Thomas Moschny <thomas.moschny@gmx.de> - 1.8.1-1
|
||||
- Update to 1.8.1. This is a bugfix release, see
|
||||
http://botan.randombit.net/news/releases/1_8_1.html for changes.
|
||||
|
|
|
@ -0,0 +1,23 @@
|
|||
#! /bin/bash
|
||||
|
||||
version=1.8.9
|
||||
name=Botan-${version}
|
||||
suffix=.tbz
|
||||
newsuffix=.stripped.tbz
|
||||
compr=bzip2
|
||||
|
||||
trap '${tmpfile:+rm ${tmpfile}}' EXIT
|
||||
tmpfile=$(mktemp)
|
||||
|
||||
${compr} -cd ${name}${suffix} > ${tmpfile}
|
||||
|
||||
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
|
||||
|
||||
${compr} -c ${tmpfile} > ${name}${newsuffix}
|
Loading…
Reference in New Issue