%define oname storm Summary: Object Relational Mapper for Python Name: python-%{oname} Version: 0.19 Release: %mkrel 1 Source0: https://launchpad.net/storm/trunk/%{version}/+download/%{oname}-%{version}.tar.bz2 License: GPLv2 URL: http://storm.canonical.com/ Group: Development/Python BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot Prefix: %{_prefix} BuildArch: noarch BuildRequires: libpython-devel Requires: python >= 2.4 Requires: python-psycopg2 Requires: python-sqlite2 %files %defattr(-,root,root) %doc TODO LICENSE README tests/tutorial.txt tests/ %{py_puresitedir}/* #-------------------------------------------------------------------- %description Storm is an object-relation mapper (ORM) for the Python language. It allows rows from a relational database to be seen as objects in an object-oriented language like Python. - Storm lets you efficiently access and update large datasets by allowing you to formulate complex queries spanning multiple tables using Python. - Storm allows you to fallback to SQL if needed (or if you just prefer), allowing you to mix "old school" code and ORM code %prep %setup -q -n %{oname}-%{version} %build %install install -d %{buildroot}%{py_puresitedir} cp -af storm/ %{buildroot}%{py_puresitedir} %clean rm -rf $RPM_BUILD_ROOT