|
|
@@ -1,7 +1,7 @@
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# spec file for package python-patiencediff
|
|
|
|
# spec file for package python-patiencediff
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# Copyright (c) 2024 SUSE LLC
|
|
|
|
# Copyright (c) 2025 SUSE LLC
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
@@ -16,6 +16,7 @@
|
|
|
|
#
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%bcond_without libalternatives
|
|
|
|
Name: python-patiencediff
|
|
|
|
Name: python-patiencediff
|
|
|
|
Version: 0.2.15
|
|
|
|
Version: 0.2.15
|
|
|
|
Release: 0
|
|
|
|
Release: 0
|
|
|
@@ -25,12 +26,14 @@ Group: Development/Languages/Python
|
|
|
|
URL: https://github.com/breezy-team/patiencediff
|
|
|
|
URL: https://github.com/breezy-team/patiencediff
|
|
|
|
Source: https://files.pythonhosted.org/packages/source/p/patiencediff/patiencediff-%{version}.tar.gz
|
|
|
|
Source: https://files.pythonhosted.org/packages/source/p/patiencediff/patiencediff-%{version}.tar.gz
|
|
|
|
BuildRequires: %{python_module devel >= 3.7}
|
|
|
|
BuildRequires: %{python_module devel >= 3.7}
|
|
|
|
|
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
|
|
|
|
BuildRequires: %{python_module wheel}
|
|
|
|
|
|
|
|
BuildRequires: alts
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
Requires(post): update-alternatives
|
|
|
|
Requires: alts
|
|
|
|
Requires(preun): update-alternatives
|
|
|
|
|
|
|
|
%python_subpackages
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
@@ -41,18 +44,15 @@ Python implementation of the patiencediff algorithm.
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
export CFLAGS="%{optflags}"
|
|
|
|
export CFLAGS="%{optflags}"
|
|
|
|
%python_build
|
|
|
|
%pyproject_wheel
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%python_install
|
|
|
|
%pyproject_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/patiencediff
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/patiencediff
|
|
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
%pre
|
|
|
|
%python_install_alternative patiencediff
|
|
|
|
%python_libalternatives_reset_alternative patiencediff
|
|
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
|
|
|
%python_uninstall_alternative patiencediff
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
%pytest
|
|
|
|
%pytest
|
|
|
|