14
0
2025-06-11 06:29:21 +00:00
committed by Git OBS Bridge
parent c1eb68f0ef
commit 9321eb7694
2 changed files with 18 additions and 11 deletions

View File

@@ -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>

View File

@@ -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}
@@ -22,14 +23,16 @@ Version: 1.7.1
Release: 0 Release: 0
Summary: A small Python module to parse various kinds of time expressions 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
%python_subpackages %python_subpackages
%description %description
@@ -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