forked from pool/python-xmlschema
Compare commits
11 Commits
Author | SHA256 | Date | |
---|---|---|---|
dd44b3329a | |||
544135473b | |||
dda0598a9c | |||
a65e967820 | |||
42a214b61c | |||
621c17aea4 | |||
ac787e5d82 | |||
9ef378f97d | |||
7bde18bdfd | |||
2c1758bd25 | |||
83274a4ff9 |
@@ -1,8 +1,3 @@
|
|||||||
-------------------------------------------------------------------
|
|
||||||
Tue Aug 26 09:44:55 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
|
||||||
|
|
||||||
- Convert to libalternatives on SLE-16-based and newer systems
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Nov 15 08:28:45 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
Fri Nov 15 08:28:45 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-xmlschema
|
# spec file for package python-xmlschema
|
||||||
#
|
#
|
||||||
# Copyright (c) 2025 SUSE LLC and contributors
|
# Copyright (c) 2024 SUSE LLC
|
||||||
#
|
#
|
||||||
# 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
|
||||||
@@ -16,11 +16,6 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%if 0%{?suse_version} > 1500
|
|
||||||
%bcond_without libalternatives
|
|
||||||
%else
|
|
||||||
%bcond_with libalternatives
|
|
||||||
%endif
|
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-xmlschema
|
Name: python-xmlschema
|
||||||
Version: 3.4.3
|
Version: 3.4.3
|
||||||
@@ -39,14 +34,9 @@ BuildRequires: fdupes
|
|||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-elementpath >= 3.0.0
|
Requires: python-elementpath >= 3.0.0
|
||||||
Requires: python-lxml
|
Requires: python-lxml
|
||||||
BuildArch: noarch
|
|
||||||
%if %{with libalternatives}
|
|
||||||
BuildRequires: alts
|
|
||||||
Requires: alts
|
|
||||||
%else
|
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun): update-alternatives
|
Requires(postun): update-alternatives
|
||||||
%endif
|
BuildArch: noarch
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -79,11 +69,6 @@ done
|
|||||||
export LANG="en_US.UTF8"
|
export LANG="en_US.UTF8"
|
||||||
%pytest tests/
|
%pytest tests/
|
||||||
|
|
||||||
%pre
|
|
||||||
%python_libalternatives_reset_alternative xmlschema-json2xml
|
|
||||||
%python_libalternatives_reset_alternative xmlschema-validate
|
|
||||||
%python_libalternatives_reset_alternative xmlschema-xml2json
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%python_install_alternative xmlschema-json2xml
|
%python_install_alternative xmlschema-json2xml
|
||||||
%python_install_alternative xmlschema-validate
|
%python_install_alternative xmlschema-validate
|
||||||
|
Reference in New Issue
Block a user