forked from pool/python-moban-ansible
		
	- Convert to pip-based build
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-moban-ansible?expand=0&rev=5
This commit is contained in:
		@@ -1,3 +1,8 @@
 | 
				
			|||||||
 | 
					-------------------------------------------------------------------
 | 
				
			||||||
 | 
					Mon Jun  2 12:32:32 UTC 2025 - Markéta Machová <mmachova@suse.com>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- Convert to pip-based build
 | 
				
			||||||
 | 
					
 | 
				
			||||||
-------------------------------------------------------------------
 | 
					-------------------------------------------------------------------
 | 
				
			||||||
Fri Aug 19 06:53:34 UTC 2022 - Steve Kowalik <steven.kowalik@suse.com>
 | 
					Fri Aug 19 06:53:34 UTC 2022 - Steve Kowalik <steven.kowalik@suse.com>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,7 +1,7 @@
 | 
				
			|||||||
#
 | 
					#
 | 
				
			||||||
# spec file
 | 
					# spec file for package python-moban-ansible
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
# Copyright (c) 2022 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
 | 
				
			||||||
@@ -26,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-ansible%{pkg_suffix}
 | 
					Name:           python-moban-ansible%{pkg_suffix}
 | 
				
			||||||
Version:        0.0.2
 | 
					Version:        0.0.2
 | 
				
			||||||
Release:        0
 | 
					Release:        0
 | 
				
			||||||
@@ -39,7 +36,9 @@ Source:         https://files.pythonhosted.org/packages/source/m/moban-ansible/m
 | 
				
			|||||||
# https://github.com/moremoban/moban-ansible/pull/2
 | 
					# https://github.com/moremoban/moban-ansible/pull/2
 | 
				
			||||||
Patch0:         python-moban-ansible-remove-nose.patch
 | 
					Patch0:         python-moban-ansible-remove-nose.patch
 | 
				
			||||||
Patch1:         remove-mock.patch
 | 
					Patch1:         remove-mock.patch
 | 
				
			||||||
 | 
					BuildRequires:  %{python_module pip}
 | 
				
			||||||
BuildRequires:  %{python_module setuptools}
 | 
					BuildRequires:  %{python_module setuptools}
 | 
				
			||||||
 | 
					BuildRequires:  %{python_module wheel}
 | 
				
			||||||
BuildRequires:  fdupes
 | 
					BuildRequires:  fdupes
 | 
				
			||||||
BuildRequires:  python-rpm-macros
 | 
					BuildRequires:  python-rpm-macros
 | 
				
			||||||
Requires:       python-moban >= 0.8.1
 | 
					Requires:       python-moban >= 0.8.1
 | 
				
			||||||
@@ -60,12 +59,12 @@ Ansible filters, tests and utility functions for moban users
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
%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_expand %fdupes %{buildroot}%{$python_sitelib}
 | 
					%python_expand %fdupes %{buildroot}%{$python_sitelib}
 | 
				
			||||||
%endif
 | 
					%endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -78,7 +77,8 @@ Ansible filters, tests and utility functions for moban users
 | 
				
			|||||||
%files %{python_files}
 | 
					%files %{python_files}
 | 
				
			||||||
%doc CHANGELOG.rst README.rst
 | 
					%doc CHANGELOG.rst README.rst
 | 
				
			||||||
%license LICENSE
 | 
					%license LICENSE
 | 
				
			||||||
%{python_sitelib}/*
 | 
					%{python_sitelib}/moban[-_]ansible
 | 
				
			||||||
 | 
					%{python_sitelib}/moban[-_]ansible-%{version}*-info
 | 
				
			||||||
%endif
 | 
					%endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
%changelog
 | 
					%changelog
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user