Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade:botan2 to version 2.19.5 #11051

Open
wants to merge 1 commit into
base: 3.0-dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion SPECS-EXTENDED/botan2/botan2.signatures.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"Signatures": {
"Botan-2.14.0.tar.xz": "0c10f12b424a40ee19bde00292098e201d7498535c062d8d5b586d07861a54b5"
"Botan-2.19.5.tar.xz": "dfeea0e0a6f26d6724c4af01da9a7b88487adb2d81ba7c72fcaf52db522c9ad4"
}
}
33 changes: 21 additions & 12 deletions SPECS-EXTENDED/botan2/botan2.spec
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,23 @@ Distribution: Azure Linux
%global major_version 2

Name: botan2
Version: 2.14.0
Release: 2%{?dist}
Version: 2.19.5
Release: 1%{?dist}
Summary: Crypto and TLS for C++11

License: BSD
License: BSD-2-Clause
URL: https://botan.randombit.net/
Source0: https://botan.randombit.net/releases/Botan-%{version}.tar.xz

BuildRequires: gcc-c++
BuildRequires: python3
BuildRequires: python3-devel
BuildRequires: %{_bindir}/sphinx-build
BuildRequires: %{_bindir}/rst2man
BuildRequires: python3-docutils
BuildRequires: python3-setuptools
BuildRequires: python3-sphinx
BuildRequires: bzip2-devel
BuildRequires: zlib-devel
BuildRequires: openssl-devel
BuildRequires: make

%description
Botan is a BSD-licensed crypto library written in C++. It provides a
Expand Down Expand Up @@ -51,6 +52,8 @@ This package contains HTML documentation for %{name}.

%package -n python3-%{name}
Summary: Python3 bindings for %{name}
BuildArch: noarch
Requires: %{name} = %{version}-%{release}
%{?python_provide:%python_provide python3-%{name}}

%description -n python3-%{name}
Expand All @@ -60,14 +63,14 @@ This package contains the Python3 binding for %{name}.


%prep
%autosetup -n Botan-%{version}
%autosetup -n Botan-%{version} -p1


%build
export CXXFLAGS="${CXXFLAGS:-%{optflags}}"

# we have the necessary prerequisites, so enable optional modules
%global enable_modules bzip2,zlib,openssl
%global enable_modules bzip2,zlib

%{__python3} ./configure.py \
--prefix=%{_prefix} \
Expand All @@ -91,6 +94,10 @@ export CXXFLAGS="${CXXFLAGS:-%{optflags}}"
make install PYTHON_EXE=%{__python3} DESTDIR=%{buildroot}

sed -e '1{/^#!/d}' -i %{buildroot}%{python3_sitearch}/botan2.py
%if "%{python3_sitelib}" != "%{python3_sitearch}"
mkdir -p %{buildroot}%{python3_sitelib}
mv %{buildroot}%{python3_sitearch}/botan2.py %{buildroot}%{python3_sitelib}/botan2.py
%endif

# doc installation fixups
mv %{buildroot}%{_docdir}/botan-%{version} %{buildroot}%{_pkgdocdir}
Expand All @@ -104,9 +111,9 @@ rm -r %{buildroot}%{_pkgdocdir}/handbook/{.doctrees,.buildinfo}
%license license.txt
%dir %{_pkgdocdir}
%{_pkgdocdir}/*.txt
%{_libdir}/libbotan-%{major_version}.so.13*
%{_libdir}/libbotan-%{major_version}.so.19*
%{_bindir}/botan
%{_mandir}/man1/botan.1.gz
%{_mandir}/man1/botan.1*


%files devel
Expand All @@ -124,15 +131,17 @@ rm -r %{buildroot}%{_pkgdocdir}/handbook/{.doctrees,.buildinfo}

%files -n python3-%{name}
%license license.txt
%{python3_sitearch}/%{name}.py
%{python3_sitearch}/__pycache__/*
%pycached %{python3_sitelib}/%{name}.py


%check
LD_LIBRARY_PATH=%{buildroot}%{_libdir} ./botan-test


%changelog
* wed nov 5 2024 Akarsh Chaudhary <[email protected]> - 2.19.5-1
- Upgrade to version 2.19.5

* Fri Oct 15 2021 Pawel Winogrodzki <[email protected]> - 2.14.0-2
- Initial CBL-Mariner import from Fedora 32 (license: MIT).

Expand Down
4 changes: 2 additions & 2 deletions cgmanifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -1227,8 +1227,8 @@
"type": "other",
"other": {
"name": "botan2",
"version": "2.14.0",
"downloadUrl": "https://botan.randombit.net/releases/Botan-2.14.0.tar.xz"
"version": "2.19.5",
"downloadUrl": "https://botan.randombit.net/releases/Botan-2.19.5.tar.xz"
}
}
},
Expand Down