[packages/python-smmap] New

wiget wiget at pld-linux.org
Thu Nov 1 11:59:56 CET 2012


commit 8e9e71042956c49ae58dfc0f649771b85b8ea40f
Author: Artur Frysiak <artur at frysiak.net>
Date:   Thu Nov 1 11:59:27 2012 +0100

    New

 python-smmap.spec | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 53 insertions(+)
---
diff --git a/python-smmap.spec b/python-smmap.spec
new file mode 100644
index 0000000..4d7dc44
--- /dev/null
+++ b/python-smmap.spec
@@ -0,0 +1,53 @@
+#
+# Conditional build:
+%bcond_without	tests	# do not perform "make test"
+
+%define 	module	smmap
+Summary:	A pure git implementation of a sliding window memory map manager
+# Name must match the python module/package name (as in 'import' statement)
+Name:		python-%{module}
+Version:	0.8.2
+Release:	1
+License:	BSD
+Group:		Development/Languages/Python
+Source0:	http://pypi.python.org/packages/source/s/smmap/%{module}-%{version}.tar.gz
+# Source0-md5:	f5426b7626ddcf5e447253fae0396b0c
+URL:		https://github.com/Byron/smmap
+BuildRequires:	python-distribute
+BuildRequires:	rpm-pythonprov
+# if py_postclean is used
+BuildRequires:	rpmbuild(macros) >= 1.219
+Requires:	python-modules
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+A pure git implementation of a sliding window memory map manager.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+%{__python} setup.py build
+
+%{?with_tests:%{__python} setup.py test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install \
+	--skip-build \
+	--optimize=2 \
+	--root=$RPM_BUILD_ROOT
+
+%{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/smmap/test
+
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%dir %{py_sitescriptdir}/smmap
+%{py_sitescriptdir}/smmap/*.py[co]
+%{py_sitescriptdir}/smmap-*.egg-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-smmap.git/commitdiff/8e9e71042956c49ae58dfc0f649771b85b8ea40f



More information about the pld-cvs-commit mailing list