]>
Commit | Line | Data |
---|---|---|
8e9e7104 AF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | ||
0415b0f4 | 5 | %define module smmap |
8e9e7104 AF |
6 | Summary: A pure git implementation of a sliding window memory map manager |
7 | # Name must match the python module/package name (as in 'import' statement) | |
8 | Name: python-%{module} | |
0415b0f4 JR |
9 | Version: 2.0.3 |
10 | Release: 1 | |
8e9e7104 AF |
11 | License: BSD |
12 | Group: Development/Languages/Python | |
0415b0f4 JR |
13 | Source0: https://github.com/gitpython-developers/smmap/archive/v%{version}/%{module}-%{version}.tar.gz |
14 | # Source0-md5: 87427acfb9d65867544d34a12434e502 | |
8e9e7104 AF |
15 | URL: https://github.com/Byron/smmap |
16 | BuildRequires: python-distribute | |
17 | BuildRequires: rpm-pythonprov | |
18 | # if py_postclean is used | |
7109e6aa | 19 | BuildRequires: rpmbuild(macros) >= 1.710 |
8e9e7104 AF |
20 | Requires: python-modules |
21 | BuildArch: noarch | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | A pure git implementation of a sliding window memory map manager. | |
26 | ||
27 | %prep | |
28 | %setup -q -n %{module}-%{version} | |
29 | ||
30 | %build | |
8063773d | 31 | %py_build |
8e9e7104 AF |
32 | |
33 | %{?with_tests:%{__python} setup.py test} | |
34 | ||
35 | %install | |
36 | rm -rf $RPM_BUILD_ROOT | |
8063773d | 37 | %py_install |
8e9e7104 AF |
38 | |
39 | %{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/smmap/test | |
40 | ||
41 | %py_postclean | |
42 | ||
43 | %clean | |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | ||
46 | %files | |
47 | %defattr(644,root,root,755) | |
48 | %dir %{py_sitescriptdir}/smmap | |
49 | %{py_sitescriptdir}/smmap/*.py[co] | |
0415b0f4 | 50 | %{py_sitescriptdir}/smmap2-*.egg-info |