diff --git a/README.md b/README.md index 50debc3..f7824c2 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # python-jsonschema +jsonschema is an implementation of JSON Schema for Python. + diff --git a/python-jsonschema.spec b/python-jsonschema.spec new file mode 100644 index 0000000..0bd92f7 --- /dev/null +++ b/python-jsonschema.spec @@ -0,0 +1,47 @@ +Name: python-jsonschema +Version: 2.4.0 +Release: 1mamba +Summary: jsonschema is an implementation of JSON Schema for Python +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Davide Madrisan +URL: http://pypi.python.org/pypi/jsonschema +Source: http://pypi.python.org/packages/source/j/jsonschema/jsonschema-%{version}.tar.gz +License: MIT +## AUTOBUILDREQ-BEGIN +BuildRequires: libpython-devel +## AUTOBUILDREQ-END +BuildRequires: python-argparse +BuildRequires: python-nose +BuildRequires: python-setuptools +Requires: python >= %python_version +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +%{summary}. + +%prep +%setup -q -n jsonschema-%{version} + +%build +CFLAGS="%{optflags}" %{__python} setup.py build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%{__python} setup.py install \ + -O1 --skip-build \ + --root="%{buildroot}" \ + --install-headers=%{_includedir}/python \ + --install-lib=%{python_sitearch} \ + --record=%{name}.filelist + +sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist + +%files -f %{name}.filelist +%defattr(-,root,root) +%doc COPYING README.rst + +%changelog +* Fri Sep 25 2015 Davide Madrisan 2.4.0-1mamba +- package created by autospec \ No newline at end of file