forked from pool/python-pytimeparse2
- Switch to pyproject macros.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pytimeparse2?expand=0&rev=3
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jun 11 05:49:35 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Switch to pyproject macros.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Dec 29 15:25:15 UTC 2023 - Enno Gotthold <egotthold@suse.com>
|
Fri Dec 29 15:25:15 UTC 2023 - Enno Gotthold <egotthold@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pytimeparse2
|
# spec file for package python-pytimeparse2
|
||||||
#
|
#
|
||||||
# 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
|
||||||
@@ -15,6 +15,7 @@
|
|||||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
%define short_name pytimeparse2
|
%define short_name pytimeparse2
|
||||||
Name: python-%{short_name}
|
Name: python-%{short_name}
|
||||||
@@ -24,9 +25,11 @@ Summary: A small Python module to parse various kinds of time expressions
|
|||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/onegreyonewhite/pytimeparse2
|
URL: https://github.com/onegreyonewhite/pytimeparse2
|
||||||
Source: %{short_name}-%{version}.tar.gz
|
Source: %{short_name}-%{version}.tar.gz
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
|
||||||
BuildRequires: %{python_module python-dateutil}
|
BuildRequires: %{python_module python-dateutil}
|
||||||
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python3-base
|
Requires: python3-base
|
||||||
Recommends: python3-python-dateutil
|
Recommends: python3-python-dateutil
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
@@ -39,10 +42,10 @@ A small Python module to parse various kinds of time expressions. Developed sepa
|
|||||||
%autosetup -n %{short_name}-%{version}
|
%autosetup -n %{short_name}-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_expand sed -i '1d' %{buildroot}/%{$python_sitelib}/%{short_name}.py
|
%python_expand sed -i '1d' %{buildroot}/%{$python_sitelib}/%{short_name}.py
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@@ -52,8 +55,7 @@ A small Python module to parse various kinds of time expressions. Developed sepa
|
|||||||
%license LICENSE.rst
|
%license LICENSE.rst
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%{python_sitelib}/%{short_name}.py
|
%{python_sitelib}/%{short_name}.py
|
||||||
%{python_sitelib}/%{short_name}-%{version}*-info
|
%{python_sitelib}/%{short_name}-%{version}.dist-info
|
||||||
%pycache_only %{python_sitelib}/__pycache__
|
%pycache_only %{python_sitelib}/__pycache__/%{short_name}.*.pyc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user