avatar
Denis Silakov has added 550e306d86
Imported from SRPM
... ... --- /dev/null
... ... +++ b/.abf.yml
... ... @@ -0,0 +1,2 @@
1
sources:
2
  repoze.lru-0.6.tar.gz: e7cfb2ca9e9dcbf237844f9e6233903a38ce6d09
view file @ 550e306d86
... ... --- /dev/null
... ... +++ b/python-repoze-lru.spec
... ... @@ -0,0 +1,73 @@
1
%define modname repoze.lru
2
3
4
Name:           python-repoze-lru
5
Version:        0.6
6
Release:        3
7
Summary:        A tiny LRU cache implementation and decorator
8
9
Group:          Development/Python
10
License:        BSD
11
URL:            https://pypi.python.org/pypi/repoze.lru
12
Source0:        https://pypi.python.org/packages/source/r/repoze.lru/%{modname}-%{version}.tar.gz
13
BuildArch:      noarch
14
15
BuildRequires:  python-devel
16
BuildRequires:  python-setuptools
17
18
BuildRequires:  python3-devel
19
BuildRequires:  python3-setuptools
20
21
%description
22
repoze.lru is a LRU (least recently used) cache implementation. Keys and values
23
that are not used frequently will be evicted from the cache faster than keys
24
and values that are used frequently.
25
26
%files
27
%doc README.txt LICENSE.txt
28
%{py_puresitedir}/repoze/lru
29
%{py_puresitedir}/%{modname}-%{version}*
30
31
32
#-------------------------------------------------------------------------
33
34
%package -n python3-repoze-lru
35
Summary:        A tiny LRU cache implementation and decorator
36
Group:          Development/Python
37
38
%description -n python3-repoze-lru
39
repoze.lru is a LRU (least recently used) cache implementation. Keys and values
40
that are not used frequently will be evicted from the cache faster than keys
41
and values that are used frequently.
42
43
%files -n python3-repoze-lru
44
%doc README.txt LICENSE.txt
45
%{py3_puresitedir}/repoze/lru
46
%{py3_puresitedir}/%{modname}-%{version}*
47
48
#-------------------------------------------------------------------------
49
50
%prep
51
%setup -q -n %{modname}-%{version}
52
rm -rf %{modname}.egg-info
53
cp -a . %{py3dir}
54
55
%build
56
%py2_build
57
pushd %{py3dir}
58
%py3_build
59
popd
60
61
%install
62
%py2_install
63
64
pushd %{py3dir}
65
%py3_install
66
popd
67
68
%check
69
python2 setup.py test
70
71
pushd %{py3dir}
72
python3 setup.py test
73
popd

Comments