forked from pool/python-jsonschema
Accepting request 488134 from home:TheBlackCat:branches:devel:languages:python
- Update to 2.6.0 - Implement single-spec version - Fix source url OBS-URL: https://build.opensuse.org/request/show/488134 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsonschema?expand=0&rev=25
This commit is contained in:
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:36673ac378feed3daa5956276a829699056523d7961027911f064b52255ead41
|
|
||||||
size 50855
|
|
3
jsonschema-2.6.0.tar.gz
Normal file
3
jsonschema-2.6.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:6ff5f3180870836cae40f06fa10419f557208175f13ad7bc26caa77beb1f6e02
|
||||||
|
size 53252
|
@@ -1,3 +1,16 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Apr 15 23:06:18 UTC 2017 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
- Fix source url.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Apr 7 20:58:55 UTC 2017 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
- Update to 2.6.0
|
||||||
|
* Improved performance on CPython by adding caching around ref resolution
|
||||||
|
(#203)
|
||||||
|
- Implement single-spec version
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Oct 5 13:28:12 UTC 2015 - mcihar@suse.cz
|
Mon Oct 5 13:28:12 UTC 2015 - mcihar@suse.cz
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-jsonschema
|
# spec file for package python-jsonschema
|
||||||
#
|
#
|
||||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2017 SUSE LINUX 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
|
||||||
@@ -16,41 +16,31 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-jsonschema
|
Name: python-jsonschema
|
||||||
Version: 2.5.1
|
Version: 2.6.0
|
||||||
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
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Url: http://github.com/Julian/jsonschema
|
Url: http://github.com/Julian/jsonschema
|
||||||
Source: http://pypi.python.org/packages/source/j/jsonschema/jsonschema-%{version}.tar.gz
|
Source: http://files.pythonhosted.org/packages/source/j/jsonschema/jsonschema-%{version}.tar.gz
|
||||||
BuildRequires: python-devel
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-setuptools
|
BuildRequires: python-rpm-macros
|
||||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
BuildRequires: %{python_module devel}
|
||||||
BuildRequires: python-argparse
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: python-repoze.lru
|
BuildRequires: %{python_module vcversioner >= 2.16.0.0}
|
||||||
%else
|
BuildRequires: python2-functools32
|
||||||
BuildRequires: python-functools32
|
|
||||||
%endif
|
|
||||||
BuildRequires: python-vcversioner
|
|
||||||
# Test build requirements
|
# Test build requirements
|
||||||
BuildRequires: python-mock
|
BuildRequires: python2-mock
|
||||||
|
%ifpython2
|
||||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
|
||||||
Requires: python-argparse
|
|
||||||
Requires: python-repoze.lru
|
|
||||||
%else
|
|
||||||
Requires: python-functools32
|
Requires: python-functools32
|
||||||
%endif
|
%endif
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun): update-alternatives
|
Requires(preun): update-alternatives
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
|
||||||
BuildRequires: python-unittest2
|
|
||||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
||||||
%else
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
jsonschema is an implementation of JSON Schema (currently in Draft 3)
|
jsonschema is an implementation of JSON Schema (currently in Draft 3)
|
||||||
@@ -60,38 +50,28 @@ for Python (supporting 2.6+ including Python 3).
|
|||||||
%setup -q -n jsonschema-%{version}
|
%setup -q -n jsonschema-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
python setup.py build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
%python_install
|
||||||
|
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
# Prepare for update-alternatives usage
|
# Prepare for update-alternatives usage
|
||||||
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
%python_clone -a %{buildroot}%{_bindir}/jsonschema
|
||||||
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
|
|
||||||
|
|
||||||
%if 0%{?suse_version} > 1110
|
|
||||||
%check
|
%check
|
||||||
python -m unittest jsonschema.tests.test_jsonschema_test_suite
|
%python_exec -m unittest jsonschema.tests.test_jsonschema_test_suite
|
||||||
%endif
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%_sbindir/update-alternatives \
|
%python_install_alternative jsonschema
|
||||||
--install %{_bindir}/jsonschema jsonschema %{_bindir}/jsonschema-%{py_ver} 30
|
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
if [ $1 -eq 0 ] ; then
|
%python_uninstall_alternative jsonschema
|
||||||
%_sbindir/update-alternatives --remove jsonschema %{_bindir}/jsonschema-%{py_ver}
|
|
||||||
fi
|
|
||||||
|
|
||||||
%files
|
%files %{python_files}
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc COPYING README.rst
|
%doc COPYING README.rst
|
||||||
%{_bindir}/jsonschema
|
%python_alternative %{_bindir}/jsonschema
|
||||||
%{_bindir}/jsonschema-%{py_ver}
|
|
||||||
%ghost %{_sysconfdir}/alternatives/jsonschema
|
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user