forked from pool/python-convertdate
Accepting request 1288525 from devel:languages:python
- Convert to libalternatives OBS-URL: https://build.opensuse.org/request/show/1288525 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-convertdate?expand=0&rev=10
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
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) 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
|
||||||
@@ -17,6 +17,7 @@
|
|||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
|
%bcond_without libalternatives
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-convertdate
|
Name: python-convertdate
|
||||||
Version: 2.4.0
|
Version: 2.4.0
|
||||||
@@ -27,8 +28,10 @@ URL: https://github.com/fitnr/convertdate
|
|||||||
Source: https://github.com/fitnr/convertdate/archive/v%{version}.tar.gz
|
Source: https://github.com/fitnr/convertdate/archive/v%{version}.tar.gz
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module wheel}
|
BuildRequires: %{python_module wheel}
|
||||||
|
BuildRequires: alts
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
Requires: alts
|
||||||
Requires: python-PyMeeus >= 0.3.6
|
Requires: python-PyMeeus >= 0.3.6
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
@@ -36,8 +39,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
|
||||||
@@ -63,11 +64,8 @@ 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-)
|
||||||
|
|
||||||
%post
|
%pre
|
||||||
%python_install_alternative censusgeocode
|
%python_libalternatives_reset_alternative censusgeocode
|
||||||
|
|
||||||
%postun
|
|
||||||
%python_uninstall_alternative censusgeocode
|
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.md
|
%doc README.md
|
||||||
|
Reference in New Issue
Block a user