|
|
@ -1,41 +1,9 @@
|
|
|
|
%if 0%{?rhel}
|
|
|
|
|
|
|
|
%if %{rhel} <= 7
|
|
|
|
|
|
|
|
# disable python3 by default
|
|
|
|
|
|
|
|
%bcond_with python3
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
%bcond_without python3
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{rhel} > 7
|
|
|
|
|
|
|
|
# disable python2 by default
|
|
|
|
|
|
|
|
%bcond_with python2
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
%bcond_without python2
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora}
|
|
|
|
|
|
|
|
%if %{fedora} < 23
|
|
|
|
|
|
|
|
# disable python3 by default
|
|
|
|
|
|
|
|
%bcond_with python3
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
%bcond_without python3
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{fedora} > 31
|
|
|
|
|
|
|
|
# disable python2 by default
|
|
|
|
|
|
|
|
%bcond_with python2
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
%bcond_without python2
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Summary: Python module for GNU parted
|
|
|
|
Summary: Python module for GNU parted
|
|
|
|
Name: pyparted
|
|
|
|
Name: pyparted
|
|
|
|
Epoch: 1
|
|
|
|
Epoch: 1
|
|
|
|
Version: 3.12.0
|
|
|
|
Version: 3.13.0
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Release: 6%{?dist}
|
|
|
|
License: GPLv2+
|
|
|
|
License: GPL-2.0-or-later
|
|
|
|
URL: https://github.com/dcantrell/pyparted
|
|
|
|
URL: https://github.com/dcantrell/pyparted
|
|
|
|
|
|
|
|
|
|
|
|
Source0: https://github.com/dcantrell/pyparted/releases/download/v%{version}/%{name}-%{version}.tar.gz
|
|
|
|
Source0: https://github.com/dcantrell/pyparted/releases/download/v%{version}/%{name}-%{version}.tar.gz
|
|
|
@ -43,131 +11,112 @@ Source1: https://github.com/dcantrell/pyparted/releases/download/v%{version}/%{n
|
|
|
|
Source2: keyring.gpg
|
|
|
|
Source2: keyring.gpg
|
|
|
|
Source3: trustdb.gpg
|
|
|
|
Source3: trustdb.gpg
|
|
|
|
|
|
|
|
|
|
|
|
# Support new disk type features from parted 3.5:
|
|
|
|
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=2098792
|
|
|
|
|
|
|
|
# https://github.com/dcantrell/pyparted/issues/91
|
|
|
|
|
|
|
|
Patch0: pyparted-3.12.0-types.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: parted-devel >= 3.5
|
|
|
|
BuildRequires: parted-devel >= 3.4
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: e2fsprogs
|
|
|
|
BuildRequires: e2fsprogs
|
|
|
|
BuildRequires: gnupg2
|
|
|
|
BuildRequires: gnupg2
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-six
|
|
|
|
BuildRequires: python3-six
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python2}
|
|
|
|
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
|
|
|
|
BuildRequires: python2-six
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%global _description\
|
|
|
|
%description
|
|
|
|
Python module for the parted library. It is used for manipulating\
|
|
|
|
Python module for the parted library. It is used for manipulating
|
|
|
|
partition tables.
|
|
|
|
partition tables.
|
|
|
|
|
|
|
|
|
|
|
|
%description %_description
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python2}
|
|
|
|
|
|
|
|
%package -n python2-pyparted
|
|
|
|
|
|
|
|
Summary: %summary
|
|
|
|
|
|
|
|
%{?python_provide:%python_provide python2-pyparted}
|
|
|
|
|
|
|
|
# Remove before F30
|
|
|
|
|
|
|
|
Provides: pyparted = %{epoch}:%{version}-%{release}
|
|
|
|
|
|
|
|
Provides: pyparted%{?_isa} = %{epoch}:%{version}-%{release}
|
|
|
|
|
|
|
|
Obsoletes: pyparted < %{epoch}:%{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description -n python2-pyparted %_description
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
|
|
|
%package -n python3-pyparted
|
|
|
|
%package -n python3-pyparted
|
|
|
|
Summary: Python 3 module for GNU parted
|
|
|
|
Summary: Python 3 module for GNU parted
|
|
|
|
|
|
|
|
|
|
|
|
%description -n python3-pyparted
|
|
|
|
%description -n python3-pyparted
|
|
|
|
Python module for the parted library. It is used for manipulating
|
|
|
|
Python module for the parted library. It is used for manipulating
|
|
|
|
partition tables. This package provides Python 3 bindings for parted.
|
|
|
|
partition tables. This package provides Python 3 bindings for parted.
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
# Verify source archive signature
|
|
|
|
# Verify source archive signature
|
|
|
|
gpg --no-default-keyring --keyring %{SOURCE2} --trustdb-name %{SOURCE3} --verify %{SOURCE1} %{SOURCE0} || exit 1
|
|
|
|
gpg --no-default-keyring --keyring %{SOURCE2} --trustdb-name %{SOURCE3} --verify %{SOURCE1} %{SOURCE0} || exit 1
|
|
|
|
|
|
|
|
|
|
|
|
%setup -q
|
|
|
|
%autosetup
|
|
|
|
%patch0 -p1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
|
|
|
everything=$(ls)
|
|
|
|
|
|
|
|
mkdir -p py3dir
|
|
|
|
|
|
|
|
cp -a $everything py3dir
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%if %{with python2}
|
|
|
|
%make_build CFLAGS="%{optflags} -fcommon"
|
|
|
|
PYTHON=python2 %make_build CFLAGS="%{optflags} -fcommon"
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
|
|
|
pushd py3dir
|
|
|
|
|
|
|
|
PYTHON=python3 %make_build CFLAGS="%{optflags} -fcommon"
|
|
|
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
%if %{with python2}
|
|
|
|
make test
|
|
|
|
PYTHON=python2 make test
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
|
|
|
pushd py3dir
|
|
|
|
|
|
|
|
PYTHON=python3 make test
|
|
|
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%if %{with python2}
|
|
|
|
%make_install
|
|
|
|
PYTHON=python2 %make_install
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
|
|
|
pushd py3dir
|
|
|
|
|
|
|
|
PYTHON=python3 %make_install
|
|
|
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python2}
|
|
|
|
|
|
|
|
%files -n python2-pyparted
|
|
|
|
|
|
|
|
%doc AUTHORS COPYING NEWS README TODO
|
|
|
|
|
|
|
|
%{python2_sitearch}/_ped.so
|
|
|
|
|
|
|
|
%{python2_sitearch}/parted
|
|
|
|
|
|
|
|
%{python2_sitearch}/%{name}-%{version}-*.egg-info
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
|
|
|
%files -n python3-pyparted
|
|
|
|
%files -n python3-pyparted
|
|
|
|
%doc AUTHORS COPYING NEWS README TODO
|
|
|
|
%doc AUTHORS HACKING NEWS README.md RELEASE TODO
|
|
|
|
|
|
|
|
%license LICENSE
|
|
|
|
%{python3_sitearch}/_ped.*.so
|
|
|
|
%{python3_sitearch}/_ped.*.so
|
|
|
|
%{python3_sitearch}/parted
|
|
|
|
%{python3_sitearch}/parted
|
|
|
|
%{python3_sitearch}/%{name}-%{version}-*.egg-info
|
|
|
|
%{python3_sitearch}/%{name}-%{version}-*.egg-info
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Tue Jun 21 2022 David Cantrell <dcantrell@redhat.com> - 1:3.12.0-1
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1:3.13.0-6
|
|
|
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.13.0-5
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.13.0-4
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.13.0-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jun 22 2023 Python Maint <python-maint@redhat.com> - 1:3.13.0-2
|
|
|
|
|
|
|
|
- Rebuilt for Python 3.12
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jun 21 2023 David Cantrell <dcantrell@redhat.com> - 1:3.13.0-1
|
|
|
|
|
|
|
|
- Upgrade to pyparted-3.13.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jun 15 2023 Python Maint <python-maint@redhat.com> - 1:3.12.0-11
|
|
|
|
|
|
|
|
- Rebuilt for Python 3.12
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jun 14 2023 David Cantrell <dcantrell@redhat.com> - 1:3.12.0-10
|
|
|
|
|
|
|
|
- Use non-deprecated syntax for the %%patch macros
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 1:3.12.0-9
|
|
|
|
|
|
|
|
- Rebuilt for Python 3.12
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Mar 02 2023 David Cantrell <dcantrell@redhat.com> - 1:3.12.0-8
|
|
|
|
|
|
|
|
- Fix FTBFS with _ped.disktype test case for gpt (#2171656)
|
|
|
|
|
|
|
|
- Update License tag to SPDX expression
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.12.0-7
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.12.0-6
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jun 21 2022 David Cantrell <dcantrell@redhat.com> - 1:3.12.0-5
|
|
|
|
- Patch pyparted to handle PED_DISK_TYPE_PARTITION_TYPE_ID for the
|
|
|
|
- Patch pyparted to handle PED_DISK_TYPE_PARTITION_TYPE_ID for the
|
|
|
|
msdos disk type and PED_DISK_TYPE_PARTITION_TYPE_UUID for the gpt
|
|
|
|
msdos disk type and PED_DISK_TYPE_PARTITION_TYPE_UUID for the gpt
|
|
|
|
label
|
|
|
|
label (#2098792)
|
|
|
|
Resolves: rhbz#2103243
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jun 20 2022 Adam Williamson <awilliam@redhat.com> - 1:3.12.0-4
|
|
|
|
|
|
|
|
- Backport PR #92 to fix tests with parted 3.5 (#2098792)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1:3.12.0-3
|
|
|
|
|
|
|
|
- Rebuilt for Python 3.11
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Mar 07 2022 David Cantrell <dcantrell@redhat.com> - 3.12.0-2
|
|
|
|
|
|
|
|
- BR python3-setuptools
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Mar 07 2022 David Cantrell <dcantrell@redhat.com> - 3.12.0-1
|
|
|
|
|
|
|
|
- Upgrade to pyparted-3.12.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.11.7-5
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 1:3.11.7-4
|
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.11.7-4
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1:3.11.7-3
|
|
|
|
* Thu Jun 03 2021 Python Maint <python-maint@redhat.com> - 1:3.11.7-3
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
- Rebuilt for Python 3.10
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.11.7-2
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.11.7-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|