Compare commits
	
		
			5 Commits
		
	
	
		
	
	| Author | SHA256 | Date | |
|---|---|---|---|
| 21921ef18c | |||
| e8f7c67f7a | |||
| 13b2204142 | |||
| 64c0c980e2 | |||
| 20978d0ce9 | 
| @@ -1,3 +1,8 @@ | ||||
| ------------------------------------------------------------------- | ||||
| Mon Jun  2 14:39:57 UTC 2025 - Markéta Machová <mmachova@suse.com> | ||||
|  | ||||
| - Convert to pip-based build | ||||
|  | ||||
| ------------------------------------------------------------------- | ||||
| Fri Apr 21 12:28:27 UTC 2023 - Dirk Müller <dmueller@suse.com> | ||||
|  | ||||
|   | ||||
| @@ -1,7 +1,7 @@ | ||||
| # | ||||
| # spec file for package python-netifaces | ||||
| # | ||||
| # Copyright (c) 2023 SUSE LLC | ||||
| # Copyright (c) 2025 SUSE LLC | ||||
| # Copyright (c) 2011 Novell | ||||
| # | ||||
| # All modifications and additions to the file contributed by third parties | ||||
| @@ -17,7 +17,6 @@ | ||||
| # | ||||
|  | ||||
|  | ||||
| %{?!python_module:%define python_module() python-%{**} python3-%{**}} | ||||
| %{?sle15_python_module_pythons} | ||||
| Name:           python-netifaces | ||||
| Version:        0.11.0 | ||||
| @@ -26,13 +25,13 @@ Summary:        Portable network interface information | ||||
| License:        MIT | ||||
| Group:          Development/Languages/Python | ||||
| URL:            https://github.com/al45tair/netifaces | ||||
| Source0:        https://pypi.io/packages/source/n/netifaces/netifaces-%{version}.tar.gz | ||||
| Source0:        https://files.pythonhosted.org/packages/source/n/netifaces/netifaces-%{version}.tar.gz | ||||
| Source2:        https://raw.githubusercontent.com/al45tair/netifaces/master/test.py | ||||
| BuildRequires:  %{python_module devel} | ||||
| BuildRequires:  %{python_module pip} | ||||
| BuildRequires:  %{python_module setuptools} | ||||
| BuildRequires:  %{python_module wheel} | ||||
| BuildRequires:  python-rpm-macros | ||||
| BuildRoot:      %{_tmppath}/%{name}-%{version}-build | ||||
|  | ||||
| %python_subpackages | ||||
|  | ||||
| %description | ||||
| @@ -53,10 +52,10 @@ provided by the socket options is normally less complete. | ||||
| cp %{SOURCE2} . | ||||
|  | ||||
| %build | ||||
| %python_build | ||||
| %pyproject_wheel | ||||
|  | ||||
| %install | ||||
| %python_install | ||||
| %pyproject_install | ||||
|  | ||||
| %check | ||||
| %python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python test.py | grep 'Interface lo' | ||||
| @@ -64,6 +63,7 @@ cp %{SOURCE2} . | ||||
| %files %{python_files} | ||||
| %license LICENSE | ||||
| %doc README.rst | ||||
| %{python_sitearch}/* | ||||
| %{python_sitearch}/netifaces.cpython* | ||||
| %{python_sitearch}/netifaces-%{version}*-info | ||||
|  | ||||
| %changelog | ||||
|   | ||||
		Reference in New Issue
	
	Block a user