2008-04-08 22:30:09 +02:00
|
|
|
#
|
2011-06-23 11:44:13 +02:00
|
|
|
# spec file for package Botan
|
2008-04-08 22:30:09 +02:00
|
|
|
#
|
2023-11-17 14:19:41 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2008-04-08 22:30:09 +02:00
|
|
|
#
|
2009-06-18 17:02:41 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-03-29 09:09:19 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2008-04-08 22:30:09 +02:00
|
|
|
#
|
|
|
|
|
2012-08-16 13:36:27 +02:00
|
|
|
|
2021-05-11 11:38:29 +02:00
|
|
|
%{!?make_build: %define make_build make %{?_smp_mflags}}
|
2022-02-03 22:09:33 +01:00
|
|
|
%define version_suffix 2-19
|
2018-02-19 14:39:26 +01:00
|
|
|
%define short_version 2
|
2008-04-08 22:30:09 +02:00
|
|
|
Name: Botan
|
2022-11-18 05:49:47 +01:00
|
|
|
Version: 2.19.3
|
2012-02-07 09:04:15 +01:00
|
|
|
Release: 0
|
2008-04-08 22:30:09 +02:00
|
|
|
Summary: A C++ Crypto Library
|
2014-03-03 14:59:48 +01:00
|
|
|
License: BSD-2-Clause
|
2008-04-08 22:30:09 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2020-11-14 14:17:23 +01:00
|
|
|
URL: https://botan.randombit.net
|
2022-06-13 10:27:25 +02:00
|
|
|
Source0: https://botan.randombit.net/releases/Botan-%{version}.tar.xz
|
|
|
|
Source1: https://botan.randombit.net/releases/Botan-%{version}.tar.xz.asc
|
2015-12-24 14:34:07 +01:00
|
|
|
Source2: %{name}.keyring
|
|
|
|
Source3: baselibs.conf
|
2012-02-07 09:04:15 +01:00
|
|
|
BuildRequires: bzip2 >= 1.0.2
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libbz2-devel
|
2018-02-19 14:39:26 +01:00
|
|
|
BuildRequires: pkgconfig
|
2017-11-01 15:42:17 +01:00
|
|
|
BuildRequires: python3
|
2021-05-11 11:38:29 +02:00
|
|
|
BuildRequires: trousers-devel
|
2012-02-07 09:04:15 +01:00
|
|
|
BuildRequires: zlib-devel
|
2021-05-11 11:38:29 +02:00
|
|
|
BuildRequires: pkgconfig(liblzma)
|
|
|
|
BuildRequires: pkgconfig(sqlite3)
|
2008-04-08 22:30:09 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
Botan is a C++ library that provides support for many common
|
|
|
|
cryptographic operations, including encryption, authentication, and
|
|
|
|
X.509v3 certificates and CRLs. A wide variety of algorithms is
|
|
|
|
supported, including RSA, DSA, DES, AES, MD5, and SHA-1.
|
|
|
|
|
2018-02-19 14:39:26 +01:00
|
|
|
%package -n libbotan-%{version_suffix}
|
2008-04-08 22:30:09 +02:00
|
|
|
Summary: A C++ Crypto Library
|
2018-02-19 14:39:26 +01:00
|
|
|
Group: System/Libraries
|
2008-04-08 22:30:09 +02:00
|
|
|
|
2009-12-16 16:54:21 +01:00
|
|
|
%description -n libbotan-%{version_suffix}
|
2008-04-08 22:30:09 +02:00
|
|
|
Botan is a C++ library that provides support for many common
|
|
|
|
cryptographic operations, including encryption, authentication, and
|
|
|
|
X.509v3 certificates and CRLs. A wide variety of algorithms is
|
|
|
|
supported, including RSA, DSA, DES, AES, MD5, and SHA-1.
|
|
|
|
|
2018-02-19 14:39:26 +01:00
|
|
|
%package -n libbotan-devel
|
2008-04-08 22:30:09 +02:00
|
|
|
Summary: Development files for Botan
|
|
|
|
Group: Development/Libraries/C and C++
|
2015-12-24 14:34:07 +01:00
|
|
|
Requires: libbotan-%{version_suffix} = %{version}
|
2012-08-16 13:36:27 +02:00
|
|
|
Requires: libbz2-devel
|
2021-05-11 11:38:29 +02:00
|
|
|
Requires: trousers-devel
|
|
|
|
Requires: pkgconfig(liblzma)
|
|
|
|
Requires: pkgconfig(sqlite3)
|
2011-06-23 15:42:03 +02:00
|
|
|
Provides: Botan-devel = %{version}
|
|
|
|
Obsoletes: Botan-devel < %{version}
|
- 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
2011-06-22 16:07:02 +02:00
|
|
|
|
2018-02-19 14:39:26 +01:00
|
|
|
%description -n libbotan-devel
|
2008-04-08 22:30:09 +02:00
|
|
|
This package contains the header files and libraries needed to develop
|
|
|
|
programs that use the Botan library.
|
|
|
|
|
2018-02-19 14:39:26 +01:00
|
|
|
%package -n python3-botan
|
|
|
|
Summary: Botan python bindings
|
|
|
|
Group: Development/Languages/Python
|
|
|
|
Requires: python3
|
|
|
|
|
|
|
|
%description -n python3-botan
|
|
|
|
This package contains the python bindings to libbotan's C98 interface.
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
%define botan_docdir %{_docdir}/botan-%{version}
|
|
|
|
Summary: Documentation of Botan
|
|
|
|
Group: Development/Libraries/C and C++
|
2018-02-26 07:42:32 +01:00
|
|
|
BuildArch: noarch
|
2018-02-19 14:39:26 +01:00
|
|
|
|
|
|
|
%description doc
|
|
|
|
Documentation of Botan package.
|
|
|
|
|
2008-04-08 22:30:09 +02:00
|
|
|
%prep
|
2018-02-19 14:39:26 +01:00
|
|
|
%setup -q -n Botan-%{version}
|
2008-04-08 22:30:09 +02:00
|
|
|
|
|
|
|
%build
|
Accepting request 792362 from home:polslinux:branches:devel:libraries:c_c++
- Update to Botan 2.14:
* Add support for using POWER8+ VPSUMD instruction to accelerate GCM (GH #2247)
* Optimize the vector permute AES implementation, especially improving
performance on ARMv7, Aarch64, and POWER. (GH #2243)
* Use a new algorithm for modular inversions which is both faster
and more resistant to side channel attacks. (GH #2287 #2296 #2301)
* Address an issue in CBC padding which would leak the length of the plaintext
which was being padded. Unpadding during decryption was not affected.
* Optimize NIST prime field reductions, improving ECDSA by 3-9% (GH #2295)
* Increase the size of the ECC blinding mask and scale it based on the
size of the group order. (GH #880 #893 #2308)
* Add server side support for the TLS asio wrapper. (GH #2229)
* Add support for using Windows certificate store on MinGW (GH #2280)
* Add a CLI utility cpu_clock which estimates the speed of the processor cycle counter.
* Add Roughtime client (GH #2143 #1842)
* Add support for XMSS X.509 certificates (GH #2172)
* Add support for X.509 CRLs in FFI layer and Python wrapper (GH #2213)
* Add AVX2 implementation of SHACAL2 (GH #2196)
* Support more functionality for X.509 in the Python API (GH #2165)
* Add generic CPU target useful when building for some new or unusual platform.
* Disable MD5 in BSI or NIST modes (GH #2188)
* Many currently public headers are being deprecated. If any such header is included by
an application, a warning is issued at compile time.
Headers issuing this warning will be made internal in a future major release.
* RSA signature performance improvements (GH #2068 #2070)
* Performance improvements for GCM (GH #2024 #2099 #2119), OCB (#2122), XTS (#2123) and
ChaCha20Poly1305 (GH #2117), especially for small messages.
* Add support for constant time AES using NEON and AltiVec (GH #2093 #2095 #2100)
* Improve performance of POWER8 AES instructions (GH #2096)
* Add support for the POWER9 hardware random number generator (GH #2026)
* Add support for 64-bit version of RDRAND, doubling performance on x86-64 (GH #934 #2022)
* In DTLS server, support a client crashing and then reconnecting from the same
source port, as described in RFC 6347 sec 4.2.8 (GH #2029)
* Optimize DTLS MTU splitting to split precisely to the set MTU (GH #2042)
* Add support for the TLS v1.3 downgrade indicator. (GH #2027)
* Add Argon2 PBKDF and password hash (GH #459 #1981 #1987)
* Add Bcrypt-PBKDF (GH #1990)
* Add server side support for issuing DTLS HelloVerifyRequest messages (GH #1999)
* Add support for the TLS v1.3 supported_versions extension. (GH #1976)
* Add Ed25519ph compatible with RFC 8032 (GH #1699 #2000)
* Add support for OCSP stapling on server side. (GH #1703 #1967)
* Add a boost::asio TLS stream compatible with boost::asio::ssl. (GH #1839 #1927 #1992)
* Add a certificate store for Linux/Unix systems. (GH #1885 #1936)
* Various Fixes
OBS-URL: https://build.opensuse.org/request/show/792362
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/Botan?expand=0&rev=92
2020-04-19 14:59:35 +02:00
|
|
|
%define _lto_cflags %{nil}
|
2009-12-16 16:54:21 +01:00
|
|
|
export RPM_OPT_FLAGS
|
2017-11-01 15:42:17 +01:00
|
|
|
python3 ./configure.py \
|
2015-12-24 14:34:07 +01:00
|
|
|
--prefix=%{_prefix} \
|
2018-02-19 14:39:26 +01:00
|
|
|
--bindir=%{_bindir} \
|
2015-12-24 14:34:07 +01:00
|
|
|
--libdir=%{_libdir} \
|
|
|
|
--docdir=%{_defaultdocdir} \
|
|
|
|
--includedir=%{_includedir} \
|
|
|
|
--with-bzip2 \
|
|
|
|
--with-zlib \
|
2021-05-11 11:38:29 +02:00
|
|
|
--with-lzma \
|
2021-04-21 12:41:43 +02:00
|
|
|
--with-openmp \
|
2021-05-11 11:38:29 +02:00
|
|
|
--with-sqlite \
|
|
|
|
--with-tpm \
|
2020-11-14 14:17:23 +01:00
|
|
|
%ifarch %{ix86}
|
2018-04-05 12:02:41 +02:00
|
|
|
--cpu=x86_32
|
2018-04-13 10:38:59 +02:00
|
|
|
%else
|
|
|
|
%ifarch %{arm}
|
|
|
|
--cpu=arm
|
2018-04-05 12:02:41 +02:00
|
|
|
%else
|
2015-12-24 14:34:07 +01:00
|
|
|
--cpu=%{_target_cpu}
|
2018-04-05 12:02:41 +02:00
|
|
|
%endif
|
2018-04-13 10:38:59 +02:00
|
|
|
%endif
|
2018-04-05 12:02:41 +02:00
|
|
|
|
2020-11-14 14:17:23 +01:00
|
|
|
%make_build WARN_FLAGS="%{optflags}"
|
2008-04-08 22:30:09 +02:00
|
|
|
|
|
|
|
%install
|
2018-02-19 14:39:26 +01:00
|
|
|
sed -i 's/env python/env python3/' src/scripts/install.py
|
|
|
|
%make_install
|
- 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
2011-06-22 16:07:02 +02:00
|
|
|
rm -f %{buildroot}/%{_libdir}/libbotan*.a
|
2018-02-19 14:39:26 +01:00
|
|
|
chmod +x %{buildroot}%{python3_sitearch}/botan2.py
|
|
|
|
sed -i '1s@^#!/.*@#!%{_bindir}/python3@' %{buildroot}%{python3_sitearch}/botan2.py
|
2008-04-08 22:30:09 +02:00
|
|
|
|
2023-11-17 15:47:04 +01:00
|
|
|
rm %{buildroot}%{_bindir}/botan
|
2023-11-17 14:19:41 +01:00
|
|
|
|
2021-04-21 12:41:43 +02:00
|
|
|
%check
|
2021-05-11 11:38:29 +02:00
|
|
|
%make_build check
|
2021-04-21 12:41:43 +02:00
|
|
|
|
2009-12-16 16:54:21 +01:00
|
|
|
%post -n libbotan-%{version_suffix} -p /sbin/ldconfig
|
|
|
|
%postun -n libbotan-%{version_suffix} -p /sbin/ldconfig
|
2008-04-08 22:30:09 +02:00
|
|
|
|
2018-02-19 14:39:26 +01:00
|
|
|
%files doc
|
2008-04-08 22:30:09 +02:00
|
|
|
%docdir %{botan_docdir}
|
2011-07-04 17:14:52 +02:00
|
|
|
%{botan_docdir}
|
2018-02-19 14:39:26 +01:00
|
|
|
|
|
|
|
%files -n libbotan-%{version_suffix}
|
- 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
2011-06-22 16:07:02 +02:00
|
|
|
%{_libdir}/libbotan-%{short_version}.so.*
|
|
|
|
|
2011-06-23 15:42:03 +02:00
|
|
|
%files -n libbotan-devel
|
- 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
2011-06-22 16:07:02 +02:00
|
|
|
%{_libdir}/libbotan-%{short_version}.so
|
|
|
|
%{_libdir}/pkgconfig/botan-%{short_version}.pc
|
|
|
|
%{_includedir}/botan-%{short_version}
|
2018-02-19 14:39:26 +01:00
|
|
|
|
|
|
|
%files -n python3-botan
|
|
|
|
%{python3_sitearch}/botan2.py
|
2008-04-08 22:30:09 +02:00
|
|
|
|
|
|
|
%changelog
|