[packages/python-backports.functools_lru_cache] new package

jajcus jajcus at pld-linux.org
Fri Nov 24 11:17:06 CET 2017


commit e01687ac22f9ccf8a176f8a7c5a4f1cdd3e1c10d
Author: Jacek Konieczny <j.konieczny at eggsoft.pl>
Date:   Fri Nov 24 11:16:36 2017 +0100

    new package

 python-backports.functools_lru_cache.spec | 48 +++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)
---
diff --git a/python-backports.functools_lru_cache.spec b/python-backports.functools_lru_cache.spec
new file mode 100644
index 0000000..d9b657e
--- /dev/null
+++ b/python-backports.functools_lru_cache.spec
@@ -0,0 +1,48 @@
+#
+# Conditional build:
+%bcond_without	tests	# do not perform "make test"
+
+%define		pypi_name	backports.functools_lru_cache
+
+Summary:	Backport of functools.lru_cache from Python 3.3
+Name:		python-%{pypi_name}
+Version:	1.4
+Release:	1
+License:	MIT
+Group:		Libraries/Python
+Source0:	https://files.pythonhosted.org/packages/source/b/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
+# Source0-md5:	b954e7d5e2ca0f0f66ad2ed12ba800e5
+URL:		https://github.com/jaraco/backports.functools_lru_cache
+BuildRequires:	python-setuptools
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+Requires:	python-backports
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Backport of functools.lru_cache from Python 3.3.
+
+%prep
+%setup -q -n %{pypi_name}-%{version}
+
+%build
+%py_build %{?with_tests:test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py_install
+
+%py_postclean
+
+rm $RPM_BUILD_ROOT%{py_sitescriptdir}/backports/__init__.*
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGES.rst README.rst
+%{py_sitescriptdir}/backports/functools_lru_cache.py[co]
+%{py_sitescriptdir}/%{pypi_name}-%{version}-py*.egg-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-backports.functools_lru_cache.git/commitdiff/e01687ac22f9ccf8a176f8a7c5a4f1cdd3e1c10d



More information about the pld-cvs-commit mailing list