8 Commits

Author SHA256 Message Date
9605f29bf5 Accepting request 1309999 from devel:languages:python
- Fix alternative for the man page on SLE 15

OBS-URL: https://build.opensuse.org/request/show/1309999
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-natsort?expand=0&rev=28
2025-10-10 15:07:54 +00:00
6df9957033 - Fix alternative for the man page on SLE 15
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-natsort?expand=0&rev=65
2025-10-09 12:36:33 +00:00
d66f20bb29 Accepting request 1300757 from devel:languages:python
- Convert to libalternatives on SLE-16-based and newer systems only

OBS-URL: https://build.opensuse.org/request/show/1300757
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-natsort?expand=0&rev=27
2025-08-22 15:47:03 +00:00
adc1d0ffa2 - Convert to libalternatives on SLE-16-based and newer systems only
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-natsort?expand=0&rev=63
2025-08-21 09:59:35 +00:00
ca308e3906 Accepting request 1284215 from devel:languages:python
- Convert to libalternatives

OBS-URL: https://build.opensuse.org/request/show/1284215
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-natsort?expand=0&rev=26
2025-06-11 14:20:00 +00:00
afa5e1dccd - Convert to libalternatives
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-natsort?expand=0&rev=61
2025-06-09 14:20:34 +00:00
9aab04afa8 Accepting request 1281961 from devel:languages:python
- Convert to pip-based build

OBS-URL: https://build.opensuse.org/request/show/1281961
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-natsort?expand=0&rev=25
2025-06-03 15:50:29 +00:00
92a9f0f6f9 - Convert to pip-based build
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-natsort?expand=0&rev=59
2025-06-02 14:35:42 +00:00
2 changed files with 40 additions and 6 deletions

View File

@@ -1,3 +1,23 @@
-------------------------------------------------------------------
Thu Oct 9 12:34:12 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Fix alternative for the man page on SLE 15
-------------------------------------------------------------------
Thu Aug 21 09:59:03 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives on SLE-16-based and newer systems only
-------------------------------------------------------------------
Mon Jun 9 14:18:09 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives
-------------------------------------------------------------------
Mon Jun 2 14:35:21 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
-------------------------------------------------------------------
Mon Jul 10 16:16:15 UTC 2023 - ecsos <ecsos@opensuse.org>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-natsort
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,6 +16,11 @@
#
%if 0%{?suse_version} > 1500
%bcond_without libalternatives
%else
%bcond_with libalternatives
%endif
%{?sle15_python_module_pythons}
Name: python-natsort
Version: 8.4.0
@@ -26,19 +31,25 @@ URL: https://github.com/SethMMorton/natsort
Source: https://files.pythonhosted.org/packages/source/n/natsort/natsort-%{version}.tar.gz
BuildRequires: %{python_module fastnumbers >= 5.0.1}
BuildRequires: %{python_module hypothesis}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest >= 4.3}
BuildRequires: %{python_module pytest-mock}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: help2man
BuildRequires: python-rpm-macros
Requires: python-setuptools
Requires(post): update-alternatives
Requires(postun):update-alternatives
Recommends: python-PyICU >= 1.0.0
Recommends: python-fastnumbers >= 5.0.1
BuildArch: noarch
%{?sle15_python_module_pythons}
%if %{with libalternatives}
BuildRequires: alts
Requires: alts
%else
Requires(post): update-alternatives
Requires(postun): update-alternatives
%endif
%python_subpackages
%description
@@ -51,10 +62,10 @@ sorting based on meaning and not computer code point).
%autopatch -p1
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
export PYTHONPATH=%{buildroot}%{python_sitelib}
help2man -o natsort.1 -N %{buildroot}%{_bindir}/natsort
@@ -75,6 +86,9 @@ export LANG=en_US.UTF8
%postun
%python_uninstall_alternative natsort
%pre
%python_libalternatives_reset_alternative natsort
%files %{python_files}
%license LICENSE
%doc README.rst CHANGELOG.md