diff --git a/python-tasklib.changes b/python-tasklib.changes index c8f9360..bda6df3 100644 --- a/python-tasklib.changes +++ b/python-tasklib.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Feb 23 06:39:48 UTC 2024 - Steve Kowalik + +- Switch to pyproject and autosetup macros. +- No more greedy globs in %files. + ------------------------------------------------------------------- Mon Dec 5 13:39:38 UTC 2022 - Yogalakshmi Arunachalam diff --git a/python-tasklib.spec b/python-tasklib.spec index a858cb9..c1e6f92 100644 --- a/python-tasklib.spec +++ b/python-tasklib.spec @@ -1,7 +1,7 @@ # # 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 # 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 Version: 2.5.1 Release: 0 @@ -26,9 +24,11 @@ License: BSD-3-Clause URL: https://github.com/robgolding/tasklib Source: https://files.pythonhosted.org/packages/source/t/tasklib/tasklib-%{version}.tar.gz Patch0: disable-windows-test.patch +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytz} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module tzlocal} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros 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. %prep -%setup -q -n tasklib-%{version} -%patch0 -p1 +%autosetup -p1 -n tasklib-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -60,6 +59,7 @@ export LANG="en_US.UTF8" %files %{python_files} %license LICENSE %doc README.rst -%{python_sitelib}/* +%{python_sitelib}/tasklib +%{python_sitelib}/tasklib-%{version}.dist-info %changelog