1 |
Name: python-warlock |
2 |
Version: 1.0.1 |
3 |
Release: %mkrel 5 |
4 |
Summary: Python object model built on top of JSON schema |
5 |
|
6 |
License: ASL 2.0 |
7 |
URL: http://pypi.python.org/pypi/warlock/0.4.0 |
8 |
Source0: http://pypi.python.org/packages/source/w/warlock/warlock-%{version}.tar.gz |
9 |
BuildArch: noarch |
10 |
Group: Development/Python |
11 |
|
12 |
BuildRequires: python-devel |
13 |
BuildRequires: python-setuptools |
14 |
|
15 |
Requires: python-jsonschema |
16 |
BuildRequires: python-jsonschema |
17 |
|
18 |
%description |
19 |
Build self-validating python objects using JSON schemas |
20 |
|
21 |
%prep |
22 |
%setup -q -n warlock-%{version} |
23 |
# Remove bundled egg-info |
24 |
rm -rf warlock.egg-info |
25 |
|
26 |
%build |
27 |
%{__python} setup.py build |
28 |
|
29 |
%check |
30 |
%{__python} setup.py test |
31 |
|
32 |
%install |
33 |
%{__python} setup.py install --skip-build --root %{buildroot} |
34 |
|
35 |
%files |
36 |
%doc README.md |
37 |
%{python_sitelib}/warlock |
38 |
%{python_sitelib}/warlock-%{version}-py?.?.egg-info |