2013-09-02 08:46:08 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-dogpile.cache
|
|
|
|
|
#
|
2025-03-26 07:49:04 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2013-09-02 08:46:08 +00:00
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
2018-10-11 11:34:30 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-10-21 13:22:10 +00:00
|
|
|
#
|
2013-09-02 08:46:08 +00:00
|
|
|
|
|
|
|
|
|
2024-01-07 21:55:00 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2013-09-02 08:46:08 +00:00
|
|
|
Name: python-dogpile.cache
|
2025-07-05 15:11:08 +00:00
|
|
|
Version: 1.4.0
|
2013-09-02 08:46:08 +00:00
|
|
|
Release: 0
|
2020-11-25 14:12:34 +00:00
|
|
|
%define modname dogpile.cache
|
2025-07-05 15:11:08 +00:00
|
|
|
%define modver 1_4_0
|
2013-09-02 08:46:08 +00:00
|
|
|
Summary: A caching front-end based on the Dogpile lock
|
2013-10-21 13:22:10 +00:00
|
|
|
License: BSD-3-Clause
|
2019-03-08 14:47:44 +00:00
|
|
|
URL: https://github.com/sqlalchemy/dogpile.cache
|
2024-05-06 08:38:55 +00:00
|
|
|
Source: https://github.com/sqlalchemy/%{modname}/archive/refs/tags/rel_%{modver}.tar.gz#/%{modname}-%{version}.tar.gz
|
2017-04-03 08:47:17 +00:00
|
|
|
BuildRequires: %{python_module Mako}
|
2020-11-25 14:12:34 +00:00
|
|
|
BuildRequires: %{python_module dbm}
|
2019-10-04 14:24:19 +00:00
|
|
|
BuildRequires: %{python_module decorator >= 4.0.0}
|
2023-12-28 09:12:37 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2021-03-10 15:18:43 +00:00
|
|
|
BuildRequires: %{python_module pytest >= 5}
|
2021-12-05 07:18:18 +00:00
|
|
|
BuildRequires: %{python_module stevedore > 3.0.0}
|
2024-01-07 21:55:00 +00:00
|
|
|
BuildRequires: %{python_module typing-extensions >= 4.0.1}
|
2023-12-28 09:12:37 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2019-10-04 14:24:19 +00:00
|
|
|
Requires: python-decorator >= 4.0.0
|
2021-12-05 07:18:18 +00:00
|
|
|
Requires: python-stevedore >= 3.0.0
|
2024-01-07 21:55:00 +00:00
|
|
|
%if 0%{?python_version_nodots} < 311
|
|
|
|
|
Requires: python-typing-extensions >= 4.0.1
|
|
|
|
|
%endif
|
2015-05-06 23:25:02 +00:00
|
|
|
BuildRequires: fdupes
|
2017-04-03 08:47:17 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2019-03-08 14:47:44 +00:00
|
|
|
Provides: python-dogpile.core = %{version}
|
|
|
|
|
Obsoletes: python-dogpile.core < 0.4.1
|
|
|
|
|
BuildArch: noarch
|
2017-04-03 08:47:17 +00:00
|
|
|
%python_subpackages
|
2013-09-02 08:46:08 +00:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
A caching API built around the concept of a "dogpile lock", which allows
|
|
|
|
|
continued access to an expiring data value while a single thread generates a
|
|
|
|
|
new value.
|
|
|
|
|
|
|
|
|
|
%prep
|
2020-11-25 14:12:34 +00:00
|
|
|
%setup -q -n %{modname}-rel_%{modver}
|
2013-09-02 08:46:08 +00:00
|
|
|
|
|
|
|
|
%build
|
2023-12-28 09:12:37 +00:00
|
|
|
%pyproject_wheel
|
2013-09-02 08:46:08 +00:00
|
|
|
|
|
|
|
|
%install
|
2023-12-28 09:12:37 +00:00
|
|
|
%pyproject_install
|
2019-03-07 10:53:37 +00:00
|
|
|
%python_expand %fdupes %{buildroot}/%{$python_sitelib}
|
2013-09-02 08:46:08 +00:00
|
|
|
|
2017-04-03 08:47:17 +00:00
|
|
|
%check
|
2019-03-08 14:47:44 +00:00
|
|
|
%pytest
|
2017-04-03 08:47:17 +00:00
|
|
|
|
|
|
|
|
%files %{python_files}
|
2018-10-11 11:37:31 +00:00
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.rst
|
2017-04-03 08:47:17 +00:00
|
|
|
%{python_sitelib}/dogpile
|
2025-03-26 07:49:04 +00:00
|
|
|
%{python_sitelib}/dogpile_cache-%{version}.dist-info
|
2013-09-02 08:46:08 +00:00
|
|
|
|
|
|
|
|
%changelog
|