File not found: openssl-pbkdf2-Set-indicator-if-pkcs5-param-disabled-checks.patch

File project.diff of Package python-openstackdocstheme

--- python-openstackdocstheme.spec.orig
+++ python-openstackdocstheme.spec
@@ -1,7 +1,7 @@
 #
 # spec file for package python-openstackdocstheme
 #
-# Copyright (c) 2023 SUSE LLC
+# Copyright (c) 2025 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -24,22 +24,21 @@ License:        Apache-2.0
 Group:          Development/Languages/Python
 URL:            https://docs.openstack.org/openstackdocstheme
 Source0:        https://files.pythonhosted.org/packages/source/o/openstackdocstheme/openstackdocstheme-3.2.0.tar.gz
+BuildRequires:  %{python_module Sphinx}
+BuildRequires:  %{python_module dulwich >= 0.15.0}
+BuildRequires:  %{python_module pbr >= 2.0.0}
+BuildRequires:  fdupes
 BuildRequires:  openstack-macros
-BuildRequires:  python3-Sphinx
-BuildRequires:  python3-dulwich >= 0.15.0
-BuildRequires:  python3-pbr >= 2.0.0
+BuildRequires:  python-rpm-macros
+Requires:       python-Sphinx
+Requires:       python-dulwich >= 0.15.0
+Requires(post): update-alternatives
+Requires(postun):update-alternatives
 BuildArch:      noarch
 
-%description
-Theme and extension support for Sphinx documentation that is published
-to docs.openstack.org. Intended for use by OpenStack projects.
+%python_subpackages
 
-%package -n python3-openstackdocstheme
-Summary:        OpenStack Docs Theme
-Requires:       python3-Sphinx
-Requires:       python3-dulwich >= 0.15.0
-
-%description -n python3-openstackdocstheme
+%description
 Theme and extension support for Sphinx documentation that is published
 to docs.openstack.org. Intended for use by OpenStack projects.
 
@@ -52,23 +51,35 @@ sed -i '/^pre-commit.*/d' test-requireme
 %py_req_cleanup
 
 %build
-%py3_build
+%python_build
 
 %install
-%py3_install
+%python_install
+%python_expand %fdupes %{buildroot}/%{$python_sitelib}/openstackdocstheme
+%python_clone -a %{buildroot}/%{_bindir}/docstheme-build-pdf
+%python_clone -a %{buildroot}/%{_bindir}/docstheme-build-translated.sh
+%python_clone -a %{buildroot}/%{_bindir}/docstheme-lang-display-name.py
 
 %check
 PYTHONPATH=. sphinx-build -a -E -j auto -d doc/build/doctrees -b html doc/source doc/build/htm
 
-%files -n python3-openstackdocstheme
+%post
+%python_install_alternative docstheme-build-pdf
+%python_install_alternative docstheme-build-translated.sh
+%python_install_alternative docstheme-lang-display-name.py
+
+%postun
+%python_uninstall_alternative docstheme-build-pdf
+%python_uninstall_alternative docstheme-build-translated.sh
+%python_uninstall_alternative docstheme-lang-display-name.py
+
+%files %{python_files}
 %license LICENSE
 %doc README.rst
-%{_bindir}/docstheme-build-pdf
-%{_bindir}/docstheme-build-translated.sh
-%{_bindir}/docstheme-lang-display-name.py
-%exclude %{_sysconfdir}/alternatives/*.pyc
-%exclude %{_sysconfdir}/alternatives/*.pyo
-%{python3_sitelib}/openstackdocstheme
-%{python3_sitelib}/openstackdocstheme-*-py?.*.egg-info
+%python_alternative %{_bindir}/docstheme-build-pdf
+%python_alternative %{_bindir}/docstheme-build-translated.sh
+%python_alternative %{_bindir}/docstheme-lang-display-name.py
+%{python_sitelib}/openstackdocstheme
+%{python_sitelib}/openstackdocstheme-*-py?.*.egg-info
 
 %changelog
openSUSE Build Service is sponsored by