commit python-canonicaljson for openSUSE:Factory
![](https://seccdn.libravatar.org/avatar/e2145bc5cf53dda95c308a3c75e8fef3.jpg?s=120&d=mm&r=g)
Hello community, here is the log from the commit of package python-canonicaljson for openSUSE:Factory checked in at 2018-04-24 15:32:27 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-canonicaljson (Old) and /work/SRC/openSUSE:Factory/.python-canonicaljson.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-canonicaljson" Tue Apr 24 15:32:27 2018 rev:3 rq:599793 version:1.1.3 Changes: -------- --- /work/SRC/openSUSE:Factory/python-canonicaljson/python-canonicaljson.changes 2018-04-22 14:40:35.990882999 +0200 +++ /work/SRC/openSUSE:Factory/.python-canonicaljson.new/python-canonicaljson.changes 2018-04-24 15:32:33.551460011 +0200 @@ -1,0 +2,10 @@ +Sun Apr 22 20:17:08 UTC 2018 - okurz@suse.com + +- Add missing runtime requirement 'python-six' + +------------------------------------------------------------------- +Sun Apr 22 19:53:27 UTC 2018 - okurz@suse.com + +- Add package self-test based on multibuild + +------------------------------------------------------------------- New: ---- _multibuild ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-canonicaljson.spec ++++++ --- /var/tmp/diff_new_pack.0Ufxr1/_old 2018-04-24 15:32:35.087404441 +0200 +++ /var/tmp/diff_new_pack.0Ufxr1/_new 2018-04-24 15:32:35.091404296 +0200 @@ -1,5 +1,5 @@ # -# spec file for package python-canonicaljson +# spec file for package python # # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # @@ -16,29 +16,48 @@ # +# Define just "test" as a package in _multibuild file to distinguish test +# instructions here +%if "@BUILD_FLAVOR@" == "" +%define _test 0 +%define name_ext %nil +%else +%define _test 1 +%define name_ext -test +%endif + %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define github_user matrix-org %define short_name canonicaljson -Name: python-%{short_name} +%define pkg_name python-%{short_name} +Name: %{pkg_name}%{?name_ext} Version: 1.1.3 Release: 0 Summary: Canonical JSON License: Apache-2.0 Group: Development/Languages/Python -Url: https://github.com/%{github_user}/%{name} -Source: https://github.com/%{github_user}/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz +Url: https://github.com/%{github_user}/%{pkg_name} +Source: https://github.com/%{github_user}/%{pkg_name}/archive/v%{version}/%{pkg_name}-%{version}.tar.gz +BuildRequires: python-rpm-macros +%if 0%{?_test} +BuildRequires: python-%{short_name} +%else BuildRequires: %{python_module base} BuildRequires: %{python_module frozendict} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module simplejson} BuildRequires: fdupes -BuildRequires: python-rpm-macros -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildArch: noarch Requires: python-frozendict Requires: python-simplejson +Requires: python-six +%endif +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildArch: noarch +%if 0%{?_test} +%else %python_subpackages +%endif %description %{short_name} @@ -55,12 +74,26 @@ * Can encode frozendict immutable dictionaries. %prep -%setup -q -n %{name}-%{version} +%if 0%{?_test} +# workaround to prevent post/install failing assuming this file for whatever +# reason +touch %{_sourcedir}/%{short_name} +%else +%setup -q -n %{pkg_name}-%{version} +%endif %build +%if 0%{?_test} +python -c "import %{short_name}" +%else %python_build +%endif %install +%if 0%{?_test} +# disable debug packages in package test to prevent error about missing files +%define debug_package %{nil} +%else %python_install %fdupes %{buildroot}%{_prefix} @@ -69,4 +102,6 @@ %doc README.rst LICENSE %{python_sitelib}/* +%endif + %changelog ++++++ _multibuild ++++++ <multibuild> <package>test</package> </multibuild>
participants (1)
-
root@hilbert.suse.de