- Remove dependency on unittest2
- Clean up SPEC file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jmespath?expand=0&rev=27
This commit is contained in:
parent
2c04637480
commit
4c84d7677e
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Aug 13 11:20:47 UTC 2018 - mcepl@suse.com
|
||||||
|
|
||||||
|
- Remove dependency on unittest2
|
||||||
|
- Clean up SPEC file
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Nov 9 23:08:53 UTC 2017 - rjschwei@suse.com
|
Thu Nov 9 23:08:53 UTC 2017 - rjschwei@suse.com
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-jmespath
|
# spec file for package python-jmespath
|
||||||
#
|
#
|
||||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2018 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
|
||||||
@ -23,28 +23,24 @@ Release: 0
|
|||||||
Summary: Extract elements from JSON document
|
Summary: Extract elements from JSON document
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Url: https://github.com/boto/jmespath
|
URL: https://github.com/boto/jmespath
|
||||||
Source: https://pypi.io/packages/source/j/jmespath/jmespath-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/j/jmespath/jmespath-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module devel}
|
BuildRequires: %{python_module devel}
|
||||||
|
# Testing
|
||||||
|
BuildRequires: %{python_module nose}
|
||||||
BuildRequires: %{python_module ply >= 3.4}
|
BuildRequires: %{python_module ply >= 3.4}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module simplejson}
|
BuildRequires: %{python_module simplejson}
|
||||||
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
# Testing
|
|
||||||
BuildRequires: %{python_module nose}
|
|
||||||
%ifpython2
|
|
||||||
BuildRequires: python-unittest2
|
|
||||||
%endif
|
|
||||||
Requires: python-base
|
Requires: python-base
|
||||||
Requires: python-ply >= 3.4
|
Requires: python-ply >= 3.4
|
||||||
Requires: python-simplejson
|
Requires: python-simplejson
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun): update-alternatives
|
Requires(postun): update-alternatives
|
||||||
|
|
||||||
%if 0%{?suse_version} > 1110
|
%if 0%{?suse_version} > 1110
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -83,17 +79,12 @@ The expression: foo.*.name will return ["one", "two"].
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
#pushd build/scripts-%{$python_bin_suffix}
|
|
||||||
#mv jp.py jp-%{$python_bin_suffix}
|
|
||||||
#popd
|
|
||||||
#pushd build/scripts-%{py_ver}
|
|
||||||
#mv jp.py jp-%{py_ver}
|
|
||||||
#popd
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%python_install
|
||||||
mv %{buildroot}%{_bindir}/jp.py %{buildroot}%{_bindir}/jp
|
mv %{buildroot}%{_bindir}/jp.py %{buildroot}%{_bindir}/jp
|
||||||
%python_clone -a %{buildroot}%{_bindir}/jp
|
%python_clone -a %{buildroot}%{_bindir}/jp
|
||||||
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%python_expand nosetests-%{$python_bin_suffix} tests
|
%python_expand nosetests-%{$python_bin_suffix} tests
|
||||||
@ -105,8 +96,8 @@ mv %{buildroot}%{_bindir}/jp.py %{buildroot}%{_bindir}/jp
|
|||||||
%python_uninstall_alternative jp
|
%python_uninstall_alternative jp
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%defattr(-,root,root,-)
|
%license LICENSE.txt
|
||||||
%doc LICENSE.txt README.rst
|
%doc README.rst
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
%python_alternative %{_bindir}/jp
|
%python_alternative %{_bindir}/jp
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user