forked from pool/python-parted
		
	Accepting request 1282199 from devel:languages:python
- Convert to pip-based build OBS-URL: https://build.opensuse.org/request/show/1282199 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-parted?expand=0&rev=9
This commit is contained in:
		@@ -1,3 +1,8 @@
 | 
			
		||||
-------------------------------------------------------------------
 | 
			
		||||
Tue Jun  3 08:57:34 UTC 2025 - Markéta Machová <mmachova@suse.com>
 | 
			
		||||
 | 
			
		||||
- Convert to pip-based build
 | 
			
		||||
 | 
			
		||||
-------------------------------------------------------------------
 | 
			
		||||
Sat Mar 16 17:37:54 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,7 +1,7 @@
 | 
			
		||||
#
 | 
			
		||||
# spec file for package python-parted
 | 
			
		||||
#
 | 
			
		||||
# Copyright (c) 2024 SUSE LLC
 | 
			
		||||
# Copyright (c) 2025 SUSE LLC
 | 
			
		||||
#
 | 
			
		||||
# All modifications and additions to the file contributed by third parties
 | 
			
		||||
# remain the property of their copyright owners, unless otherwise agreed
 | 
			
		||||
@@ -28,16 +28,18 @@ Source0:        https://github.com/dcantrell/pyparted/archive/v%{version}.tar.gz
 | 
			
		||||
Patch0:         pyparted-3.10.patch
 | 
			
		||||
Patch1:         python-parted-parted-binary.patch
 | 
			
		||||
BuildRequires:  %{python_module devel}
 | 
			
		||||
BuildRequires:  %{python_module pip}
 | 
			
		||||
BuildRequires:  %{python_module setuptools}
 | 
			
		||||
BuildRequires:  %{python_module six}
 | 
			
		||||
BuildRequires:  %{python_module wheel}
 | 
			
		||||
# tests requires
 | 
			
		||||
BuildRequires:  e2fsprogs
 | 
			
		||||
BuildRequires:  parted
 | 
			
		||||
Requires:       parted
 | 
			
		||||
BuildRequires:  fdupes
 | 
			
		||||
BuildRequires:  parted
 | 
			
		||||
BuildRequires:  parted-devel
 | 
			
		||||
BuildRequires:  pkgconfig
 | 
			
		||||
BuildRequires:  python-rpm-macros
 | 
			
		||||
Requires:       parted
 | 
			
		||||
%python_subpackages
 | 
			
		||||
 | 
			
		||||
%description
 | 
			
		||||
@@ -48,14 +50,14 @@ partition tables.
 | 
			
		||||
%autosetup -p1 -n %{srcname}-%{version}
 | 
			
		||||
 | 
			
		||||
%build
 | 
			
		||||
%python_build
 | 
			
		||||
%pyproject_wheel
 | 
			
		||||
 | 
			
		||||
%install
 | 
			
		||||
%python_install
 | 
			
		||||
%pyproject_install
 | 
			
		||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
 | 
			
		||||
 | 
			
		||||
%check
 | 
			
		||||
%python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python -m unittest discover -v
 | 
			
		||||
%pyunittest_arch -v
 | 
			
		||||
 | 
			
		||||
%files %{python_files}
 | 
			
		||||
%license LICENSE
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user