Search
SailfishOS Open Build Service
>
Projects
>
home:rcolistete
>
python-jsonschema
> python-jsonschema.spec
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File python-jsonschema.spec of Package python-jsonschema
# # spec file for package python-jsonschema for Mer, based on OpenSuse version # Name: python-jsonschema Version: 2.5.1 Release: 0 Summary: An implementation of JSON-Schema validation for Python License: MIT Packager: Roberto Colistete Jr. <rcolistete.maemo@gmail.com> Group: Development/Languages/Python Url: http://github.com/Julian/jsonschema Source: jsonschema-%{version}.tar.gz BuildRequires: python-devel BuildRequires: python-setuptools BuildRequires: python-vcversioner Requires(post): update-alternatives Requires(postun): update-alternatives BuildArch: noarch %description jsonschema is an implementation of JSON Schema (currently in Draft 3) for Python (supporting 2.6+ including Python 3). %prep %setup -q -n jsonschema-%{version} %build python setup.py build %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} # Prepare for update-alternatives usage mkdir -p %{buildroot}%{_sysconfdir}/alternatives mv %{buildroot}%{_bindir}/jsonschema %{buildroot}%{_bindir}/jsonschema-%{py_ver} ln -s -f %{_sysconfdir}/alternatives/jsonschema %{buildroot}%{_bindir}/jsonschema # create a dummy target for /etc/alternatives/jsonschema touch %{buildroot}%{_sysconfdir}/alternatives/jsonschema %post %_sbindir/update-alternatives \ --install %{_bindir}/jsonschema jsonschema %{_bindir}/jsonschema-%{py_ver} 30 %preun if [ $1 -eq 0 ] ; then %_sbindir/update-alternatives --remove jsonschema %{_bindir}/jsonschema-%{py_ver} fi %files %defattr(-,root,root,-) %doc COPYING README.rst %{_bindir}/jsonschema %{_bindir}/jsonschema-%{py_ver} %ghost %{_sysconfdir}/alternatives/jsonschema %{python_sitelib}/* %changelog * Sun Aug 14 2016 Roberto Colistete Jr. <rcolistete.maemo@gmail.com> - 2.5.1 - jsonschema 2.5.1 (08/06/2015) for Mer (14/08/2016) : - * first release.