Benjamin Kircher 174b6da
%global major_version 2
Benjamin Kircher 174b6da
Benjamin Kircher 174b6da
Name:           botan2
9e4eb13
Version:        2.18.2
22f7abe
Release:        1%{?dist}
Benjamin Kircher 174b6da
Summary:        Crypto and TLS for C++11
Benjamin Kircher 174b6da
Benjamin Kircher 174b6da
License:        BSD
Benjamin Kircher 174b6da
URL:            https://botan.randombit.net/
Benjamin Kircher 327d49b
Source0:        https://botan.randombit.net/releases/Botan-%{version}.tar.xz
Benjamin Kircher 174b6da
Benjamin Kircher 174b6da
BuildRequires:  gcc-c++
74e5a7b
BuildRequires:  python3
Benjamin Kircher 174b6da
BuildRequires:  python3-devel
74e5a7b
BuildRequires:  %{_bindir}/sphinx-build
a7fdd74
BuildRequires:  %{_bindir}/rst2man
Benjamin Kircher 174b6da
BuildRequires:  bzip2-devel
Benjamin Kircher 174b6da
BuildRequires:  zlib-devel
Benjamin Kircher 174b6da
BuildRequires:  openssl-devel
e75d60a
BuildRequires:  make
Benjamin Kircher 174b6da
Benjamin Kircher 174b6da
%description
Benjamin Kircher 174b6da
Botan is a BSD-licensed crypto library written in C++. It provides a
Benjamin Kircher 174b6da
wide variety of basic cryptographic algorithms, X.509 certificates and
Benjamin Kircher 174b6da
CRLs, PKCS \#10 certificate requests, a filter/pipe message processing
Benjamin Kircher 174b6da
system, and a wide variety of other features, all written in portable
Benjamin Kircher 174b6da
C++. The API reference, tutorial, and examples may help impart the
Benjamin Kircher 174b6da
flavor of the library. This is the current stable release branch 2.x
Benjamin Kircher 174b6da
of Botan.
Benjamin Kircher 174b6da
Benjamin Kircher 174b6da
Benjamin Kircher 174b6da
%package        devel
Benjamin Kircher 174b6da
Summary:        Development files for %{name}
Benjamin Kircher 174b6da
Requires:       %{name}%{?_isa} = %{version}-%{release}
Benjamin Kircher 174b6da
Benjamin Kircher 174b6da
%description    devel
Benjamin Kircher 174b6da
The %{name}-devel package contains libraries and header files for
Benjamin Kircher 174b6da
developing applications that use %{name}.
Benjamin Kircher 174b6da
Benjamin Kircher 174b6da
Benjamin Kircher 174b6da
%package        doc
Benjamin Kircher 174b6da
Summary:        Documentation for %{name}
Benjamin Kircher 174b6da
BuildArch:      noarch
Benjamin Kircher 174b6da
Benjamin Kircher 174b6da
%description    doc
Benjamin Kircher 174b6da
%{summary}
Benjamin Kircher 174b6da
Benjamin Kircher 174b6da
This package contains HTML documentation for %{name}.
Benjamin Kircher 174b6da
Benjamin Kircher 174b6da
Benjamin Kircher 174b6da
%package -n python3-%{name}
Benjamin Kircher 174b6da
Summary:        Python3 bindings for %{name}
Benjamin Kircher 174b6da
%{?python_provide:%python_provide python3-%{name}}
Benjamin Kircher 174b6da
Benjamin Kircher 174b6da
%description -n python3-%{name}
Benjamin Kircher 174b6da
%{summary}
Benjamin Kircher 174b6da
Benjamin Kircher 174b6da
This package contains the Python3 binding for %{name}.
Benjamin Kircher 174b6da
Benjamin Kircher 174b6da
Benjamin Kircher 174b6da
%prep
30d618d
%autosetup -n Botan-%{version}
9c37fc9
Benjamin Kircher 174b6da
Benjamin Kircher 174b6da
%build
9c37fc9
export CXXFLAGS="${CXXFLAGS:-%{optflags}}"
9c37fc9
Benjamin Kircher 174b6da
# we have the necessary prerequisites, so enable optional modules
Benjamin Kircher 174b6da
%global enable_modules bzip2,zlib,openssl
Benjamin Kircher 174b6da
74e5a7b
%{__python3} ./configure.py \
Benjamin Kircher 174b6da
        --prefix=%{_prefix} \
Benjamin Kircher 174b6da
        --libdir=%{_lib} \
Benjamin Kircher 174b6da
        --docdir=%{_docdir} \
Benjamin Kircher 174b6da
        --cc=gcc \
Benjamin Kircher 174b6da
        --os=linux \
Benjamin Kircher 174b6da
        --cpu=%{_arch} \
Benjamin Kircher 174b6da
        --enable-modules=%{enable_modules} \
Benjamin Kircher 174b6da
        --with-python-version=%{python3_version} \
Benjamin Kircher 174b6da
        --with-sphinx \
a7fdd74
        --with-rst2man \
d53b6dc
        --distribution-info="$(source /etc/os-release ; echo "$NAME")" \
897546d
        --disable-static-library \
Benjamin Kircher 48e0faa
        --with-debug-info
Benjamin Kircher 174b6da
d53b6dc
# work around https://github.com/randombit/botan/issues/2130
d53b6dc
%make_build PYTHON_EXE=%{__python3}
Benjamin Kircher 174b6da
Benjamin Kircher 174b6da
%install
d53b6dc
make install PYTHON_EXE=%{__python3} DESTDIR=%{buildroot}
Benjamin Kircher 174b6da
74e5a7b
sed -e '1{/^#!/d}' -i %{buildroot}%{python3_sitearch}/botan2.py
Benjamin Kircher 174b6da
Benjamin Kircher 174b6da
# doc installation fixups
Benjamin Kircher 174b6da
mv %{buildroot}%{_docdir}/botan-%{version} %{buildroot}%{_pkgdocdir}
Benjamin Kircher 327d49b
rm -r %{buildroot}%{_pkgdocdir}/handbook/{.doctrees,.buildinfo}
Benjamin Kircher 174b6da
Benjamin Kircher 174b6da
897546d
%ldconfig_scriptlets
Benjamin Kircher 174b6da
Benjamin Kircher 174b6da
Benjamin Kircher 174b6da
%files
Benjamin Kircher 174b6da
%license license.txt
Benjamin Kircher 174b6da
%dir %{_pkgdocdir}
Benjamin Kircher 174b6da
%{_pkgdocdir}/*.txt
cb2a520
%{_libdir}/libbotan-%{major_version}.so.18*
Benjamin Kircher 174b6da
%{_bindir}/botan
Benjamin Kircher 174b6da
%{_mandir}/man1/botan.1.gz
Benjamin Kircher 174b6da
Benjamin Kircher 174b6da
Benjamin Kircher 174b6da
%files devel
Benjamin Kircher 174b6da
%license license.txt
Benjamin Kircher 174b6da
%{_includedir}/*
Benjamin Kircher 174b6da
%{_libdir}/libbotan-%{major_version}.so
Benjamin Kircher 174b6da
%{_libdir}/pkgconfig/botan-%{major_version}.pc
Benjamin Kircher 174b6da
Benjamin Kircher 174b6da
Benjamin Kircher 174b6da
%files doc
Benjamin Kircher 174b6da
%license license.txt
Benjamin Kircher 174b6da
%dir %{_pkgdocdir}
Benjamin Kircher 327d49b
%{_pkgdocdir}/handbook
Benjamin Kircher 174b6da
Benjamin Kircher 174b6da
Benjamin Kircher 174b6da
%files -n python3-%{name}
Benjamin Kircher 174b6da
%license license.txt
Benjamin Kircher 174b6da
%{python3_sitearch}/%{name}.py
Benjamin Kircher 174b6da
%{python3_sitearch}/__pycache__/*
Benjamin Kircher 174b6da
Benjamin Kircher 174b6da
Benjamin Kircher 174b6da
%check
Benjamin Kircher 174b6da
LD_LIBRARY_PATH=%{buildroot}%{_libdir} ./botan-test
Benjamin Kircher 174b6da
Benjamin Kircher 174b6da
Benjamin Kircher 174b6da
%changelog
9e4eb13
* Mon Nov 1 2021 Benjamin Kircher <bkircher@0xadd.de> - 2.18.2-1
9e4eb13
- Update to 2.18.2
9e4eb13
22f7abe
* Sun Aug 1 2021 Benjamin Kircher <bkircher@0xadd.de> - 2.18.1-1
22f7abe
- Update to 2.18.1
22f7abe
- Fix a FTBFS (#1987388)
22f7abe
1b8bbac
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.18.0-3
1b8bbac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
1b8bbac
5f2eda1
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2.18.0-2
5f2eda1
- Rebuilt for Python 3.10
5f2eda1
3b102ab
* Mon Apr 19 2021 Benjamin Kircher <bkircher@0xadd.de> - 2.18.0-1
3b102ab
- Update to 2.18.0
3b102ab
f2ae7a8
* Tue Mar 30 2021 Jonathan Wakely <jwakely@redhat.com> - 2.17.3-3
f2ae7a8
- Rebuilt for removed libstdc++ symbol (#1937698)
f2ae7a8
2f9d7f8
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.17.3-2
2f9d7f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
2f9d7f8
e75d60a
* Sat Dec 26 2020 Thomas Moschny <thomas.moschny@gmx.de> - 2.17.3-1
e75d60a
- Update to 2.17.3.
e75d60a
9f78cd1
* Sat Dec 12 2020 Thomas Moschny <thomas.moschny@gmx.de> - 2.17.2-1
9f78cd1
- Update to 2.17.2.
9f78cd1
a7e6998
* Wed Nov 11 2020 Benjamin Kircher <bkircher@0xadd.de> - 2.17.1-1
a7e6998
- Update to 2.17.1
a7e6998
4f0c30c
* Mon Oct 12 2020 Benjamin Kircher <bkircher@0xadd.de> - 2.16.0-1
4f0c30c
- Update to 2.16
4f0c30c
aa76fcd
* Fri Oct 02 2020 Jeff Law <law@redhat.com> - 2.15.0-5
aa76fcd
- Re-enable LTO
aa76fcd
7d0ce4e
* Thu Aug 13 2020 Jeff Law <law@redhat.com> - 2.15.0-4
7d0ce4e
- Temporarily disable LTO on armv7hl
7d0ce4e
c30eb3e
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.15.0-3
c30eb3e
- Second attempt - Rebuilt for
c30eb3e
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
c30eb3e
b352122
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.15.0-2
b352122
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
b352122
2014045
* Mon Jul 13 2020 Thomas Moschny <thomas.moschny@gmx.de> - 2.15.0-1
2014045
- Update to 2.15.0.
2014045
30d618d
* Sat Jun 27 2020 Thomas Moschny <thomas.moschny@gmx.de> - 2.14.0-1
30d618d
- Update to 2.14.0.
30d618d
eab2d17
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 2.13.0-3
eab2d17
- Rebuilt for Python 3.9
eab2d17
577ab9d
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.13.0-2
577ab9d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
577ab9d
b3d62f4
* Fri Jan 24 2020 Benjamin Kircher <bkircher@0xadd.de> - 2.13.0-1
b3d62f4
- Update to 2.13
b3d62f4
ab0562c
* Wed Oct 16 2019 Benjamin Kircher <bkircher@0xadd.de> - 2.12.1-1
ab0562c
- Update to 2.12.1
ab0562c
d53b6dc
* Sat Oct  5 2019 Thomas Moschny <thomas.moschny@gmx.de> - 2.11.0-5
d53b6dc
- Allow building on CentOS8 fixing a quoting and a Python path issue.
d53b6dc
1df38f1
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.11.0-4
1df38f1
- Rebuilt for Python 3.8.0rc1 (#1748018)
1df38f1
1aa3479
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2.11.0-3
1aa3479
- Rebuilt for Python 3.8
1aa3479
ce1acf1
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.11.0-2
ce1acf1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
ce1acf1
Benjamin Kircher 327d49b
* Mon Jul 08 2019 Benjamin Kircher <benjamin.kircher@gmail.com> - 2.11.0-1
Benjamin Kircher 327d49b
- New upstream release
Benjamin Kircher 327d49b
Benjamin Kircher 8be8df6
* Sun Mar 31 2019 Benjamin Kircher <benjamin.kircher@gmail.com> - 2.10.0-1
Benjamin Kircher 8be8df6
- New upstream release
Benjamin Kircher 8be8df6
Benjamin Kircher ab77c1f
* Sat Feb 09 2019 Benjamin Kircher <benjamin.kircher@gmail.com> - 2.9.0-1
Benjamin Kircher ab77c1f
- Update to 2.9.0
Benjamin Kircher ab77c1f
e0d74f2
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.0-2
e0d74f2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
e0d74f2
Benjamin Kircher b6376be
* Mon Oct 01 2018 Benjamin Kircher <benjamin.kircher@gmail.com> - 2.8.0-1
Benjamin Kircher b6376be
- Update to 2.8.0
Benjamin Kircher b6376be
138c222
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.0-3
138c222
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
138c222
11c57d5
* Mon Jul 02 2018 Miro Hrončok <mhroncok@redhat.com> - 2.7.0-2
11c57d5
- Rebuilt for Python 3.7
11c57d5
b857424
* Mon Jul  2 2018 Thomas Moschny <thomas.moschny@gmx.de> - 2.7.0-1
b857424
- Update to 2.7.0.
b857424
ddfe2f9
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2.6.0-2
ddfe2f9
- Rebuilt for Python 3.7
ddfe2f9
Benjamin Kircher 5abd170
* Thu Apr 12 2018 Benjamin Kircher <benjamin.kircher@gmail.com> - 2.6.0-1
Benjamin Kircher 5abd170
- New upstream release
Benjamin Kircher 5abd170
Benjamin Kircher 7d0c03d
* Sun Apr 01 2018 Benjamin Kircher <benjamin.kircher@gmail.com> - 2.4.0-10
Benjamin Kircher 7d0c03d
- Add patch to fix test suite failure due to expired test certificate
Benjamin Kircher 7d0c03d
89ce07c
* Mon Mar 19 2018 Thomas Moschny <thomas.moschny@gmx.de> - 2.4.0-9
89ce07c
- Update empty patch file with the real patch contents.
89ce07c
f2ee753
* Sat Mar 17 2018 Thomas Moschny <thomas.moschny@gmx.de> - 2.4.0-8
f2ee753
- Add patch to fix test suite failures on ppc64le (see gh#1498).
6072734
- Add patch to fix test suite if SIMD instructions are not available (see gh#1495).
f2ee753
e79ea6d
* Thu Mar 15 2018 Thomas Moschny <thomas.moschny@gmx.de> - 2.4.0-7
e79ea6d
- Add patch to the Python module, supporting loading via
e79ea6d
  libbotan-2.so.X.
e79ea6d
9c37fc9
* Thu Mar 15 2018 Thomas Moschny <thomas.moschny@gmx.de> - 2.4.0-6
9c37fc9
- Set CXXFLAGS before calling configure.py.
9c37fc9
- Patch for building on armv7hl (see gh#1495).
a7fdd74
- Make dependency on rst2man explicit.
74e5a7b
- Don't use Python2 at all.
74e5a7b
- Remove shebang from botan2.py.
897546d
- Don't build a static library.
897546d
- Switch to %%ldconfig_scriptlets.
9c37fc9
01712a6
* Tue Mar 13 2018 Iryna Shcherbina <ishcherb@redhat.com> - 2.4.0-5
01712a6
- Update Python 2 dependency declarations to new packaging standards
01712a6
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
01712a6
Benjamin Kircher 48e0faa
* Tue Mar 06 2018 Benjamin Kircher <benjamin.kircher@gmail.com> - 2.4.0-4
Benjamin Kircher 48e0faa
- Exclude ppc64le arch, fix linter warnings
Benjamin Kircher 48e0faa
Benjamin Kircher ccd22e1
* Tue Mar 06 2018 Benjamin Kircher <benjamin.kircher@gmail.com> - 2.4.0-3
Benjamin Kircher ccd22e1
- Fix macro expansion in changelog section
Benjamin Kircher ccd22e1
Benjamin Kircher 174b6da
* Sat Jan 13 2018 Benjamin Kircher <benjamin.kircher@gmail.com> - 2.4.0-2
Benjamin Kircher 174b6da
- Remove INSTALL_ variables, not used anymore
Benjamin Kircher 174b6da
Benjamin Kircher 174b6da
* Thu Jan 11 2018 Benjamin Kircher <benjamin.kircher@gmail.com> - 2.4.0-1
Benjamin Kircher 174b6da
- New upstream version; add new man page for botan command line utility
Benjamin Kircher 174b6da
Benjamin Kircher 174b6da
* Fri Dec 15 2017 Benjamin Kircher <benjamin.kircher@gmail.com> - 2.3.0-1
Benjamin Kircher 174b6da
- New upstream version
Benjamin Kircher 174b6da
Benjamin Kircher 174b6da
* Thu Sep 07 2017 Benjamin Kircher <benjamin.kircher@gmail.com> - 2.2.0-4
Benjamin Kircher 174b6da
- Backport upstream fix for broken GOST on i686
Benjamin Kircher 174b6da
Benjamin Kircher 174b6da
* Wed Sep 06 2017 Benjamin Kircher <benjamin.kircher@gmail.com> - 2.2.0-3
Benjamin Kircher ccd22e1
- Fix %%check section after rpath removal, generate debug symbols
Benjamin Kircher 174b6da
Benjamin Kircher 174b6da
* Thu Aug 31 2017 Benjamin Kircher <benjamin.kircher@gmail.com> - 2.2.0-2
Benjamin Kircher 174b6da
- Fix issues that came up in review, see RH Bugzilla #1487067
Benjamin Kircher 174b6da
Benjamin Kircher 174b6da
* Sat Aug 12 2017 Benjamin Kircher <benjamin.kircher@gmail.com> - 2.2.0-1
Benjamin Kircher 174b6da
- New package. No need for compat-openssl10-devel anymore with 2.2.0 release