Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37856300
en ru br
ALT Linux repos
S:3.13.0-alt1

Group :: Development/Python3
RPM: python3-module-parted

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define _upstream pyparted
%define oname parted

Name: python3-module-%oname
Version: 3.13.0
Release: alt1

Summary: Python bindings for libparted

Group: Development/Python3
License: GPL-2.0-or-later
URL: https://pypi.org/project/pyparted
VCS: https://github.com/dcantrell/pyparted

Source: %name-%version.tar

Provides: %_upstream

BuildRequires: libparted-devel
BuildRequires(pre): rpm-build-python3

%description
pyparted is a set of native Python bindings for libparted.  libparted is the
library portion of the GNU parted project.  With pyparted, you can write
applications that interact with disk partition tables and filesystems.

The Python bindings are implemented in two layers.  Since libparted itself
is written in C without any real implementation of objects, a simple 1:1
mapping of externally accessible libparted functions was written.  This
mapping is provided in the _ped Python module.  You can use that module if
you want to, but it's really just meant for the larger parted module.

%prep
%setup

%build
%add_optflags -fno-strict-aliasing
%python3_build

%install
%python3_install

%files
%doc AUTHORS NEWS README.md TODO
%python3_sitelibdir/parted
%python3_sitelibdir/*.so
%python3_sitelibdir/*.egg-info

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin