%global pkgname mongoengine Name: python-mongoengine Version: 0.7.9 Release: 1%{?dist} Summary: A Python Document-Object Mapper for working with MongoDB License: MIT URL: http://pypi.python.org/pypi/mongoengine/ Source0: http://pypi.python.org/packages/source/m/mongoengine/%{pkgname}-%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel BuildRequires: python-setuptools Requires: mongodb Requires: pymongo Requires: python-blinker Requires: python-imaging %description MongoEngine is a Document-Object Mapper (think ORM, but for document databases) for working with MongoDB from Python. It uses a simple declarative API, similar to the Django ORM. %prep %setup -q -n %{pkgname}-%{version} rm -rf mongoengine.egg-info %build python setup.py build %install python setup.py install --skip-build --root %{buildroot} %files %doc README.rst LICENSE %{python_sitelib}/%{pkgname} %{python_sitelib}/%{pkgname}-*.egg-info %changelog * Thu Jan 17 2013 Yohan Graterol - 0.7.9-1 * See: http://readthedocs.org/docs/mongoengine-odm/en/latest/changelog.html - Initial packaging