forked from pool/python-tasklib
Accepting request 1149688 from devel:languages:python
- Switch to pyproject and autosetup macros. - No more greedy globs in %files. OBS-URL: https://build.opensuse.org/request/show/1149688 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-tasklib?expand=0&rev=7
This commit is contained in:
@@ -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>
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user