Hello community,
here is the log from the commit of package python-jsonpath-rw for
openSUSE:Factory checked in at 2017-08-04 11:58:09
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-jsonpath-rw (Old)
and /work/SRC/openSUSE:Factory/.python-jsonpath-rw.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-jsonpath-rw"
Fri Aug 4 11:58:09 2017 rev:5 rq:508331 version:1.4.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-jsonpath-rw/python-jsonpath-rw.changes
2016-11-28 15:10:45.000000000 +0100
+++
/work/SRC/openSUSE:Factory/.python-jsonpath-rw.new/python-jsonpath-rw.changes
2017-08-04 11:58:09.817929364 +0200
@@ -1,0 +2,5 @@
+Wed Jul 5 08:35:57 UTC 2017 - [email protected]
+
+- convert to singlespec
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-jsonpath-rw.spec ++++++
--- /var/tmp/diff_new_pack.6lGLMD/_old 2017-08-04 11:58:10.769795011 +0200
+++ /var/tmp/diff_new_pack.6lGLMD/_new 2017-08-04 11:58:10.773794447 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-jsonpath-rw
#
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,6 +16,7 @@
#
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-jsonpath-rw
Version: 1.4.0
Release: 0
@@ -24,18 +25,20 @@
Group: Development/Languages/Python
Url: https://github.com/kennknowles/python-jsonpath-rw
Source:
https://pypi.python.org/packages/source/j/jsonpath-rw/jsonpath-rw-%{version}.tar.gz
-BuildRequires: python-devel
-BuildRequires: python-ply
-BuildRequires: python-setuptools
-BuildRequires: python-six
+BuildRequires: %{python_module devel}
+BuildRequires: %{python_module ply}
+BuildRequires: %{python_module setuptools}
+BuildRequires: %{python_module six}
+BuildRequires: python-rpm-macros
+Requires: python-decorator
Requires: python-ply >= 3.4
Requires: python-six
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-%if 0%{?suse_version} && 0%{?suse_version} <= 1110
-%{!?python_sitelib: %global python_sitelib %(python -c "from
distutils.sysconfig import get_python_lib; print get_python_lib()")}
-%else
BuildArch: noarch
-%endif
+
+%python_subpackages
%description
This library provides a robust and significantly extended implementation
@@ -52,15 +55,22 @@
sed -i '/^#!/ d' jsonpath_rw/bin/jsonpath.py
%build
-python setup.py build
+%python_build
%install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+%python_install
+%python_clone -a %{buildroot}%{_bindir}/jsonpath.py
+
+%post
+%python_install_alternative jsonpath.py
+
+%postun
+%python_uninstall_alternative jsonpath.py
-%files
+%files %{python_files}
%defattr(-,root,root,-)
%doc README.rst
-%{_bindir}/jsonpath.py
+%python_alternative %{_bindir}/jsonpath.py
%{python_sitelib}/*
%changelog