[packages/python-repoze.lru] new, version 0.6

glen glen at pld-linux.org
Sun Jan 27 19:12:19 CET 2013


commit aced4f00140d328e26644e56c51d94c2fcfca38c
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Jan 27 20:11:45 2013 +0200

    new, version 0.6
    
    based on python template .spec

 python-repoze.lru.spec | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 58 insertions(+)
---
diff --git a/python-repoze.lru.spec b/python-repoze.lru.spec
new file mode 100644
index 0000000..95a6d54
--- /dev/null
+++ b/python-repoze.lru.spec
@@ -0,0 +1,58 @@
+#
+# Conditional build:
+%bcond_without	tests	# do not perform "make test"
+
+%define 	module	repoze.lru
+Summary:	A tiny LRU cache implementation and decorator
+Name:		python-%{module}
+Version:	0.6
+Release:	1
+License:	BSD-derived (http://www.repoze.org/LICENSE.txt)
+Group:		Libraries/Python
+Source0:	http://pypi.python.org/packages/source/r/repoze.lru/repoze.lru-%{version}.tar.gz
+# Source0-md5:	2c3b64b17a8e18b405f55d46173e14dd
+URL:		http://pypi.python.org/pypi/repoze.lru
+BuildRequires:	python-distribute
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.219
+Requires:	python-modules
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+repoze.lru is a LRU (least recently used) cache implementation. Keys
+and values that are not used frequently will be evicted from the cache
+faster than keys and values that are used frequently.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+%{__python} setup.py build
+
+%{?with_tests:%{__python} setup.py test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install \
+	--skip-build \
+	--optimize=2 \
+	--root=$RPM_BUILD_ROOT
+
+%{__rm} $RPM_BUILD_ROOT%{py_sitescriptdir}/repoze/lru/tests.py*
+
+%py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
+%py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGES.txt LICENSE.txt README.txt
+%dir %{py_sitescriptdir}/repoze/
+%dir %{py_sitescriptdir}/repoze/lru
+%{py_sitescriptdir}/repoze/lru/*.py[co]
+%{py_sitescriptdir}/%{module}-%{version}-py*-nspkg.pth
+%{py_sitescriptdir}/%{module}-%{version}-py*.egg-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-repoze.lru.git/commitdiff/aced4f00140d328e26644e56c51d94c2fcfca38c



More information about the pld-cvs-commit mailing list