forked from pool/python-convertdate
Compare commits
2 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| c0754fd8ea | |||
| 57f03ad6f4 |
@@ -1,13 +1,3 @@
|
|||||||
-------------------------------------------------------------------
|
|
||||||
Tue Aug 12 08:17:05 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
|
||||||
|
|
||||||
- Make the libalternatives transition conditional
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Wed Jun 25 12:06:07 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
|
||||||
|
|
||||||
- Convert to libalternatives
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Jun 7 03:51:44 UTC 2025 - Bernhard Wiedemann <bwiedemann@suse.com>
|
Sat Jun 7 03:51:44 UTC 2025 - Bernhard Wiedemann <bwiedemann@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-convertdate
|
# spec file for package python-convertdate
|
||||||
#
|
#
|
||||||
# Copyright (c) 2025 SUSE LLC
|
# Copyright (c) 2023 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,11 +16,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%if 0%{?suse_version} > 1500
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
%bcond_without libalternatives
|
|
||||||
%else
|
|
||||||
%bcond_with libalternatives
|
|
||||||
%endif
|
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-convertdate
|
Name: python-convertdate
|
||||||
Version: 2.4.0
|
Version: 2.4.0
|
||||||
@@ -35,18 +31,13 @@ BuildRequires: fdupes
|
|||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-PyMeeus >= 0.3.6
|
Requires: python-PyMeeus >= 0.3.6
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%if %{with libalternatives}
|
|
||||||
BuildRequires: alts
|
|
||||||
Requires: alts
|
|
||||||
%else
|
|
||||||
Requires(post): update-alternatives
|
|
||||||
Requires(postun): update-alternatives
|
|
||||||
%endif
|
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module PyMeeus >= 0.3.6}
|
BuildRequires: %{python_module PyMeeus >= 0.3.6}
|
||||||
BuildRequires: %{python_module pytest-xdist}
|
BuildRequires: %{python_module pytest-xdist}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
# /SECTION
|
# /SECTION
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun):update-alternatives
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -72,9 +63,6 @@ export LC_ALL="en_US.UTF8"
|
|||||||
export LC_ALL="en_US.UTF8"
|
export LC_ALL="en_US.UTF8"
|
||||||
%pytest -n $(echo %{?_smp_mflags} | cut -c 3-)
|
%pytest -n $(echo %{?_smp_mflags} | cut -c 3-)
|
||||||
|
|
||||||
%pre
|
|
||||||
%python_libalternatives_reset_alternative censusgeocode
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%python_install_alternative censusgeocode
|
%python_install_alternative censusgeocode
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user