forked from pool/python-diskcache
Compare commits
3 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 1a88b38f59 | |||
| a911e0f0f3 | |||
| 9269556c91 |
@@ -1,13 +1,3 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Jul 5 14:53:34 UTC 2025 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- disable django support on SLE15 also
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 5 06:01:37 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Switch to pyproject macros.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 1 10:19:39 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-diskcache
|
||||
#
|
||||
# Copyright (c) 2025 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,8 @@
|
||||
#
|
||||
|
||||
|
||||
%if 0%{?suse_version} == 1600 || 0%{?suse_version} == 1500
|
||||
# No django in SLFO:Main or SLE15
|
||||
%if 0%{?suse_version} == 1600
|
||||
# No django in SLFO:Main
|
||||
%bcond_with django
|
||||
%else
|
||||
%bcond_without django
|
||||
@@ -31,17 +31,15 @@ Summary: Disk and file backed cache
|
||||
License: Apache-2.0
|
||||
URL: https://grantjenks.com/docs/diskcache/
|
||||
Source: https://github.com/grantjenks/python-diskcache/archive/v%{version}.tar.gz#/diskcache-%{version}.tar.gz
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pytest-xdist}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: %{pythons}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
%if %{with django}
|
||||
BuildRequires: %{python_module Django}
|
||||
BuildRequires: %{python_module pytest-django}
|
||||
BuildRequires: %{python_module Django if (%python-base without python36-base)}
|
||||
BuildRequires: %{python_module pytest-django if (%python-base without python36-base)}
|
||||
%endif
|
||||
Requires: python
|
||||
BuildArch: noarch
|
||||
@@ -58,10 +56,10 @@ in pure Python, and compatible with Django.
|
||||
sed -i '/--cov/d' tox.ini
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
|
||||
Reference in New Issue
Block a user