Hello community,
here is the log from the commit of package python-openapi-spec-validator for
openSUSE:Leap:15.2 checked in at 2020-04-30 18:52:11
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-openapi-spec-validator (Old)
and /work/SRC/openSUSE:Leap:15.2/.python-openapi-spec-validator.new.2738
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-openapi-spec-validator"
Thu Apr 30 18:52:11 2020 rev:5 rq:796895 version:0.2.8
Changes:
--------
---
/work/SRC/openSUSE:Leap:15.2/python-openapi-spec-validator/python-openapi-spec-validator.changes
2020-03-09 18:09:37.141046367 +0100
+++
/work/SRC/openSUSE:Leap:15.2/.python-openapi-spec-validator.new.2738/python-openapi-spec-validator.changes
2020-04-30 18:52:12.616696038 +0200
@@ -1,0 +2,5 @@
+Thu Apr 23 10:32:07 UTC 2020 - Tomáš Chvátal <[email protected]>
+
+- Fix build without python2
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-openapi-spec-validator.spec ++++++
--- /var/tmp/diff_new_pack.8v8gwD/_old 2020-04-30 18:52:12.928696697 +0200
+++ /var/tmp/diff_new_pack.8v8gwD/_new 2020-04-30 18:52:12.932696706 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-openapi-spec-validator
#
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,12 +17,12 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%bcond_without python2
Name: python-openapi-spec-validator
Version: 0.2.8
Release: 0
Summary: Python module for validating OpenAPI Specs against Swagger and
OAS3
License: Apache-2.0
-Group: Development/Languages/Python
URL: https://github.com/p1c2u/openapi-spec-validator
Source:
https://github.com/p1c2u/openapi-spec-validator/archive/%{version}.tar.gz
Patch0: openapi-spec-validator-skip-urls.patch
@@ -33,7 +33,6 @@
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
BuildRequires: fdupes
-BuildRequires: python-pathlib2
BuildRequires: python-rpm-macros
Requires: python-PyYAML >= 5.1
Requires: python-jsonschema
@@ -42,6 +41,9 @@
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
+%if %{with python2}
+BuildRequires: python-pathlib2
+%endif
%ifpython2
Requires: python-pathlib2
%endif