|
|
|
@@ -1,7 +1,7 @@
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# spec file for package python-diskcache
|
|
|
|
# spec file for package python-diskcache
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# Copyright (c) 2024 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
|
|
|
|
@@ -16,8 +16,8 @@
|
|
|
|
#
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?suse_version} == 1600
|
|
|
|
%if 0%{?suse_version} == 1600 || 0%{?suse_version} == 1500
|
|
|
|
# No django in SLFO:Main
|
|
|
|
# No django in SLFO:Main or SLE15
|
|
|
|
%bcond_with django
|
|
|
|
%bcond_with django
|
|
|
|
%else
|
|
|
|
%else
|
|
|
|
%bcond_without django
|
|
|
|
%bcond_without django
|
|
|
|
@@ -31,15 +31,17 @@ Summary: Disk and file backed cache
|
|
|
|
License: Apache-2.0
|
|
|
|
License: Apache-2.0
|
|
|
|
URL: https://grantjenks.com/docs/diskcache/
|
|
|
|
URL: https://grantjenks.com/docs/diskcache/
|
|
|
|
Source: https://github.com/grantjenks/python-diskcache/archive/v%{version}.tar.gz#/diskcache-%{version}.tar.gz
|
|
|
|
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-xdist}
|
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
|
|
|
|
BuildRequires: %{python_module wheel}
|
|
|
|
BuildRequires: %{pythons}
|
|
|
|
BuildRequires: %{pythons}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
%if %{with django}
|
|
|
|
%if %{with django}
|
|
|
|
BuildRequires: %{python_module Django if (%python-base without python36-base)}
|
|
|
|
BuildRequires: %{python_module Django}
|
|
|
|
BuildRequires: %{python_module pytest-django if (%python-base without python36-base)}
|
|
|
|
BuildRequires: %{python_module pytest-django}
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
Requires: python
|
|
|
|
Requires: python
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
@@ -56,10 +58,10 @@ in pure Python, and compatible with Django.
|
|
|
|
sed -i '/--cov/d' tox.ini
|
|
|
|
sed -i '/--cov/d' tox.ini
|
|
|
|
|
|
|
|
|
|
|
|
%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
|
|
|
|
|