%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} %global module_name sqlite3dbm Name: python-%{module_name} Version: 0.1.4 Release: 1%{?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: python-devel %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}/* %changelog * Fri Jan 13 2012 Ian Weller - 0.1.4-1 - Initial package build