3 %bcond_without tests # do not perform "make test"
5 %define module repoze.lru
6 Summary: A tiny LRU cache implementation and decorator
10 License: BSD-derived (http://www.repoze.org/LICENSE.txt)
11 Group: Libraries/Python
12 Source0: http://pypi.python.org/packages/source/r/repoze.lru/repoze.lru-%{version}.tar.gz
13 # Source0-md5: 2c3b64b17a8e18b405f55d46173e14dd
14 URL: http://pypi.python.org/pypi/repoze.lru
15 BuildRequires: python-distribute
16 BuildRequires: rpm-pythonprov
17 BuildRequires: rpmbuild(macros) >= 1.710
18 Requires: python-modules
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 repoze.lru is a LRU (least recently used) cache implementation. Keys
24 and values that are not used frequently will be evicted from the cache
25 faster than keys and values that are used frequently.
28 %setup -q -n %{module}-%{version}
33 %{?with_tests:%{__python} setup.py test}
36 rm -rf $RPM_BUILD_ROOT
39 %{__rm} $RPM_BUILD_ROOT%{py_sitescriptdir}/repoze/lru/tests.py*
41 %py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
42 %py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
46 rm -rf $RPM_BUILD_ROOT
49 %defattr(644,root,root,755)
50 %doc CHANGES.txt LICENSE.txt README.txt
51 %dir %{py_sitescriptdir}/repoze/
52 %dir %{py_sitescriptdir}/repoze/lru
53 %{py_sitescriptdir}/repoze/lru/*.py[co]
54 %{py_sitescriptdir}/%{module}-%{version}-py*-nspkg.pth
55 %{py_sitescriptdir}/%{module}-%{version}-py*.egg-info