14
0
forked from pool/python-moban

- Convert to pip-based build

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-moban?expand=0&rev=22
This commit is contained in:
2025-06-02 12:30:36 +00:00
committed by Git OBS Bridge
parent ceabc73bab
commit 0071a83f32
2 changed files with 15 additions and 11 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jun 2 12:30:05 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
------------------------------------------------------------------- -------------------------------------------------------------------
Fri May 20 06:37:52 UTC 2022 - Steve Kowalik <steven.kowalik@suse.com> Fri May 20 06:37:52 UTC 2022 - Steve Kowalik <steven.kowalik@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file # spec file for package python-moban
# #
# Copyright (c) 2023 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,6 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
# Tests have dependency loop with moban-ansible # Tests have dependency loop with moban-ansible
%global flavor @BUILD_FLAVOR@%{nil} %global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test" %if "%{flavor}" == "test"
@@ -27,9 +26,6 @@
%define pkg_suffix %{nil} %define pkg_suffix %{nil}
%bcond_with test %bcond_with test
%endif %endif
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-moban%{pkg_suffix} Name: python-moban%{pkg_suffix}
Version: 0.8.2 Version: 0.8.2
Release: 0 Release: 0
@@ -41,7 +37,9 @@ Source: https://files.pythonhosted.org/packages/source/m/moban/moban-%{v
Patch0: remove_nose.patch Patch0: remove_nose.patch
Patch1: stop-using-jinja-extensions.patch Patch1: stop-using-jinja-extensions.patch
Patch2: remove-mock.patch Patch2: remove-mock.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: git-core BuildRequires: git-core
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
@@ -53,8 +51,8 @@ Requires: python-fs >= 2.4.11
Requires: python-jinja2-fsloader >= 0.2.0 Requires: python-jinja2-fsloader >= 0.2.0
Requires: python-lml >= 0.0.9 Requires: python-lml >= 0.0.9
Requires: python-ruamel.yaml >= 0.15.98 Requires: python-ruamel.yaml >= 0.15.98
Requires(post): update-alternatives Requires(post): alts
Requires(postun):update-alternatives Requires(postun): alts
Suggests: python-ansible Suggests: python-ansible
Suggests: python-gitfs2 Suggests: python-gitfs2
Suggests: python-pypifs Suggests: python-pypifs
@@ -88,12 +86,12 @@ consistent across the documentations of individual libraries.
%if !%{with test} %if !%{with test}
%build %build
%python_build %pyproject_wheel
%endif %endif
%if !%{with test} %if !%{with test}
%install %install
%python_install %pyproject_install
%python_clone -a %{buildroot}%{_bindir}/moban %python_clone -a %{buildroot}%{_bindir}/moban
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif %endif
@@ -136,7 +134,8 @@ export SKIP_TESTS
%if !%{with test} %if !%{with test}
%files %{python_files} %files %{python_files}
%{python_sitelib}/* %{python_sitelib}/moban
%{python_sitelib}/moban-%{version}*-info
%license LICENSE %license LICENSE
%doc README.rst CHANGELOG.rst %doc README.rst CHANGELOG.rst
%python_alternative %{_bindir}/moban %python_alternative %{_bindir}/moban