14
0

- Convert to pip-based build and libalternatives

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pykwalify?expand=0&rev=13
This commit is contained in:
2025-06-10 08:06:51 +00:00
committed by Git OBS Bridge
parent 56e83f6197
commit 0b58fd14b8
2 changed files with 17 additions and 12 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Jun 10 08:03:27 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build and libalternatives
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Mar 21 07:55:17 UTC 2024 - Max Lin <mlin@suse.com> Thu Mar 21 07:55:17 UTC 2024 - Max Lin <mlin@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-pykwalify # spec file for package python-pykwalify
# #
# Copyright (c) 2021 SUSE LLC # Copyright (c) 2025 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,7 +16,7 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %bcond_without libalternatives
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
Name: python-pykwalify Name: python-pykwalify
Version: 1.8.0 Version: 1.8.0
@@ -26,15 +26,17 @@ License: MIT
Group: Development/Languages/Python Group: Development/Languages/Python
URL: https://github.com/grokzen/pykwalify URL: https://github.com/grokzen/pykwalify
Source: https://files.pythonhosted.org/packages/source/p/pykwalify/pykwalify-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/p/pykwalify/pykwalify-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: alts
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: alts
Requires: python-PyYAML >= 3.11 Requires: python-PyYAML >= 3.11
Requires: python-docopt >= 0.6.2 Requires: python-docopt >= 0.6.2
Requires: python-python-dateutil >= 2.4.2 Requires: python-python-dateutil >= 2.4.2
Requires: python-ruamel.yaml >= 0.16.0 Requires: python-ruamel.yaml >= 0.16.0
Requires(post): update-alternatives
Requires(postun):update-alternatives
Suggests: python-ruamel.yaml >= 0.11.0 Suggests: python-ruamel.yaml >= 0.11.0
BuildArch: noarch BuildArch: noarch
# SECTION test requirements # SECTION test requirements
@@ -58,26 +60,24 @@ The schema this library is base and extended from: http://www.kuwata-lab.com/kwa
%setup -q -n pykwalify-%{version} %setup -q -n pykwalify-%{version}
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_clone -a %{buildroot}%{_bindir}/pykwalify %python_clone -a %{buildroot}%{_bindir}/pykwalify
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
%pyunittest discover -v %pyunittest discover -v
%post %pre
%python_install_alternative pykwalify %python_libalternatives_reset_alternative pykwalify
%postun
%python_uninstall_alternative pykwalify
%files %{python_files} %files %{python_files}
%doc README.md %doc README.md
%license LICENSE %license LICENSE
%python_alternative %{_bindir}/pykwalify %python_alternative %{_bindir}/pykwalify
%{python_sitelib}/* %{python_sitelib}/pykwalify
%{python_sitelib}/pykwalify-%{version}*-info
%changelog %changelog