[python-smmap] Initial import

Jesse Keating jkeating at fedoraproject.org
Tue Sep 27 17:31:17 UTC 2011


commit 24275d26c4db6afde4a0154c010f6380ddfb4625
Author: Jesse Keating <jkeating at redhat.com>
Date:   Tue Sep 27 13:30:44 2011 -0400

    Initial import

 .gitignore                                         |    1 +
 ...LICENSE-file-containing-a-copy-of-new-BSD.patch |   49 +++++++++++++++++
 python-smmap.spec                                  |   57 ++++++++++++++++++++
 sources                                            |    1 +
 4 files changed, 108 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..23bc45b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/smmap-0.8.1.tar.gz
diff --git a/0001-Added-LICENSE-file-containing-a-copy-of-new-BSD.patch b/0001-Added-LICENSE-file-containing-a-copy-of-new-BSD.patch
new file mode 100644
index 0000000..dbd6ec9
--- /dev/null
+++ b/0001-Added-LICENSE-file-containing-a-copy-of-new-BSD.patch
@@ -0,0 +1,49 @@
+From bdc1258abb48328a389720df2ffc404692add426 Mon Sep 17 00:00:00 2001
+From: Sebastian Thiel <byronimo at gmail.com>
+Date: Mon, 29 Aug 2011 21:45:59 +0200
+Subject: [PATCH] Added LICENSE file containing a copy of (new)BSD
+
+---
+ LICENSE |   30 ++++++++++++++++++++++++++++++
+ 1 files changed, 30 insertions(+), 0 deletions(-)
+ create mode 100644 LICENSE
+
+diff --git a/LICENSE b/LICENSE
+new file mode 100644
+index 0000000..710010f
+--- /dev/null
++++ b/LICENSE
+@@ -0,0 +1,30 @@
++Copyright (C) 2010, 2011 Sebastian Thiel and contributors
++All rights reserved.
++
++Redistribution and use in source and binary forms, with or without 
++modification, are permitted provided that the following conditions 
++are met:
++
++* Redistributions of source code must retain the above copyright 
++notice, this list of conditions and the following disclaimer.
++
++* Redistributions in binary form must reproduce the above copyright 
++notice, this list of conditions and the following disclaimer in the 
++documentation and/or other materials provided with the distribution.
++
++* Neither the name of the async project nor the names of 
++its contributors may be used to endorse or promote products derived 
++from this software without specific prior written permission.
++
++THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
++"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
++LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 
++A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 
++OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 
++SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED 
++TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
++PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 
++LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
++NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
++SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
++
+-- 
+1.7.6.2
+
diff --git a/python-smmap.spec b/python-smmap.spec
new file mode 100644
index 0000000..89d9a4d
--- /dev/null
+++ b/python-smmap.spec
@@ -0,0 +1,57 @@
+# sitelib for noarch packages, sitearch for others (remove the unneeded one)
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
+
+Name:           python-smmap
+Version:        0.8.1
+Release:        3%{?dist}
+Summary:        Sliding window memory map manager
+
+License:        BSD
+URL:            https://github.com/Byron/smmap
+# Download from http://pypi.python.org/packages/source/s/smmap/smmap-0.8.1.tar.gz#md5=a35b64bbb7068b7a3f2e0651b72646b2
+Source0:        http://pypi.python.org/packages/source/s/smmap/smmap-0.8.1.tar.gz
+# https://github.com/Byron/smmap/commit/bdc1258abb48328a389720df2ffc404692add426
+Patch0:         0001-Added-LICENSE-file-containing-a-copy-of-new-BSD.patch
+BuildArch:      noarch
+BuildRequires:  python-devel, python-setuptools, python-nose
+
+%description
+A pure python implementation of a sliding window memory map manager
+
+
+%prep
+%setup -q -n smmap-%{version}
+%patch0 -p1
+
+
+%build
+%{__python} setup.py build
+
+
+%check
+nosetests
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
+rm -rf $RPM_BUILD_ROOT%{python_sitelib}/smmap/test
+
+
+%files
+%doc LICENSE
+# For noarch packages: sitelib
+%{python_sitelib}/smmap/
+%{python_sitelib}/smmap-%{version}-py?.?.egg-info
+
+
+%changelog
+* Sat Sep 24 2011 Jesse Keating <jkeating at redhat.com> - 0.8.1-3
+- Don't package tests
+
+* Sat Sep 24 2011 Jesse Keating <jkeating at redhat.com> - 0.8.1-2
+- Updated summary, use specific files section, add a check section
+
+* Sat Sep 24 2011 Jesse Keating <jkeating at redhat.com> - 0.8.1-1
+- First package attempt
+
diff --git a/sources b/sources
index e69de29..9dcc871 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+a35b64bbb7068b7a3f2e0651b72646b2  smmap-0.8.1.tar.gz


More information about the scm-commits mailing list