Compare commits
1 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 08f65eede5 |
@@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 14 12:44:20 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Convert to libalternatives on SLE-16-based and newer systems only
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 8 08:32:18 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Convert to libalternatives
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Dec 7 20:46:37 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-dateparser
|
||||
#
|
||||
# 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
|
||||
@@ -16,6 +16,11 @@
|
||||
#
|
||||
|
||||
|
||||
%if 0%{?suse_version} > 1500
|
||||
%bcond_without libalternatives
|
||||
%else
|
||||
%bcond_with libalternatives
|
||||
%endif
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-dateparser
|
||||
Version: 1.2.0
|
||||
@@ -35,13 +40,18 @@ Requires: python-python-dateutil
|
||||
Requires: python-pytz
|
||||
Requires: python-regex
|
||||
Requires: python-tzlocal
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun):update-alternatives
|
||||
Recommends: convertdate
|
||||
Recommends: python-fasttext
|
||||
Recommends: python-langdetect
|
||||
Recommends: python-ruamel.yaml
|
||||
BuildArch: noarch
|
||||
%if %{with libalternatives}
|
||||
BuildRequires: alts
|
||||
Requires: alts
|
||||
%else
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
%endif
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module convertdate}
|
||||
BuildRequires: %{python_module fasttext}
|
||||
@@ -87,6 +97,9 @@ ignoretestfiles="$ignoretestfiles --ignore tests/test_search.py"
|
||||
donttest="(not test_timezone_offset_calculation)"
|
||||
%pytest -k "$donttest" $ignoretestfiles
|
||||
|
||||
%pre
|
||||
%python_libalternatives_reset_alternative dateparser-download
|
||||
|
||||
%post
|
||||
%python_install_alternative dateparser-download
|
||||
|
||||
|
||||
Reference in New Issue
Block a user