Hello community,
here is the log from the commit of package python-jsonpointer for
openSUSE:Factory checked in at 2017-08-14 12:36:48
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-jsonpointer (Old)
and /work/SRC/openSUSE:Factory/.python-jsonpointer.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-jsonpointer"
Mon Aug 14 12:36:48 2017 rev:11 rq:515122 version:1.10
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-jsonpointer/python-jsonpointer.changes
2016-12-08 00:29:59.000000000 +0100
+++
/work/SRC/openSUSE:Factory/.python-jsonpointer.new/python-jsonpointer.changes
2017-08-14 12:36:49.342942945 +0200
@@ -1,0 +2,5 @@
+Tue Aug 8 06:32:28 UTC 2017 - [email protected]
+
+- convert to singlespec
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-jsonpointer.spec ++++++
--- /var/tmp/diff_new_pack.tsvJk9/_old 2017-08-14 12:36:50.498780638 +0200
+++ /var/tmp/diff_new_pack.tsvJk9/_new 2017-08-14 12:36:50.518777830 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-jsonpointer
#
-# 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-jsonpointer
Version: 1.10
Release: 0
@@ -24,16 +25,15 @@
Group: Development/Languages/Python
Url: https://github.com/stefankoegl/python-json-pointer
Source:
https://pypi.io/packages/source/j/jsonpointer/jsonpointer-%{version}.tar.gz
-BuildRequires: python-devel
-BuildRequires: python-setuptools
+BuildRequires: %{python_module devel}
+BuildRequires: %{python_module setuptools}
+BuildRequires: python-rpm-macros
Requires(post): update-alternatives
Requires(preun): 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
Identify specific nodes in a JSON document (according to draft 08)
@@ -42,30 +42,21 @@
%setup -q -n jsonpointer-%{version}
%build
-python setup.py build
+%python_build
%install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
-
-# Prepare for update-alternatives usage
-mkdir -p %{buildroot}%{_sysconfdir}/alternatives
-mv %{buildroot}%{_bindir}/jsonpointer
%{buildroot}%{_bindir}/jsonpointer-%{py_ver}
-ln -s -f %{_sysconfdir}/alternatives/jsonpointer
%{buildroot}%{_bindir}/jsonpointer
+%python_install
+%python_clone -a %{buildroot}%{_bindir}/jsonpointer
%post
-%_sbindir/update-alternatives \
- --install %{_bindir}/jsonpointer jsonpointer
%{_bindir}/jsonpointer-%{py_ver} 20
+%python_install_alternative jsonpointer
%preun
-if [ $1 -eq 0 ] ; then
- %_sbindir/update-alternatives --remove jsonpointer
%{_bindir}/jsonpointer-%{py_ver}
-fi
+%python_uninstall_alternative jsonpointer
-%files
+%files %{python_files}
%defattr(-,root,root,-)
-%{_bindir}/jsonpointer
-%{_bindir}/jsonpointer-%{py_ver}
-%ghost %{_sysconfdir}/alternatives/jsonpointer
+%python_alternative %{_bindir}/jsonpointer
%{python_sitelib}/*
%changelog