[python-sqlite3dbm] Initial import of python-sqlite3dbm

Ian Weller ianweller at fedoraproject.org
Wed Feb 8 18:40:07 UTC 2012


commit 10b273184dfe651c3635c65297686300009654ed
Author: Ian Weller <ian at ianweller.org>
Date:   Wed Feb 8 12:39:59 2012 -0600

    Initial import of python-sqlite3dbm

 .gitignore             |    1 +
 python-sqlite3dbm.spec |   53 ++++++++++++++++++++++++++++++++++++++++++++++++
 sources                |    1 +
 3 files changed, 55 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..6578f34 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/sqlite3dbm-0.1.4.tar.gz
diff --git a/python-sqlite3dbm.spec b/python-sqlite3dbm.spec
new file mode 100644
index 0000000..2bd5b45
--- /dev/null
+++ b/python-sqlite3dbm.spec
@@ -0,0 +1,53 @@
+%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+%endif
+
+%global module_name sqlite3dbm
+
+Name:           python-%{module_name}
+Version:        0.1.4
+Release:        2%{?dist}
+Summary:        SQLite-backed dictionary conforming to the dbm interface
+
+License:        ASL 2.0
+URL:            https://github.com/Yelp/sqlite3dbm/
+Source0:        http://pypi.python.org/packages/source/s/sqlite3dbm/%{module_name}-%{version}.tar.gz
+
+BuildArch:      noarch
+BuildRequires:  python2-devel
+BuildRequires:  python-setuptools
+
+%description
+This module provides a SQLite-backed dictionary conforming to the dbm
+interface, along with a shelve class that wraps the dict and provides
+serialization for it.
+
+
+%prep
+%setup -qn %{module_name}-%{version}
+
+
+%build
+%{__python} setup.py build
+
+
+%install
+rm -rf %{buildroot}
+%{__python} setup.py install -O1 --skip-build --root %{buildroot}
+
+ 
+%files
+%doc README.md LICENSE.txt AUTHORS.txt CHANGES.txt
+%{python_sitelib}/%{module_name}
+%{python_sitelib}/%{module_name}-*.egg-info
+
+
+%changelog
+* Tue Feb 07 2012 Ian Weller <iweller at redhat.com> - 0.1.4-2
+- Add python-setuptools to BuildRequires
+- s/python-devel/python2-devel/
+- Make definition of python_sitelib conditional
+- Use more specific filenames in file list
+
+* Fri Jan 13 2012 Ian Weller <iweller at redhat.com> - 0.1.4-1
+- Initial package build
diff --git a/sources b/sources
index e69de29..fc073a4 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+fc2f8fb09a4bbc0260b97e835b369184  sqlite3dbm-0.1.4.tar.gz


More information about the scm-commits mailing list