forked from pool/python-jsonschema
Accepting request 322412 from home:TheBlackCat:branches:devel:languages:python
update to version 2.5.1 OBS-URL: https://build.opensuse.org/request/show/322412 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsonschema?expand=0&rev=21
This commit is contained in:
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:1298a2f1b2f4c4a7b921cccd159e4e42f6d7b0fb75c86c0cdecfc71f061833fa
|
|
||||||
size 48293
|
|
3
jsonschema-2.5.1.tar.gz
Normal file
3
jsonschema-2.5.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:36673ac378feed3daa5956276a829699056523d7961027911f064b52255ead41
|
||||||
|
size 50855
|
@@ -1,3 +1,16 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jun 15 02:16:17 UTC 2015 - arun@gmx.de
|
||||||
|
|
||||||
|
- update to version 2.5.1:
|
||||||
|
(no changelog available)
|
||||||
|
- update to version 2.5.0:
|
||||||
|
* Improved performance on CPython by adding caching around ref
|
||||||
|
resolution (#203)
|
||||||
|
- specfile:
|
||||||
|
* add python-vcversioner
|
||||||
|
- drop test requirements and %check section, which is broken
|
||||||
|
- Fix update-alternatives usage
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Nov 08 17:38:00 UTC 2014 - Led <ledest@gmail.com>
|
Sat Nov 08 17:38:00 UTC 2014 - Led <ledest@gmail.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-jsonschema
|
# spec file for package python-jsonschema
|
||||||
#
|
#
|
||||||
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: python-jsonschema
|
Name: python-jsonschema
|
||||||
Version: 2.4.0
|
Version: 2.5.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: An implementation of JSON-Schema validation for Python
|
Summary: An implementation of JSON-Schema validation for Python
|
||||||
License: MIT
|
License: MIT
|
||||||
@@ -26,8 +26,11 @@ Url: http://github.com/Julian/jsonschema
|
|||||||
Source: http://pypi.python.org/packages/source/j/jsonschema/jsonschema-%{version}.tar.gz
|
Source: http://pypi.python.org/packages/source/j/jsonschema/jsonschema-%{version}.tar.gz
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
BuildRequires: python-setuptools
|
BuildRequires: python-setuptools
|
||||||
|
BuildRequires: python-functools32
|
||||||
|
BuildRequires: python-vcversioner
|
||||||
# Test build requirements
|
# Test build requirements
|
||||||
BuildRequires: python-mock
|
BuildRequires: python-mock
|
||||||
|
Requires: python-functools32
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun): update-alternatives
|
Requires(postun): update-alternatives
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
@@ -50,31 +53,34 @@ python setup.py build
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
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}
|
mv %{buildroot}%{_bindir}/jsonschema %{buildroot}%{_bindir}/jsonschema-%{py_ver}
|
||||||
ln -s %{_bindir}/jsonschema-%{py_ver} %{buildroot}%{_bindir}/jsonschema
|
ln -s -f %{_sysconfdir}/alternatives/jsonschema %{buildroot}%{_bindir}/jsonschema
|
||||||
|
# create a dummy target for /etc/alternatives/jsonschema
|
||||||
|
touch %{buildroot}%{_sysconfdir}/alternatives/jsonschema
|
||||||
|
|
||||||
%if 0%{?suse_version} > 1110
|
%if 0%{?suse_version} > 1110
|
||||||
%check
|
%check
|
||||||
python -m unittest jsonschema.tests.test_jsonschema_test_suite
|
python -m unittest jsonschema.tests.test_jsonschema_test_suite
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%pre
|
|
||||||
[ -h %{_bindir}/jsonschema ] || rm -f %{_bindir}/jsonschema
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
update-alternatives --install \
|
%_sbindir/update-alternatives \
|
||||||
%{_bindir}/jsonschema jsonschema %{_bindir}/jsonschema-%{py_ver} 20
|
--install %{_bindir}/jsonschema jsonschema %{_bindir}/jsonschema-%{py_ver} 30
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
if [ $1 -eq 0 ] ; then
|
if [ $1 -eq 0 ] ; then
|
||||||
update-alternatives --remove jsonschema %{_bindir}/jsonschema-%{py_ver}
|
%_sbindir/update-alternatives --remove jsonschema %{_bindir}/jsonschema-%{py_ver}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc COPYING README.rst
|
%doc COPYING README.rst
|
||||||
%ghost %{_bindir}/jsonschema
|
%{_bindir}/jsonschema
|
||||||
%{_bindir}/jsonschema-%{py_ver}
|
%{_bindir}/jsonschema-%{py_ver}
|
||||||
|
%ghost %{_sysconfdir}/alternatives/jsonschema
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user