File project.diff of Package python-maturin
--- python-maturin.spec.orig
+++ python-maturin.spec
@@ -1,7 +1,7 @@
#
# spec file for package python-maturin
#
-# Copyright (c) 2025 SUSE LLC and contributors
+# 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
@@ -16,15 +16,10 @@
#
-%if 0%{?suse_version} > 1500
-%bcond_without libalternatives
-%else
-%bcond_with libalternatives
-%endif
%{?sle15_python_module_pythons}
Name: python-maturin
-Version: 1.9.6
-Release: 0
+Version: 1.9.0
+Release: 150700.2.1
Summary: Rust/Python Interoperability
License: Apache-2.0 OR MIT
URL: https://github.com/PyO3/maturin
@@ -39,13 +34,8 @@ BuildRequires: %{python_module wheel >=
BuildRequires: cargo-packaging
BuildRequires: fdupes
BuildRequires: python-rpm-macros
-%if %{with libalternatives}
-BuildRequires: alts
-Requires: alts
-%else
Requires(post): update-alternatives
Requires(postun): update-alternatives
-%endif
%if 0%{?python_version_nodots} < 311
Requires: python-tomli >= 1.1.0
%endif
@@ -79,9 +69,6 @@ sed -i 's/--locked/--offline/' setup.py
%postun
%python_uninstall_alternative maturin
-%pre
-%python_libalternatives_reset_alternative maturin
-
%files %{python_files}
%license license-apache license-mit
%doc Changelog.md README.md