diff --git a/more-features-exposed.patch b/more-features-exposed.patch new file mode 100644 index 0000000..67fb162 --- /dev/null +++ b/more-features-exposed.patch @@ -0,0 +1,18 @@ +Index: pyparted-3.12.0/tests/test__ped_disktype.py +=================================================================== +--- pyparted-3.12.0.orig/tests/test__ped_disktype.py ++++ pyparted-3.12.0/tests/test__ped_disktype.py +@@ -75,11 +75,11 @@ class DiskTypeCheckFeatureTestCase(Requi + + class DiskTypeStrTestCase(RequiresDiskTypes): + def runTest(self): +- self.assertEqual(str(self.disktype['msdos']), '_ped.DiskType instance --\n name: msdos features: 1') ++ self.assertEqual(str(self.disktype['msdos']), '_ped.DiskType instance --\n name: msdos features: 9') + self.assertEqual(str(self.disktype['aix']), '_ped.DiskType instance --\n name: aix features: 0') + self.assertEqual(str(self.disktype['sun']), '_ped.DiskType instance --\n name: sun features: 0') + self.assertEqual(str(self.disktype['amiga']), '_ped.DiskType instance --\n name: amiga features: 2') +- self.assertEqual(str(self.disktype['gpt']), '_ped.DiskType instance --\n name: gpt features: 2') ++ self.assertEqual(str(self.disktype['gpt']), '_ped.DiskType instance --\n name: gpt features: 18') + self.assertEqual(str(self.disktype['mac']), '_ped.DiskType instance --\n name: mac features: 6') + self.assertEqual(str(self.disktype['bsd']), '_ped.DiskType instance --\n name: bsd features: 0') + self.assertEqual(str(self.disktype['pc98']), '_ped.DiskType instance --\n name: pc98 features: 2') diff --git a/pyparted-3.11.7.tar.gz b/pyparted-3.11.7.tar.gz deleted file mode 100644 index 2ca46e5..0000000 --- a/pyparted-3.11.7.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0df225691b19ef8097e3d990e99323a1c5a6ba1579b508ec479575222e7ba3d3 -size 105671 diff --git a/pyparted-3.12.0.tar.gz b/pyparted-3.12.0.tar.gz new file mode 100644 index 0000000..ba7439e --- /dev/null +++ b/pyparted-3.12.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b06b1624ebd1200de24672ee5b0f85b8fa547a437b24780930e2790d42bef343 +size 106440 diff --git a/python-parted.changes b/python-parted.changes index 1376985..424243a 100644 --- a/python-parted.changes +++ b/python-parted.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Mon May 30 09:50:41 UTC 2022 - Steve Kowalik + +- Update to 3.12.0: + * Adjust how PED_PARTITION types are added to _ped + * Add support for PARTITION_LINUX_HOME + * Add units, devices, and partitions convenience dicts + * Update version number and required libparted version + * Correct PARTITION_* constant initialization + * setup.py: port to setuptools +- Add patch more-features-exposed.patch: + * msdos and GPT seem to expose more features, include them when checking. + ------------------------------------------------------------------- Tue Jan 11 10:09:22 UTC 2022 - Dirk Müller diff --git a/python-parted.spec b/python-parted.spec index 17999fe..ff46266 100644 --- a/python-parted.spec +++ b/python-parted.spec @@ -19,18 +19,19 @@ %define srcname pyparted %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-parted -Version: 3.11.7 +Version: 3.12.0 Release: 0 Summary: Python module for GNU parted License: GPL-2.0-or-later -Group: Development/Languages/Python URL: https://github.com/dcantrell/pyparted/ Source0: https://github.com/dcantrell/pyparted/archive/v%{version}.tar.gz#/%{srcname}-%{version}.tar.gz # catch exception for unknown 'disk flag', kkaempf@suse.de Patch0: pyparted-3.10.patch Patch3: python-parted-parted-binary.patch Patch4: python-parted-featurestest.patch +Patch5: more-features-exposed.patch BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} BuildRequires: %{python_module six} # tests requires BuildRequires: e2fsprogs @@ -47,8 +48,7 @@ Python module for the parted library. It is used for manipulating partition tables. %prep -%setup -q -n %{srcname}-%{version} -%autopatch -p1 +%autosetup -p1 -n %{srcname}-%{version} %build %python_build