17
0

Compare commits

4 Commits

2 changed files with 23 additions and 16 deletions

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Mon Jun 9 13:57:36 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives
-------------------------------------------------------------------
Tue May 27 11:29:09 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Apr 21 12:24:57 UTC 2023 - Dirk Müller <dmueller@suse.com> Fri Apr 21 12:24:57 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-fastimport # spec file for package python-fastimport
# #
# Copyright (c) 2023 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,8 +16,8 @@
# #
%bcond_without libalternatives
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
%global skip_python2 1
Name: python-fastimport Name: python-fastimport
Version: 0.9.14 Version: 0.9.14
Release: 0 Release: 0
@@ -26,11 +26,13 @@ License: GPL-2.0-or-later
Group: Development/Libraries/Python Group: Development/Libraries/Python
URL: https://github.com/jelmer/python-fastimport URL: https://github.com/jelmer/python-fastimport
Source: https://files.pythonhosted.org/packages/source/f/fastimport/fastimport-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/f/fastimport/fastimport-%{version}.tar.gz
BuildRequires: %{python_module pip}
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(postun):update-alternatives
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
@@ -45,27 +47,22 @@ git-remote-hg use a slightly modified version of it.
%setup -q -n fastimport-%{version} %setup -q -n fastimport-%{version}
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_clone -a %{buildroot}%{_bindir}/fast-import-query %python_clone -a %{buildroot}%{_bindir}/fast-import-query
%python_clone -a %{buildroot}%{_bindir}/fast-import-info %python_clone -a %{buildroot}%{_bindir}/fast-import-info
%python_clone -a %{buildroot}%{_bindir}/fast-import-filter %python_clone -a %{buildroot}%{_bindir}/fast-import-filter
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
%python_exec -m unittest fastimport.tests.test_suite %pyunittest fastimport.tests.test_suite
%post %pre
%python_install_alternative fast-import-query %python_libalternatives_reset_alternative fast-import-query
%python_install_alternative fast-import-info %python_libalternatives_reset_alternative fast-import-info
%python_install_alternative fast-import-filter %python_libalternatives_reset_alternative fast-import-filter
%postun
%python_uninstall_alternative fast-import-query
%python_uninstall_alternative fast-import-info
%python_uninstall_alternative fast-import-filter
%files %{python_files} %files %{python_files}
%doc NEWS README.md %doc NEWS README.md