2014-11-23 12:46:40 +00:00
|
|
|
#
|
2015-06-23 06:26:32 +00:00
|
|
|
# spec file for package python-parted
|
2014-11-23 12:46:40 +00:00
|
|
|
#
|
2020-06-02 12:08:32 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2014-11-23 12:46:40 +00:00
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
2020-06-02 12:08:32 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2014-11-23 12:46:40 +00:00
|
|
|
#
|
|
|
|
|
|
2015-06-23 06:26:32 +00:00
|
|
|
|
2014-11-23 12:46:40 +00:00
|
|
|
%define srcname pyparted
|
2018-05-24 15:42:35 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
|
Name: python-parted
|
2018-05-24 14:39:22 +00:00
|
|
|
Version: 3.11.1
|
2015-06-23 06:26:32 +00:00
|
|
|
Release: 0
|
2018-05-24 15:42:35 +00:00
|
|
|
Summary: Python module for GNU parted
|
|
|
|
|
License: GPL-2.0-or-later
|
|
|
|
|
Group: Development/Languages/Python
|
|
|
|
|
URL: https://github.com/dcantrell/pyparted/
|
2018-05-24 14:39:22 +00:00
|
|
|
Source0: https://github.com/dcantrell/pyparted/archive/v3.11.1.tar.gz#/%{srcname}-%{version}.tar.gz
|
2014-11-23 12:46:40 +00:00
|
|
|
# catch exception for unknown 'disk flag', kkaempf@suse.de
|
2018-05-24 15:42:35 +00:00
|
|
|
Patch0: pyparted-3.10.patch
|
|
|
|
|
# do not check for PED_PARTITION)_LAST_FLAG as it is not part of ABI
|
|
|
|
|
Patch1: no-last-flag-check.patch
|
|
|
|
|
Patch2: python-parted-unittests.patch
|
|
|
|
|
Patch3: python-parted-parted-binary.patch
|
|
|
|
|
Patch4: python-parted-featurestest.patch
|
|
|
|
|
BuildRequires: %{python_module devel}
|
|
|
|
|
BuildRequires: %{python_module six}
|
|
|
|
|
# tests requires
|
|
|
|
|
BuildRequires: e2fsprogs
|
|
|
|
|
BuildRequires: parted
|
|
|
|
|
Requires: parted
|
2017-04-04 08:11:09 +00:00
|
|
|
BuildRequires: fdupes
|
2015-06-23 06:26:32 +00:00
|
|
|
BuildRequires: parted-devel
|
|
|
|
|
BuildRequires: pkgconfig
|
2018-05-24 15:42:35 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
|
%python_subpackages
|
2014-11-23 12:46:40 +00:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Python module for the parted library. It is used for manipulating
|
|
|
|
|
partition tables.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n %{srcname}-%{version}
|
2018-05-24 15:42:35 +00:00
|
|
|
%autopatch -p1
|
2014-11-23 12:46:40 +00:00
|
|
|
|
|
|
|
|
%build
|
2020-06-02 12:08:32 +00:00
|
|
|
export CFLAGS="%{optflags} -fcommon"
|
|
|
|
|
export CXXFLAGS="%{optflags} -fcommon"
|
2018-05-24 15:42:35 +00:00
|
|
|
%python_build
|
2014-11-23 12:46:40 +00:00
|
|
|
|
|
|
|
|
%install
|
2018-05-24 15:42:35 +00:00
|
|
|
%python_install
|
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
2014-11-23 12:46:40 +00:00
|
|
|
|
2018-05-24 15:42:35 +00:00
|
|
|
%check
|
|
|
|
|
%python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python -m unittest discover -v
|
2017-04-04 08:11:09 +00:00
|
|
|
|
2018-05-24 15:42:35 +00:00
|
|
|
%files %{python_files}
|
|
|
|
|
%license COPYING
|
|
|
|
|
%doc AUTHORS NEWS README TODO
|
|
|
|
|
%{python_sitearch}/_ped*.so
|
2014-11-23 12:46:40 +00:00
|
|
|
%{python_sitearch}/parted
|
|
|
|
|
%{python_sitearch}/%{srcname}-%{version}-*.egg-info
|
|
|
|
|
|
|
|
|
|
%changelog
|