From 2eef2ced3b401ffe57ebb8d277f6a6341ae70202 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Tue, 18 Sep 2018 13:24:13 +0200 Subject: [PATCH 1/8] Remove Python 2 subpackage (#1627321) --- botan.spec | 72 +++++++----------------------------------------------- 1 file changed, 9 insertions(+), 63 deletions(-) diff --git a/botan.spec b/botan.spec index 1727451..615c327 100644 --- a/botan.spec +++ b/botan.spec @@ -1,12 +1,8 @@ %global major_version 1.10 -%if 0%{?fedora} || 0%{?rhel} > 7 -%global with_python3 1 -%endif - Name: botan Version: %{major_version}.17 -Release: 9%{?dist} +Release: 10%{?dist} Summary: Crypto library written in C++ Group: System Environment/Libraries @@ -24,29 +20,20 @@ Patch1: botan-boost_python.patch Patch2: botan-1.10.13-python-init.patch BuildRequires: gcc-c++ -BuildRequires: python2 -BuildRequires: python2-devel -BuildRequires: boost-python2-devel -%if 0%{?with_python3} BuildRequires: python3 BuildRequires: python3-devel +BuildRequires: python3-sphinx BuildRequires: boost-python3-devel -%endif # with_python3 - -BuildRequires: %{_bindir}/sphinx-build BuildRequires: bzip2-devel BuildRequires: zlib-devel -%if 0%{?fedora} >=26 || 0%{?rhel} > 7 +%if 0%{?fedora} || 0%{?rhel} > 7 BuildRequires: compat-openssl10-devel %else BuildRequires: openssl-devel %endif # do not check .so files in the python_sitelib directories -%global __provides_exclude_from ^(%{python2_sitearch}/.*\\.so)$ -%if 0%{?with_python3} %global __provides_exclude_from ^(%{python3_sitearch}/.*\\.so)$ -%endif # with_python3 %{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}} @@ -61,12 +48,11 @@ flavor of the library. %package devel Summary: Development files for %{name} -Group: Development/Libraries Requires: %{name}%{?_isa} = %{version}-%{release} Requires: pkgconfig Requires: bzip2-devel Requires: zlib-devel -%if 0%{?fedora} >=26 || 0%{?rhel} > 7 +%if 0%{?fedora} || 0%{?rhel} > 7 Requires: compat-openssl10-devel %else Requires: openssl-devel @@ -88,23 +74,6 @@ BuildArch: noarch This package contains HTML documentation for %{name}. -%package -n python2-%{name} -Summary: Python2 bindings for %{name} -Group: System Environment/Libraries -%{?python_provide:%python_provide python2-%{name}} -# the python2 package was named botan-python up to 1.10.13-1 -Provides: %{name}-python = %{version}-%{release} -Obsoletes: %{name}-python < 1.10.13-2 - -%description -n python2-%{name} -%{summary} - -This package contains the Python2 binding for %{name}. - -Note: The Python binding should be considered alpha software, and the -interfaces may change in the future. - -%if 0%{?with_python3} %package -n python3-%{name} Summary: Python3 bindings for %{name} Group: System Environment/Libraries @@ -117,7 +86,6 @@ This package contains the Python3 binding for %{name}. Note: The Python binding should be considered alpha software, and the interfaces may change in the future. -%endif # with_python3 %prep @@ -136,7 +104,7 @@ rm -rf checks/ec_tests.cpp # fixme: maybe disable unix_procs, very slow. %global disable_modules gnump -%{__python2} ./configure.py \ +%{__python3} ./configure.py \ --prefix=%{_prefix} \ --libdir=%{_lib} \ --cc=gcc \ @@ -148,27 +116,14 @@ rm -rf checks/ec_tests.cpp --with-python-version=dummy.dummy \ --with-sphinx -%if 0%{?with_python3} -cp -a build/python{,3} -%endif # with_python3 - # (ab)using CXX as an easy way to inject our CXXFLAGS make CXX="g++ -std=c++11 ${CXXFLAGS:-%{optflags}}" %{?_smp_mflags} -make -f Makefile.python \ - CXX="g++ -std=c++11 ${CXXFLAGS:-%{optflags}}" %{?_smp_mflags} \ - PYTHON_INC="$(python2-config --includes)" \ - PYTHON_ROOT=. - -%if 0%{?with_python3} -mv build/python{,2} ; mv build/python{3,} make -f Makefile.python \ CXX="g++ -std=c++11 ${CXXFLAGS:-%{optflags}}" %{?_smp_mflags} \ PYTHON_INC="$(python3-config --includes)" \ PYTHON_ROOT=. \ BOOST_PYTHON=boost_python3 -mv build/python{,3} ; mv build/python{2,} -%endif # with_python3 %install make install \ @@ -177,15 +132,9 @@ make install \ INSTALL_CMD_EXEC="install -p -m 755" \ INSTALL_CMD_DATA="install -p -m 644" -make -f Makefile.python install \ - PYTHON_SITE_PACKAGE_DIR=%{buildroot}%{python2_sitearch} - -%if 0%{?with_python3} -mv build/python{,2} ; mv build/python{3,} make -f Makefile.python install \ PYTHON_SITE_PACKAGE_DIR=%{buildroot}%{python3_sitearch} -mv build/python{,3} ; mv build/python{2,} -%endif # with_python3 + # fixups find doc/examples -type f -exec chmod -x {} \; @@ -240,14 +189,8 @@ rm -r %{buildroot}%{_pkgdocdir}/manual/{.doctrees,.buildinfo} %{_pkgdocdir}/python2-examples -%files -n python2-%{name} -%{python2_sitearch}/%{name} - - -%if 0%{?with_python3} %files -n python3-%{name} %{python3_sitearch}/%{name} -%endif # with_python3 %check @@ -261,6 +204,9 @@ LD_LIBRARY_PATH=%{buildroot}%{_libdir} ./check --validate %changelog +* Tue Sep 18 2018 Miro Hrončok - 1.10.17-10 +- Remove Python 2 subpackage (#1627321) + * Thu Jul 12 2018 Fedora Release Engineering - 1.10.17-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild From 0a6cf8a91519c8d7939d5348f2f1fdbf0e3ed746 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Thu, 24 Jan 2019 21:40:02 +0000 Subject: [PATCH 2/8] Rebuilt for Boost 1.69 --- botan.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/botan.spec b/botan.spec index 615c327..8ec7323 100644 --- a/botan.spec +++ b/botan.spec @@ -2,7 +2,7 @@ Name: botan Version: %{major_version}.17 -Release: 10%{?dist} +Release: 11%{?dist} Summary: Crypto library written in C++ Group: System Environment/Libraries @@ -204,6 +204,9 @@ LD_LIBRARY_PATH=%{buildroot}%{_libdir} ./check --validate %changelog +* Thu Jan 24 2019 Jonathan Wakely - 1.10.17-11 +- Rebuilt for Boost 1.69 + * Tue Sep 18 2018 Miro Hrončok - 1.10.17-10 - Remove Python 2 subpackage (#1627321) From c9b3eca933d333216f3307d165c3f3c1d4e4aced Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Mon, 28 Jan 2019 20:17:40 +0100 Subject: [PATCH 3/8] Remove obsolete Group tag References: https://fedoraproject.org/wiki/Changes/Remove_Group_Tag --- botan.spec | 3 --- 1 file changed, 3 deletions(-) diff --git a/botan.spec b/botan.spec index 8ec7323..1fa4502 100644 --- a/botan.spec +++ b/botan.spec @@ -5,7 +5,6 @@ Version: %{major_version}.17 Release: 11%{?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 @@ -65,7 +64,6 @@ developing applications that use %{name}. %package doc Summary: Documentation for %{name} -Group: Documentation BuildArch: noarch %description doc @@ -76,7 +74,6 @@ This package contains HTML documentation for %{name}. %package -n python3-%{name} Summary: Python3 bindings for %{name} -Group: System Environment/Libraries %{?python_provide:%python_provide python3-%{name}} %description -n python3-%{name} From 3fb576c80fcdbef8b29671c187d31cdabe7eccaa Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Tue, 29 Jan 2019 15:24:28 +0000 Subject: [PATCH 4/8] Use boost_python37 for library name --- botan.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/botan.spec b/botan.spec index 1fa4502..14cfc70 100644 --- a/botan.spec +++ b/botan.spec @@ -120,7 +120,7 @@ make -f Makefile.python \ CXX="g++ -std=c++11 ${CXXFLAGS:-%{optflags}}" %{?_smp_mflags} \ PYTHON_INC="$(python3-config --includes)" \ PYTHON_ROOT=. \ - BOOST_PYTHON=boost_python3 + BOOST_PYTHON=boost_python37 %install make install \ @@ -201,6 +201,9 @@ LD_LIBRARY_PATH=%{buildroot}%{_libdir} ./check --validate %changelog +* Tue Jan 29 2019 Jonathan Wakely - 1.10.17-11 +- Use boost_python37 for library name + * Thu Jan 24 2019 Jonathan Wakely - 1.10.17-11 - Rebuilt for Boost 1.69 From c7ffcf21eebaa0964d7c8702f6a0426462171099 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Wed, 30 Jan 2019 21:10:34 +0000 Subject: [PATCH 5/8] Use %{python3_version_nodots} for Boost.Python library name --- botan.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/botan.spec b/botan.spec index 14cfc70..654ee99 100644 --- a/botan.spec +++ b/botan.spec @@ -120,7 +120,7 @@ make -f Makefile.python \ CXX="g++ -std=c++11 ${CXXFLAGS:-%{optflags}}" %{?_smp_mflags} \ PYTHON_INC="$(python3-config --includes)" \ PYTHON_ROOT=. \ - BOOST_PYTHON=boost_python37 + BOOST_PYTHON=boost_python%{python3_version_nodots} %install make install \ @@ -201,6 +201,9 @@ LD_LIBRARY_PATH=%{buildroot}%{_libdir} ./check --validate %changelog +* Wed Jan 30 2019 Jonathan Wakely - 1.10.17-11 +- Use %%{python3_version_nodots} for Boost.Python library name + * Tue Jan 29 2019 Jonathan Wakely - 1.10.17-11 - Use boost_python37 for library name From baa8a3e18805a9a0d679d639f245a955f85a7f83 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 31 Jan 2019 14:51:59 +0000 Subject: [PATCH 6/8] - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- botan.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/botan.spec b/botan.spec index 654ee99..b080404 100644 --- a/botan.spec +++ b/botan.spec @@ -2,7 +2,7 @@ Name: botan Version: %{major_version}.17 -Release: 11%{?dist} +Release: 12%{?dist} Summary: Crypto library written in C++ License: BSD @@ -201,6 +201,9 @@ LD_LIBRARY_PATH=%{buildroot}%{_libdir} ./check --validate %changelog +* Thu Jan 31 2019 Fedora Release Engineering - 1.10.17-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + * Wed Jan 30 2019 Jonathan Wakely - 1.10.17-11 - Use %%{python3_version_nodots} for Boost.Python library name From b35f6bad683f7cab470c0dbec208e96307a0070f Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 24 Jul 2019 19:31:40 +0000 Subject: [PATCH 7/8] - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- botan.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/botan.spec b/botan.spec index b080404..204dace 100644 --- a/botan.spec +++ b/botan.spec @@ -2,7 +2,7 @@ Name: botan Version: %{major_version}.17 -Release: 12%{?dist} +Release: 13%{?dist} Summary: Crypto library written in C++ License: BSD @@ -201,6 +201,9 @@ LD_LIBRARY_PATH=%{buildroot}%{_libdir} ./check --validate %changelog +* Wed Jul 24 2019 Fedora Release Engineering - 1.10.17-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + * Thu Jan 31 2019 Fedora Release Engineering - 1.10.17-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild From cc1b8f35c00f9544f68531bc47c3b22a573e83ed Mon Sep 17 00:00:00 2001 From: Thomas Moschny Date: Wed, 14 Aug 2019 10:40:42 +0200 Subject: [PATCH 8/8] Remove dependency on OpenSSL (for F31+). --- botan.spec | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/botan.spec b/botan.spec index 204dace..1f7f408 100644 --- a/botan.spec +++ b/botan.spec @@ -2,7 +2,7 @@ Name: botan Version: %{major_version}.17 -Release: 13%{?dist} +Release: 14%{?dist} Summary: Crypto library written in C++ License: BSD @@ -25,11 +25,6 @@ BuildRequires: python3-sphinx BuildRequires: boost-python3-devel BuildRequires: bzip2-devel BuildRequires: zlib-devel -%if 0%{?fedora} || 0%{?rhel} > 7 -BuildRequires: compat-openssl10-devel -%else -BuildRequires: openssl-devel -%endif # do not check .so files in the python_sitelib directories %global __provides_exclude_from ^(%{python3_sitearch}/.*\\.so)$ @@ -51,11 +46,6 @@ Requires: %{name}%{?_isa} = %{version}-%{release} Requires: pkgconfig Requires: bzip2-devel Requires: zlib-devel -%if 0%{?fedora} || 0%{?rhel} > 7 -Requires: compat-openssl10-devel -%else -Requires: openssl-devel -%endif %description devel The %{name}-devel package contains libraries and header files for @@ -96,7 +86,7 @@ rm -rf checks/ec_tests.cpp %build # we have the necessary prerequisites, so enable optional modules -%global enable_modules bzip2,zlib,openssl +%global enable_modules bzip2,zlib # fixme: maybe disable unix_procs, very slow. %global disable_modules gnump @@ -201,6 +191,9 @@ LD_LIBRARY_PATH=%{buildroot}%{_libdir} ./check --validate %changelog +* Wed Aug 14 2019 Thomas Moschny - 1.10.17-14 +- Remove dependency on OpenSSL (for F31+). + * Wed Jul 24 2019 Fedora Release Engineering - 1.10.17-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild