[packages/python3-cachetools] - up to 5.5.2
baggins
baggins at pld-linux.org
Wed Mar 26 23:39:52 CET 2025
commit cc5c94a1421751181b422870aa9bc97b288dcf00
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Thu Mar 27 00:39:48 2025 +0100
- up to 5.5.2
python-cachetools.spec => python3-cachetools.spec | 58 ++---------------------
1 file changed, 4 insertions(+), 54 deletions(-)
---
diff --git a/python-cachetools.spec b/python3-cachetools.spec
similarity index 55%
rename from python-cachetools.spec
rename to python3-cachetools.spec
index 8447c5c..d101a9e 100644
--- a/python-cachetools.spec
+++ b/python3-cachetools.spec
@@ -2,32 +2,22 @@
# Conditional build:
%bcond_with doc # don't build doc (not provided by package)
%bcond_without tests # do not perform "make test"
-%bcond_without python2 # CPython 2.x module
-%bcond_with python3 # CPython 3.x module
%define module cachetools
Summary: Various cache implementations based on different cache algorithms
Summary(pl.UTF-8): Rózne implementacje cache bazujące na róznych algorytmach
-# Name must match the python module/package name (as in 'import' statement)
Name: python-%{module}
-Version: 0.7.0
-Release: 15
+Version: 5.5.2
+Release: 1
License: MIT
Group: Libraries/Python
-
Source0: https://pypi.python.org/packages/source/c/%{module}/%{module}-%{version}.tar.gz
-# Source0-md5: c67ebb099e7607b689f79b2869585d36
+# Source0-md5: bc4019928cf73ca154ff5416280282bb
URL: https://github.com/tkem/cachetools
BuildRequires: rpm-pythonprov
-# if py_postclean is used
BuildRequires: rpmbuild(macros) >= 1.710
-%if %{with python2}
-BuildRequires: python-distribute
-%endif
-%if %{with python3}
BuildRequires: python3-modules
-%endif
-Requires: python-modules
+Requires: python3-modules
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -39,20 +29,6 @@ as well as decorators for easily memoizing function and method calls.
Moduł dostarcza rózne implementacje cache'u bazujące na róznych algorytmach, jak również
dektoratory do łatwego zapamiętywania wyników funcji i metod.
-%package -n python3-%{module}
-Summary: Various cache implementations based on different cache algorithms
-Summary(pl.UTF-8): Rózne implementacje cache bazujące na róznych algorytmach
-Group: Libraries/Python
-Requires: python3-modules
-
-%description -n python3-%{module}
-This module provides various cache implementations based on different cache algorithms,
-as well as decorators for easily memoizing function and method calls.
-
-%description -n python3-%{module} -l pl.UTF-8
-Moduł dostarcza rózne implementacje cache'u bazujące na róznych algorytmach, jak również
-dektoratory do łatwego zapamiętywania wyników funcji i metod.
-
%package apidocs
Summary: %{module} API documentation
Summary(pl.UTF-8): Dokumentacja API %{module}
@@ -68,13 +44,7 @@ Dokumentacja API %{module}.
%setup -q -n %{module}-%{version}
%build
-%if %{with python2}
-%py_build %{?with_tests:test}
-%endif
-
-%if %{with python3}
%py3_build %{?with_tests:test}
-%endif
%if %{with doc}
cd docs
@@ -85,36 +55,16 @@ rm -rf _build/html/_sources
%install
rm -rf $RPM_BUILD_ROOT
-%if %{with python2}
-%py_install
-
-%py_postclean
-%endif
-
-%if %{with python3}
%py3_install
-%endif
%clean
rm -rf $RPM_BUILD_ROOT
-%if %{with python2}
%files
%defattr(644,root,root,755)
%doc LICENSE README.rst
-%{py_sitescriptdir}/%{module}
-%if "%{py_ver}" > "2.4"
-%{py_sitescriptdir}/%{module}-%{version}-py*.egg-info
-%endif
-%endif
-
-%if %{with python3}
-%files -n python3-%{module}
-%defattr(644,root,root,755)
-%doc LICENSE README.rst
%{py3_sitescriptdir}/%{module}
%{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info
-%endif
%if %{with doc}
%files apidocs
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-cachetools.git/commitdiff/cc5c94a1421751181b422870aa9bc97b288dcf00
More information about the pld-cvs-commit
mailing list