]> git.pld-linux.org Git - packages/python-smmap.git/blame - python-smmap.spec
- up to 2.0.3
[packages/python-smmap.git] / python-smmap.spec
CommitLineData
8e9e7104
AF
1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4
0415b0f4 5%define module smmap
8e9e7104
AF
6Summary: A pure git implementation of a sliding window memory map manager
7# Name must match the python module/package name (as in 'import' statement)
8Name: python-%{module}
0415b0f4
JR
9Version: 2.0.3
10Release: 1
8e9e7104
AF
11License: BSD
12Group: Development/Languages/Python
0415b0f4
JR
13Source0: https://github.com/gitpython-developers/smmap/archive/v%{version}/%{module}-%{version}.tar.gz
14# Source0-md5: 87427acfb9d65867544d34a12434e502
8e9e7104
AF
15URL: https://github.com/Byron/smmap
16BuildRequires: python-distribute
17BuildRequires: rpm-pythonprov
18# if py_postclean is used
7109e6aa 19BuildRequires: rpmbuild(macros) >= 1.710
8e9e7104
AF
20Requires: python-modules
21BuildArch: noarch
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24%description
25A 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
36rm -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
44rm -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
This page took 0.207761 seconds and 4 git commands to generate.