Name: python-warlock Version: 0.4.0 Release: %mkrel 3 Summary: Python object model built on top of JSON schema License: ASL 2.0 URL: http://pypi.python.org/pypi/warlock/0.4.0 Source0: http://pypi.python.org/packages/source/w/warlock/warlock-%{version}.tar.gz Patch0: warlock-0.4.0-requirements.patch BuildArch: noarch Group: Development/Python BuildRequires: python-devel BuildRequires: python-setuptools Requires: python-jsonschema BuildRequires: python-jsonschema %description Build self-validating python objects using JSON schemas %prep %setup -q -n warlock-%{version} %patch0 -p1 -b .requirements # Remove bundled egg-info rm -rf warlock.egg-info %build %{__python} setup.py build %check %{__python} setup.py test %install %{__python} setup.py install --skip-build --root %{buildroot} %files %doc README.md LICENSE %{python_sitelib}/warlock %{python_sitelib}/warlock-%{version}-py?.?.egg-info