17
0

Compare commits

2 Commits

2 changed files with 12 additions and 6 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon May 26 11:02:26 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Jun 21 10:52:49 UTC 2023 - ecsos <ecsos@opensuse.org> Wed Jun 21 10:52:49 UTC 2023 - ecsos <ecsos@opensuse.org>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-dateutils # spec file for package python-dateutils
# #
# 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
@@ -16,8 +16,6 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
Name: python-dateutils Name: python-dateutils
Version: 0.6.12 Version: 0.6.12
@@ -27,7 +25,9 @@ License: 0BSD
Group: Development/Languages/Python Group: Development/Languages/Python
URL: https://github.com/jmcantrell/python-dateutils URL: https://github.com/jmcantrell/python-dateutils
Source: https://files.pythonhosted.org/packages/source/d/dateutils/dateutils-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/d/dateutils/dateutils-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-python-dateutil Requires: python-python-dateutil
@@ -47,10 +47,10 @@ Python library for working with date and datetime objects.
sed -i '/argparse/d' setup.py sed -i '/argparse/d' setup.py
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
# Avoid conflicts with dateutils; these scripts lack many features of the other package # Avoid conflicts with dateutils; these scripts lack many features of the other package
rm %{buildroot}%{_bindir}/dateadd %{buildroot}%{_bindir}/datediff rm %{buildroot}%{_bindir}/dateadd %{buildroot}%{_bindir}/datediff
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
@@ -58,6 +58,7 @@ rm %{buildroot}%{_bindir}/dateadd %{buildroot}%{_bindir}/datediff
%files %{python_files} %files %{python_files}
%doc README.mkd %doc README.mkd
%license LICENSE %license LICENSE
%{python_sitelib}/* %{python_sitelib}/dateutils
%{python_sitelib}/dateutils-%{version}*-info
%changelog %changelog