1
0

4 Commits

2 changed files with 17 additions and 9 deletions

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
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>
- Replace usage of %jobs (boo#1237231)
-------------------------------------------------------------------
Thu May 4 18:59:03 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# 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
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,6 +17,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without libalternatives
%{?sle15_python_module_pythons}
Name: python-convertdate
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
BuildRequires: %{python_module pip}
BuildRequires: %{python_module wheel}
BuildRequires: alts
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: alts
Requires: python-PyMeeus >= 0.3.6
BuildArch: noarch
# SECTION test requirements
@@ -36,8 +39,6 @@ BuildRequires: %{python_module PyMeeus >= 0.3.6}
BuildRequires: %{python_module pytest-xdist}
BuildRequires: %{python_module pytest}
# /SECTION
Requires(post): update-alternatives
Requires(postun):update-alternatives
%python_subpackages
%description
@@ -61,13 +62,10 @@ export LC_ALL="en_US.UTF8"
%check
export LC_ALL="en_US.UTF8"
%pytest %{?jobs:-n %jobs}
%pytest -n $(echo %{?_smp_mflags} | cut -c 3-)
%post
%python_install_alternative censusgeocode
%postun
%python_uninstall_alternative censusgeocode
%pre
%python_libalternatives_reset_alternative censusgeocode
%files %{python_files}
%doc README.md