14
0
forked from pool/python-parted

- Convert to pip-based build

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-parted?expand=0&rev=21
This commit is contained in:
2025-06-03 08:57:55 +00:00
committed by Git OBS Bridge
parent d280d98c4c
commit e37ee0af4f
2 changed files with 13 additions and 6 deletions

View File

@@ -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> Sat Mar 16 17:37:54 UTC 2024 - Matej Cepl <mcepl@cepl.eu>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-parted # 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 # 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
@@ -28,16 +28,18 @@ Source0: https://github.com/dcantrell/pyparted/archive/v%{version}.tar.gz
Patch0: pyparted-3.10.patch Patch0: pyparted-3.10.patch
Patch1: python-parted-parted-binary.patch Patch1: python-parted-parted-binary.patch
BuildRequires: %{python_module devel} BuildRequires: %{python_module devel}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six} BuildRequires: %{python_module six}
BuildRequires: %{python_module wheel}
# tests requires # tests requires
BuildRequires: e2fsprogs BuildRequires: e2fsprogs
BuildRequires: parted
Requires: parted
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: parted
BuildRequires: parted-devel BuildRequires: parted-devel
BuildRequires: pkgconfig BuildRequires: pkgconfig
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: parted
%python_subpackages %python_subpackages
%description %description
@@ -48,14 +50,14 @@ partition tables.
%autosetup -p1 -n %{srcname}-%{version} %autosetup -p1 -n %{srcname}-%{version}
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitearch} %python_expand %fdupes %{buildroot}%{$python_sitearch}
%check %check
%python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python -m unittest discover -v %pyunittest_arch -v
%files %{python_files} %files %{python_files}
%license LICENSE %license LICENSE