3 %bcond_without tests # do not perform "make test"
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)
12 Group: Development/Languages/Python
13 Source0: http://pypi.python.org/packages/source/s/smmap/%{module}-%{version}.tar.gz
14 # Source0-md5: f5426b7626ddcf5e447253fae0396b0c
15 URL: https://github.com/Byron/smmap
16 BuildRequires: python-distribute
17 BuildRequires: rpm-pythonprov
18 # if py_postclean is used
19 BuildRequires: rpmbuild(macros) >= 1.710
20 Requires: python-modules
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 A pure git implementation of a sliding window memory map manager.
28 %setup -q -n %{module}-%{version}
33 %{?with_tests:%{__python} setup.py test}
36 rm -rf $RPM_BUILD_ROOT
39 %{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/smmap/test
44 rm -rf $RPM_BUILD_ROOT
47 %defattr(644,root,root,755)
48 %dir %{py_sitescriptdir}/smmap
49 %{py_sitescriptdir}/smmap/*.py[co]
50 %{py_sitescriptdir}/smmap-*.egg-info