Accepting request 322413 from devel:languages:python
1 OBS-URL: https://build.opensuse.org/request/show/322413 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jsonschema?expand=0&rev=13
This commit is contained in:
commit
9bd92e19c6
@ -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>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# 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
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -17,7 +17,7 @@
|
||||
|
||||
|
||||
Name: python-jsonschema
|
||||
Version: 2.4.0
|
||||
Version: 2.5.1
|
||||
Release: 0
|
||||
Summary: An implementation of JSON-Schema validation for Python
|
||||
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
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: python-functools32
|
||||
BuildRequires: python-vcversioner
|
||||
# Test build requirements
|
||||
BuildRequires: python-mock
|
||||
Requires: python-functools32
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
@ -50,31 +53,34 @@ 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 %{_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
|
||||
%check
|
||||
python -m unittest jsonschema.tests.test_jsonschema_test_suite
|
||||
%endif
|
||||
|
||||
%pre
|
||||
[ -h %{_bindir}/jsonschema ] || rm -f %{_bindir}/jsonschema
|
||||
|
||||
%post
|
||||
update-alternatives --install \
|
||||
%{_bindir}/jsonschema jsonschema %{_bindir}/jsonschema-%{py_ver} 20
|
||||
%_sbindir/update-alternatives \
|
||||
--install %{_bindir}/jsonschema jsonschema %{_bindir}/jsonschema-%{py_ver} 30
|
||||
|
||||
%preun
|
||||
if [ $1 -eq 0 ] ; then
|
||||
update-alternatives --remove jsonschema %{_bindir}/jsonschema-%{py_ver}
|
||||
%_sbindir/update-alternatives --remove jsonschema %{_bindir}/jsonschema-%{py_ver}
|
||||
fi
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc COPYING README.rst
|
||||
%ghost %{_bindir}/jsonschema
|
||||
%{_bindir}/jsonschema
|
||||
%{_bindir}/jsonschema-%{py_ver}
|
||||
%ghost %{_sysconfdir}/alternatives/jsonschema
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user