14
0

- Switch to pyproject and autosetup macros.

- No more greedy globs in %files.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tasklib?expand=0&rev=13
This commit is contained in:
2024-02-23 06:40:20 +00:00
committed by Git OBS Bridge
parent 2ca3319249
commit 8eacaf64be
2 changed files with 14 additions and 8 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Feb 23 06:39:48 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject and autosetup macros.
- No more greedy globs in %files.
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Dec 5 13:39:38 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com> Mon Dec 5 13:39:38 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-tasklib # spec file for package python-tasklib
# #
# Copyright (c) 2022 SUSE LLC # Copyright (c) 2024 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
Name: python-tasklib Name: python-tasklib
Version: 2.5.1 Version: 2.5.1
Release: 0 Release: 0
@@ -26,9 +24,11 @@ License: BSD-3-Clause
URL: https://github.com/robgolding/tasklib URL: https://github.com/robgolding/tasklib
Source: https://files.pythonhosted.org/packages/source/t/tasklib/tasklib-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/t/tasklib/tasklib-%{version}.tar.gz
Patch0: disable-windows-test.patch Patch0: disable-windows-test.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytz} BuildRequires: %{python_module pytz}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module tzlocal} BuildRequires: %{python_module tzlocal}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
BuildRequires: taskwarrior >= 2.4.0 BuildRequires: taskwarrior >= 2.4.0
@@ -43,14 +43,13 @@ Tasklib is a Python library for interacting with taskwarrior
databases, using a queryset API similar to that of Django's ORM. databases, using a queryset API similar to that of Django's ORM.
%prep %prep
%setup -q -n tasklib-%{version} %autosetup -p1 -n tasklib-%{version}
%patch0 -p1
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
@@ -60,6 +59,7 @@ export LANG="en_US.UTF8"
%files %{python_files} %files %{python_files}
%license LICENSE %license LICENSE
%doc README.rst %doc README.rst
%{python_sitelib}/* %{python_sitelib}/tasklib
%{python_sitelib}/tasklib-%{version}.dist-info
%changelog %changelog