From 775cb0e480d8ec17518a7757a2438be9280f91b5 Mon Sep 17 00:00:00 2001 From: David Cantrell Date: Mon, 7 Mar 2022 14:22:47 -0500 Subject: [PATCH 01/29] Upgrade to pyparted-3.12.0 Signed-off-by: David Cantrell --- .gitignore | 2 ++ pyparted.spec | 7 +++++-- sources | 4 ++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 7d186e8..ced5e17 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,5 @@ /pyparted-3.11.5.tar.gz.asc /pyparted-3.11.7.tar.gz /pyparted-3.11.7.tar.gz.asc +/pyparted-3.12.0.tar.gz +/pyparted-3.12.0.tar.gz.asc diff --git a/pyparted.spec b/pyparted.spec index fe7aed9..d1c0a78 100644 --- a/pyparted.spec +++ b/pyparted.spec @@ -33,8 +33,8 @@ Summary: Python module for GNU parted Name: pyparted Epoch: 1 -Version: 3.11.7 -Release: 5%{?dist} +Version: 3.12.0 +Release: 1%{?dist} License: GPLv2+ URL: https://github.com/dcantrell/pyparted @@ -149,6 +149,9 @@ popd %endif %changelog +* Mon May 07 2022 David Cantrell - 3.12.0-1 +- Upgrade to pyparted-3.12.0 + * Fri Jan 21 2022 Fedora Release Engineering - 1:3.11.7-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild diff --git a/sources b/sources index f1c1c2b..7f89792 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (pyparted-3.11.7.tar.gz) = 41018989c21aab577cd1d51f521128d072b346afb9dcdcc27490cdbc2ed4382a854e4bd16780da72a0a95bbd521f14ee0e7f02816f34656cbae734d43a4f0b83 -SHA512 (pyparted-3.11.7.tar.gz.asc) = 669770930307f57bfd8b1d11418f3fbc1415747aec5cde001efe7b132724996e42271f4df79148e616c2ba76527dfafceeeb1d3374cbd14a16bd545dd716c15c +SHA512 (pyparted-3.12.0.tar.gz) = 0179e5334be8c04287b10b47d407ad339933cd3e20514d2142fe968acf8a36c40e541ee5165e2b3699a40b133d8f1948d8d12ccf307d3a1736090fb33f28b7e7 +SHA512 (pyparted-3.12.0.tar.gz.asc) = 452d386fbc8b84fa0dc186bb75c6c12eb051c8a37575e5a3a0cf504d13c4b2a0134d7e486928f9af7d142d25802bda05c97fd95ff80721ae6f6c0abedb8b1614 From 791a789e24484dce36dadc9ade1084e4fc8a55eb Mon Sep 17 00:00:00 2001 From: David Cantrell Date: Mon, 7 Mar 2022 14:45:25 -0500 Subject: [PATCH 02/29] BR python3-setuptools Signed-off-by: David Cantrell --- pyparted.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pyparted.spec b/pyparted.spec index d1c0a78..1debcf1 100644 --- a/pyparted.spec +++ b/pyparted.spec @@ -34,7 +34,7 @@ Summary: Python module for GNU parted Name: pyparted Epoch: 1 Version: 3.12.0 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv2+ URL: https://github.com/dcantrell/pyparted @@ -53,6 +53,7 @@ BuildRequires: gnupg2 %if %{with python3} BuildRequires: python3-devel BuildRequires: python3-six +BuildRequires: python3-setuptools %endif %if %{with python2} @@ -149,7 +150,10 @@ popd %endif %changelog -* Mon May 07 2022 David Cantrell - 3.12.0-1 +* Mon Mar 07 2022 David Cantrell - 3.12.0-2 +- BR python3-setuptools + +* Mon Mar 07 2022 David Cantrell - 3.12.0-1 - Upgrade to pyparted-3.12.0 * Fri Jan 21 2022 Fedora Release Engineering - 1:3.11.7-5 From e8f5fc908955d472b952c8a75ef45bf8bca55f04 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Mon, 13 Jun 2022 16:02:42 +0200 Subject: [PATCH 03/29] Rebuilt for Python 3.11 --- pyparted.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyparted.spec b/pyparted.spec index 1debcf1..10d2c51 100644 --- a/pyparted.spec +++ b/pyparted.spec @@ -34,7 +34,7 @@ Summary: Python module for GNU parted Name: pyparted Epoch: 1 Version: 3.12.0 -Release: 2%{?dist} +Release: 3%{?dist} License: GPLv2+ URL: https://github.com/dcantrell/pyparted @@ -150,6 +150,9 @@ popd %endif %changelog +* Mon Jun 13 2022 Python Maint - 1:3.12.0-3 +- Rebuilt for Python 3.11 + * Mon Mar 07 2022 David Cantrell - 3.12.0-2 - BR python3-setuptools From d32b10b8773584669e196734e3d268b500b24879 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Mon, 20 Jun 2022 13:24:26 -0700 Subject: [PATCH 04/29] Backport PR #92 to fix tests with parted 3.5 (#2098792) --- ...ITION_TYPE-features-from-parted-3.5-.patch | 100 ++++++++++++++++++ pyparted.spec | 12 ++- 2 files changed, 111 insertions(+), 1 deletion(-) create mode 100644 0001-Support-new-PARTITION_TYPE-features-from-parted-3.5-.patch diff --git a/0001-Support-new-PARTITION_TYPE-features-from-parted-3.5-.patch b/0001-Support-new-PARTITION_TYPE-features-from-parted-3.5-.patch new file mode 100644 index 0000000..9ba3c03 --- /dev/null +++ b/0001-Support-new-PARTITION_TYPE-features-from-parted-3.5-.patch @@ -0,0 +1,100 @@ +From e99993d1b80105906fdeecafc308e272b93a96c9 Mon Sep 17 00:00:00 2001 +From: Adam Williamson +Date: Mon, 20 Jun 2022 11:00:54 -0700 +Subject: [PATCH] Support new PARTITION_TYPE features from parted 3.5 (#91) + +This adds constants for the new PARTITION_TYPE features added +in parted 3.5 (commit 61b3a9733c0e0a79ccc43096642d378c8706add6 ) +and adjusts the disk type tests to test for them correctly. + +Note this relies on being able to evaluate the +PED_DISK_TYPE_LAST_FEATURE macro at preprocessor time, which is +not the case with current upstream parted. See +https://github.com/dcantrell/pyparted/issues/91#issuecomment-1160788315 +for full details on this. The existing attempts to add constants +based on PED_PARTITION_LAST_FLAG in the same manner also do not +work with current upstream parted. + +Signed-off-by: Adam Williamson +--- + src/_pedmodule.c | 5 +++++ + src/parted/__init__.py | 8 ++++++++ + tests/test__ped_disktype.py | 18 +++++++++++++++--- + 3 files changed, 28 insertions(+), 3 deletions(-) + +diff --git a/src/_pedmodule.c b/src/_pedmodule.c +index 2d8ee1c..080e716 100644 +--- a/src/_pedmodule.c ++++ b/src/_pedmodule.c +@@ -685,6 +685,11 @@ MOD_INIT(_ped) { + PyModule_AddIntConstant(m, "DISK_TYPE_EXTENDED", PED_DISK_TYPE_EXTENDED); + PyModule_AddIntConstant(m, "DISK_TYPE_PARTITION_NAME", PED_DISK_TYPE_PARTITION_NAME); + ++#if PED_DISK_TYPE_LAST_FEATURE > 2 ++ PyModule_AddIntConstant(m, "DISK_TYPE_PARTITION_TYPE_ID", PED_DISK_TYPE_PARTITION_TYPE_ID); ++ PyModule_AddIntConstant(m, "DISK_TYPE_PARTITION_TYPE_UUID", PED_DISK_TYPE_PARTITION_TYPE_UUID); ++#endif ++ + /* add PedFileSystemType as _ped.FileSystemType */ + if (PyType_Ready(&_ped_FileSystemType_Type_obj) < 0) + return MOD_ERROR_VAL; +diff --git a/src/parted/__init__.py b/src/parted/__init__.py +index ef049ee..2397b84 100644 +--- a/src/parted/__init__.py ++++ b/src/parted/__init__.py +@@ -217,6 +217,14 @@ from _ped import DISK_GPT_PMBR_BOOT + from _ped import DISK_TYPE_EXTENDED + from _ped import DISK_TYPE_PARTITION_NAME + ++if hasattr(_ped, 'DISK_TYPE_PARTITION_TYPE_ID'): ++ # pylint: disable=E0611 ++ from _ped import DISK_TYPE_PARTITION_TYPE_ID ++ ++if hasattr(_ped, 'DISK_TYPE_PARTITION_TYPE_UUID'): ++ # pylint: disable=E0611 ++ from _ped import DISK_TYPE_PARTITION_TYPE_UUID ++ + from _ped import EXCEPTION_TYPE_INFORMATION + from _ped import EXCEPTION_TYPE_WARNING + from _ped import EXCEPTION_TYPE_ERROR +diff --git a/tests/test__ped_disktype.py b/tests/test__ped_disktype.py +index 8b768a3..0867d37 100755 +--- a/tests/test__ped_disktype.py ++++ b/tests/test__ped_disktype.py +@@ -68,18 +68,30 @@ class DiskTypeCheckFeatureTestCase(RequiresDiskTypes): + self.assertFalse(self.disktype[name].check_feature(_ped.DISK_TYPE_EXTENDED)) + self.assertTrue(self.disktype[name].check_feature(_ped.DISK_TYPE_PARTITION_NAME)) + +- # The following types support all features ++ # The following types support both features + for name in ['dvh']: + self.assertTrue(self.disktype[name].check_feature(_ped.DISK_TYPE_EXTENDED)) + self.assertTrue(self.disktype[name].check_feature(_ped.DISK_TYPE_PARTITION_NAME)) + ++ # With parted 3.5+, msdos supports PED_DISK_TYPE_PARTITION_TYPE_ID ++ # and gpt supports PED_DISK_TYPE_PARTITION_TYPE_UUID ++ if hasattr(_ped, "DISK_TYPE_PARTITION_TYPE_ID"): ++ self.assertTrue(self.disktype["msdos"].check_feature(_ped.DISK_TYPE_PARTITION_TYPE_ID)) ++ self.assertTrue(self.disktype["gpt"].check_feature(_ped.DISK_TYPE_PARTITION_TYPE_UUID)) ++ + class DiskTypeStrTestCase(RequiresDiskTypes): + def runTest(self): +- self.assertEqual(str(self.disktype['msdos']), '_ped.DiskType instance --\n name: msdos features: 1') ++ if hasattr(_ped, "DISK_TYPE_PARTITION_TYPE_ID"): ++ self.assertEqual(str(self.disktype['msdos']), '_ped.DiskType instance --\n name: msdos features: 5') ++ else: ++ self.assertEqual(str(self.disktype['msdos']), '_ped.DiskType instance --\n name: msdos features: 1') + 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') ++ if hasattr(_ped, "DISK_TYPE_PARTITION_TYPE_UUID"): ++ self.assertEqual(str(self.disktype['gpt']), '_ped.DiskType instance --\n name: gpt features: 10') ++ else: ++ self.assertEqual(str(self.disktype['gpt']), '_ped.DiskType instance --\n name: gpt features: 2') + self.assertEqual(str(self.disktype['mac']), '_ped.DiskType instance --\n name: mac features: 2') + 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') +-- +2.36.1 + diff --git a/pyparted.spec b/pyparted.spec index 10d2c51..fb34fea 100644 --- a/pyparted.spec +++ b/pyparted.spec @@ -34,7 +34,7 @@ Summary: Python module for GNU parted Name: pyparted Epoch: 1 Version: 3.12.0 -Release: 3%{?dist} +Release: 4%{?dist} License: GPLv2+ URL: https://github.com/dcantrell/pyparted @@ -43,6 +43,12 @@ Source1: https://github.com/dcantrell/pyparted/releases/download/v%{version}/%{n Source2: keyring.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 +# https://github.com/dcantrell/pyparted/pull/92 +Patch0: 0001-Support-new-PARTITION_TYPE-features-from-parted-3.5-.patch + BuildRequires: make BuildRequires: gcc BuildRequires: parted-devel >= 3.3 @@ -93,6 +99,7 @@ partition tables. This package provides Python 3 bindings for parted. gpg --no-default-keyring --keyring %{SOURCE2} --trustdb-name %{SOURCE3} --verify %{SOURCE1} %{SOURCE0} || exit 1 %setup -q +%patch0 -p1 %if %{with python3} everything=$(ls) @@ -150,6 +157,9 @@ popd %endif %changelog +* Mon Jun 20 2022 Adam Williamson - 1:3.12.0-4 +- Backport PR #92 to fix tests with parted 3.5 (#2098792) + * Mon Jun 13 2022 Python Maint - 1:3.12.0-3 - Rebuilt for Python 3.11 From 52a1c8bfaff588ea87d22951768bba2e5181b975 Mon Sep 17 00:00:00 2001 From: David Cantrell Date: Tue, 21 Jun 2022 15:22:04 -0400 Subject: [PATCH 05/29] 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 label (#2098792) Signed-off-by: David Cantrell --- ...h => pyparted-3.12.0-partition-types.patch | 107 ++++++++---------- pyparted.spec | 10 +- 2 files changed, 53 insertions(+), 64 deletions(-) rename 0001-Support-new-PARTITION_TYPE-features-from-parted-3.5-.patch => pyparted-3.12.0-partition-types.patch (58%) diff --git a/0001-Support-new-PARTITION_TYPE-features-from-parted-3.5-.patch b/pyparted-3.12.0-partition-types.patch similarity index 58% rename from 0001-Support-new-PARTITION_TYPE-features-from-parted-3.5-.patch rename to pyparted-3.12.0-partition-types.patch index 9ba3c03..075c18e 100644 --- a/0001-Support-new-PARTITION_TYPE-features-from-parted-3.5-.patch +++ b/pyparted-3.12.0-partition-types.patch @@ -1,47 +1,6 @@ -From e99993d1b80105906fdeecafc308e272b93a96c9 Mon Sep 17 00:00:00 2001 -From: Adam Williamson -Date: Mon, 20 Jun 2022 11:00:54 -0700 -Subject: [PATCH] Support new PARTITION_TYPE features from parted 3.5 (#91) - -This adds constants for the new PARTITION_TYPE features added -in parted 3.5 (commit 61b3a9733c0e0a79ccc43096642d378c8706add6 ) -and adjusts the disk type tests to test for them correctly. - -Note this relies on being able to evaluate the -PED_DISK_TYPE_LAST_FEATURE macro at preprocessor time, which is -not the case with current upstream parted. See -https://github.com/dcantrell/pyparted/issues/91#issuecomment-1160788315 -for full details on this. The existing attempts to add constants -based on PED_PARTITION_LAST_FLAG in the same manner also do not -work with current upstream parted. - -Signed-off-by: Adam Williamson ---- - src/_pedmodule.c | 5 +++++ - src/parted/__init__.py | 8 ++++++++ - tests/test__ped_disktype.py | 18 +++++++++++++++--- - 3 files changed, 28 insertions(+), 3 deletions(-) - -diff --git a/src/_pedmodule.c b/src/_pedmodule.c -index 2d8ee1c..080e716 100644 ---- a/src/_pedmodule.c -+++ b/src/_pedmodule.c -@@ -685,6 +685,11 @@ MOD_INIT(_ped) { - PyModule_AddIntConstant(m, "DISK_TYPE_EXTENDED", PED_DISK_TYPE_EXTENDED); - PyModule_AddIntConstant(m, "DISK_TYPE_PARTITION_NAME", PED_DISK_TYPE_PARTITION_NAME); - -+#if PED_DISK_TYPE_LAST_FEATURE > 2 -+ PyModule_AddIntConstant(m, "DISK_TYPE_PARTITION_TYPE_ID", PED_DISK_TYPE_PARTITION_TYPE_ID); -+ PyModule_AddIntConstant(m, "DISK_TYPE_PARTITION_TYPE_UUID", PED_DISK_TYPE_PARTITION_TYPE_UUID); -+#endif -+ - /* add PedFileSystemType as _ped.FileSystemType */ - if (PyType_Ready(&_ped_FileSystemType_Type_obj) < 0) - return MOD_ERROR_VAL; -diff --git a/src/parted/__init__.py b/src/parted/__init__.py -index ef049ee..2397b84 100644 ---- a/src/parted/__init__.py -+++ b/src/parted/__init__.py +diff -up pyparted-3.12.0/src/parted/__init__.py.orig pyparted-3.12.0/src/parted/__init__.py +--- pyparted-3.12.0/src/parted/__init__.py.orig 2022-03-07 12:38:56.000000000 -0500 ++++ pyparted-3.12.0/src/parted/__init__.py 2022-06-21 15:05:10.318939409 -0400 @@ -217,6 +217,14 @@ from _ped import DISK_GPT_PMBR_BOOT from _ped import DISK_TYPE_EXTENDED from _ped import DISK_TYPE_PARTITION_NAME @@ -57,26 +16,52 @@ index ef049ee..2397b84 100644 from _ped import EXCEPTION_TYPE_INFORMATION from _ped import EXCEPTION_TYPE_WARNING from _ped import EXCEPTION_TYPE_ERROR -diff --git a/tests/test__ped_disktype.py b/tests/test__ped_disktype.py -index 8b768a3..0867d37 100755 ---- a/tests/test__ped_disktype.py -+++ b/tests/test__ped_disktype.py -@@ -68,18 +68,30 @@ class DiskTypeCheckFeatureTestCase(RequiresDiskTypes): +diff -up pyparted-3.12.0/src/_pedmodule.c.orig pyparted-3.12.0/src/_pedmodule.c +--- pyparted-3.12.0/src/_pedmodule.c.orig 2022-03-07 12:49:11.000000000 -0500 ++++ pyparted-3.12.0/src/_pedmodule.c 2022-06-21 15:04:57.863977820 -0400 +@@ -685,6 +685,14 @@ MOD_INIT(_ped) { + PyModule_AddIntConstant(m, "DISK_TYPE_EXTENDED", PED_DISK_TYPE_EXTENDED); + PyModule_AddIntConstant(m, "DISK_TYPE_PARTITION_NAME", PED_DISK_TYPE_PARTITION_NAME); + ++#if PED_DISK_TYPE_LAST_FEATURE > 2 ++ PyModule_AddIntConstant(m, "DISK_TYPE_PARTITION_TYPE_ID", PED_DISK_TYPE_PARTITION_TYPE_ID); ++#endif ++ ++#if PED_DISK_TYPE_LAST_FEATURE > 4 ++ PyModule_AddIntConstant(m, "DISK_TYPE_PARTITION_TYPE_UUID", PED_DISK_TYPE_PARTITION_TYPE_UUID); ++#endif ++ + /* add PedFileSystemType as _ped.FileSystemType */ + if (PyType_Ready(&_ped_FileSystemType_Type_obj) < 0) + return MOD_ERROR_VAL; +diff -up pyparted-3.12.0/tests/test__ped_disktype.py.orig pyparted-3.12.0/tests/test__ped_disktype.py +--- pyparted-3.12.0/tests/test__ped_disktype.py.orig 2018-01-12 13:31:40.000000000 -0500 ++++ pyparted-3.12.0/tests/test__ped_disktype.py 2022-06-21 15:04:57.863977820 -0400 +@@ -63,11 +63,22 @@ class DiskTypeCheckFeatureTestCase(Requi + self.assertTrue(self.disktype[name].check_feature(_ped.DISK_TYPE_EXTENDED)) + self.assertFalse(self.disktype[name].check_feature(_ped.DISK_TYPE_PARTITION_NAME)) + ++ if hasattr(_ped, "DISK_TYPE_PARTITION_TYPE_ID"): ++ self.assertTrue(self.disktype[name].check_feature(_ped.DISK_TYPE_PARTITION_TYPE_ID)) ++ ++ if hasattr(_ped, "DISK_TYPE_PARTITION_TYPE_UUID"): ++ self.assertFalse(self.disktype[name].check_feature(_ped.DISK_TYPE_PARTITION_TYPE_UUID)) ++ + # The following types support DISK_TYPE_PARTITION_NAME + for name in ['amiga', 'gpt', 'mac', 'pc98']: self.assertFalse(self.disktype[name].check_feature(_ped.DISK_TYPE_EXTENDED)) self.assertTrue(self.disktype[name].check_feature(_ped.DISK_TYPE_PARTITION_NAME)) -- # The following types support all features -+ # The following types support both features ++ # The following types support DISK_TYPE_PARTITION_TYPE_UUID ++ for name in ['gpt']: ++ if hasattr(_ped, "DISK_TYPE_PARTITION_TYPE_UUID"): ++ self.assertTrue(self.disktype[name].check_feature(_ped.DISK_TYPE_PARTITION_TYPE_UUID)) ++ + # The following types support all features for name in ['dvh']: self.assertTrue(self.disktype[name].check_feature(_ped.DISK_TYPE_EXTENDED)) - self.assertTrue(self.disktype[name].check_feature(_ped.DISK_TYPE_PARTITION_NAME)) +@@ -75,11 +86,20 @@ class DiskTypeCheckFeatureTestCase(Requi -+ # With parted 3.5+, msdos supports PED_DISK_TYPE_PARTITION_TYPE_ID -+ # and gpt supports PED_DISK_TYPE_PARTITION_TYPE_UUID -+ if hasattr(_ped, "DISK_TYPE_PARTITION_TYPE_ID"): -+ self.assertTrue(self.disktype["msdos"].check_feature(_ped.DISK_TYPE_PARTITION_TYPE_ID)) -+ self.assertTrue(self.disktype["gpt"].check_feature(_ped.DISK_TYPE_PARTITION_TYPE_UUID)) -+ class DiskTypeStrTestCase(RequiresDiskTypes): def runTest(self): - self.assertEqual(str(self.disktype['msdos']), '_ped.DiskType instance --\n name: msdos features: 1') @@ -84,17 +69,17 @@ index 8b768a3..0867d37 100755 + self.assertEqual(str(self.disktype['msdos']), '_ped.DiskType instance --\n name: msdos features: 5') + else: + self.assertEqual(str(self.disktype['msdos']), '_ped.DiskType instance --\n name: msdos features: 1') ++ 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') ++ + if hasattr(_ped, "DISK_TYPE_PARTITION_TYPE_UUID"): + self.assertEqual(str(self.disktype['gpt']), '_ped.DiskType instance --\n name: gpt features: 10') + else: + self.assertEqual(str(self.disktype['gpt']), '_ped.DiskType instance --\n name: gpt features: 2') ++ self.assertEqual(str(self.disktype['mac']), '_ped.DiskType instance --\n name: mac features: 2') 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') --- -2.36.1 - diff --git a/pyparted.spec b/pyparted.spec index fb34fea..fff5a38 100644 --- a/pyparted.spec +++ b/pyparted.spec @@ -34,7 +34,7 @@ Summary: Python module for GNU parted Name: pyparted Epoch: 1 Version: 3.12.0 -Release: 4%{?dist} +Release: 5%{?dist} License: GPLv2+ URL: https://github.com/dcantrell/pyparted @@ -46,8 +46,7 @@ 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 -# https://github.com/dcantrell/pyparted/pull/92 -Patch0: 0001-Support-new-PARTITION_TYPE-features-from-parted-3.5-.patch +Patch0: pyparted-3.12.0-partition-types.patch BuildRequires: make BuildRequires: gcc @@ -157,6 +156,11 @@ popd %endif %changelog +* Tue Jun 21 2022 David Cantrell - 1:3.12.0-5 +- 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 + label (#2098792) + * Mon Jun 20 2022 Adam Williamson - 1:3.12.0-4 - Backport PR #92 to fix tests with parted 3.5 (#2098792) From b71463d9afb3ebd66059c327d789223c8b618a49 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 22 Jul 2022 15:50:35 +0000 Subject: [PATCH 06/29] Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- pyparted.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyparted.spec b/pyparted.spec index fff5a38..20f6f96 100644 --- a/pyparted.spec +++ b/pyparted.spec @@ -34,7 +34,7 @@ Summary: Python module for GNU parted Name: pyparted Epoch: 1 Version: 3.12.0 -Release: 5%{?dist} +Release: 6%{?dist} License: GPLv2+ URL: https://github.com/dcantrell/pyparted @@ -156,6 +156,9 @@ popd %endif %changelog +* Fri Jul 22 2022 Fedora Release Engineering - 1:3.12.0-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + * Tue Jun 21 2022 David Cantrell - 1:3.12.0-5 - 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 From c779229780277b3144f4b60c5286bc6cc0f556e9 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 20 Jan 2023 10:42:21 +0000 Subject: [PATCH 07/29] Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- pyparted.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyparted.spec b/pyparted.spec index 20f6f96..da6321c 100644 --- a/pyparted.spec +++ b/pyparted.spec @@ -34,7 +34,7 @@ Summary: Python module for GNU parted Name: pyparted Epoch: 1 Version: 3.12.0 -Release: 6%{?dist} +Release: 7%{?dist} License: GPLv2+ URL: https://github.com/dcantrell/pyparted @@ -156,6 +156,9 @@ popd %endif %changelog +* Fri Jan 20 2023 Fedora Release Engineering - 1:3.12.0-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + * Fri Jul 22 2022 Fedora Release Engineering - 1:3.12.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild From 6d94398a546bcc378ddcbb069dceb7264ee4d8a5 Mon Sep 17 00:00:00 2001 From: David Cantrell Date: Thu, 2 Mar 2023 12:01:05 -0500 Subject: [PATCH 08/29] Fix FTBFS with _ped.disktype test case for gpt (#2171656) Update License tag to SPDX expression Signed-off-by: David Cantrell --- pyparted-3.12.0-gpt-disktype-test.patch | 12 ++++++++++++ pyparted.spec | 11 +++++++++-- 2 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 pyparted-3.12.0-gpt-disktype-test.patch diff --git a/pyparted-3.12.0-gpt-disktype-test.patch b/pyparted-3.12.0-gpt-disktype-test.patch new file mode 100644 index 0000000..5f27612 --- /dev/null +++ b/pyparted-3.12.0-gpt-disktype-test.patch @@ -0,0 +1,12 @@ +diff -up pyparted-3.12.0/tests/test__ped_disktype.py.orig pyparted-3.12.0/tests/test__ped_disktype.py +--- pyparted-3.12.0/tests/test__ped_disktype.py.orig 2023-03-02 09:08:37.322713489 -0500 ++++ pyparted-3.12.0/tests/test__ped_disktype.py 2023-03-02 09:10:06.248488694 -0500 +@@ -96,7 +96,7 @@ class DiskTypeStrTestCase(RequiresDiskTy + self.assertEqual(str(self.disktype['amiga']), '_ped.DiskType instance --\n name: amiga features: 2') + + if hasattr(_ped, "DISK_TYPE_PARTITION_TYPE_UUID"): +- self.assertEqual(str(self.disktype['gpt']), '_ped.DiskType instance --\n name: gpt features: 10') ++ self.assertEqual(str(self.disktype['gpt']), '_ped.DiskType instance --\n name: gpt features: 58') + else: + self.assertEqual(str(self.disktype['gpt']), '_ped.DiskType instance --\n name: gpt features: 2') + diff --git a/pyparted.spec b/pyparted.spec index da6321c..63d57e3 100644 --- a/pyparted.spec +++ b/pyparted.spec @@ -34,8 +34,8 @@ Summary: Python module for GNU parted Name: pyparted Epoch: 1 Version: 3.12.0 -Release: 7%{?dist} -License: GPLv2+ +Release: 8%{?dist} +License: GPL-2.0-or-later URL: https://github.com/dcantrell/pyparted Source0: https://github.com/dcantrell/pyparted/releases/download/v%{version}/%{name}-%{version}.tar.gz @@ -48,6 +48,8 @@ Source3: trustdb.gpg # https://github.com/dcantrell/pyparted/issues/91 Patch0: pyparted-3.12.0-partition-types.patch +Patch1: pyparted-3.12.0-gpt-disktype-test.patch + BuildRequires: make BuildRequires: gcc BuildRequires: parted-devel >= 3.3 @@ -99,6 +101,7 @@ gpg --no-default-keyring --keyring %{SOURCE2} --trustdb-name %{SOURCE3} --verify %setup -q %patch0 -p1 +%patch1 -p1 %if %{with python3} everything=$(ls) @@ -156,6 +159,10 @@ popd %endif %changelog +* Thu Mar 02 2023 David Cantrell - 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 - 1:3.12.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild From 1f78cfc5daf748d15f82beda853da20a37c1defb Mon Sep 17 00:00:00 2001 From: Python Maint Date: Tue, 13 Jun 2023 21:37:29 +0200 Subject: [PATCH 09/29] Rebuilt for Python 3.12 --- pyparted.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyparted.spec b/pyparted.spec index 63d57e3..c38fa40 100644 --- a/pyparted.spec +++ b/pyparted.spec @@ -34,7 +34,7 @@ Summary: Python module for GNU parted Name: pyparted Epoch: 1 Version: 3.12.0 -Release: 8%{?dist} +Release: 9%{?dist} License: GPL-2.0-or-later URL: https://github.com/dcantrell/pyparted @@ -159,6 +159,9 @@ popd %endif %changelog +* Tue Jun 13 2023 Python Maint - 1:3.12.0-9 +- Rebuilt for Python 3.12 + * Thu Mar 02 2023 David Cantrell - 1:3.12.0-8 - Fix FTBFS with _ped.disktype test case for gpt (#2171656) - Update License tag to SPDX expression From 305aca41de72e8ab6a36ed14b8f8c782f2ee0d0b Mon Sep 17 00:00:00 2001 From: David Cantrell Date: Wed, 14 Jun 2023 11:12:32 -0400 Subject: [PATCH 10/29] Use non-deprecated syntax for the %patch macros Signed-off-by: David Cantrell --- pyparted.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pyparted.spec b/pyparted.spec index c38fa40..0eaaeb7 100644 --- a/pyparted.spec +++ b/pyparted.spec @@ -34,7 +34,7 @@ Summary: Python module for GNU parted Name: pyparted Epoch: 1 Version: 3.12.0 -Release: 9%{?dist} +Release: 10%{?dist} License: GPL-2.0-or-later URL: https://github.com/dcantrell/pyparted @@ -100,8 +100,8 @@ partition tables. This package provides Python 3 bindings for parted. gpg --no-default-keyring --keyring %{SOURCE2} --trustdb-name %{SOURCE3} --verify %{SOURCE1} %{SOURCE0} || exit 1 %setup -q -%patch0 -p1 -%patch1 -p1 +%patch -P 0 -p1 +%patch -P 1 -p1 %if %{with python3} everything=$(ls) @@ -159,6 +159,9 @@ popd %endif %changelog +* Wed Jun 14 2023 David Cantrell - 1:3.12.0-10 +- Use non-deprecated syntax for the %%patch macros + * Tue Jun 13 2023 Python Maint - 1:3.12.0-9 - Rebuilt for Python 3.12 From 5cc8e359daa410ca571adc6c923085010aa5345c Mon Sep 17 00:00:00 2001 From: Python Maint Date: Thu, 15 Jun 2023 15:07:14 +0200 Subject: [PATCH 11/29] Rebuilt for Python 3.12 --- pyparted.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyparted.spec b/pyparted.spec index 0eaaeb7..e1ebdbe 100644 --- a/pyparted.spec +++ b/pyparted.spec @@ -34,7 +34,7 @@ Summary: Python module for GNU parted Name: pyparted Epoch: 1 Version: 3.12.0 -Release: 10%{?dist} +Release: 11%{?dist} License: GPL-2.0-or-later URL: https://github.com/dcantrell/pyparted @@ -159,6 +159,9 @@ popd %endif %changelog +* Thu Jun 15 2023 Python Maint - 1:3.12.0-11 +- Rebuilt for Python 3.12 + * Wed Jun 14 2023 David Cantrell - 1:3.12.0-10 - Use non-deprecated syntax for the %%patch macros From a4238a2a1228d0a0709fe9b7d5502275f7946cd0 Mon Sep 17 00:00:00 2001 From: David Cantrell Date: Thu, 22 Jun 2023 07:19:58 -0400 Subject: [PATCH 12/29] Upgrade to pyparted-3.13.0 Signed-off-by: David Cantrell --- .gitignore | 2 + pyparted-3.12.0-gpt-disktype-test.patch | 12 -- pyparted-3.12.0-partition-types.patch | 85 -------------- pyparted.spec | 147 ++++-------------------- sources | 4 +- 5 files changed, 27 insertions(+), 223 deletions(-) delete mode 100644 pyparted-3.12.0-gpt-disktype-test.patch delete mode 100644 pyparted-3.12.0-partition-types.patch diff --git a/.gitignore b/.gitignore index ced5e17..58dd8ea 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,5 @@ /pyparted-3.11.7.tar.gz.asc /pyparted-3.12.0.tar.gz /pyparted-3.12.0.tar.gz.asc +/pyparted-3.13.0.tar.gz +/pyparted-3.13.0.tar.gz.asc diff --git a/pyparted-3.12.0-gpt-disktype-test.patch b/pyparted-3.12.0-gpt-disktype-test.patch deleted file mode 100644 index 5f27612..0000000 --- a/pyparted-3.12.0-gpt-disktype-test.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -up pyparted-3.12.0/tests/test__ped_disktype.py.orig pyparted-3.12.0/tests/test__ped_disktype.py ---- pyparted-3.12.0/tests/test__ped_disktype.py.orig 2023-03-02 09:08:37.322713489 -0500 -+++ pyparted-3.12.0/tests/test__ped_disktype.py 2023-03-02 09:10:06.248488694 -0500 -@@ -96,7 +96,7 @@ class DiskTypeStrTestCase(RequiresDiskTy - self.assertEqual(str(self.disktype['amiga']), '_ped.DiskType instance --\n name: amiga features: 2') - - if hasattr(_ped, "DISK_TYPE_PARTITION_TYPE_UUID"): -- self.assertEqual(str(self.disktype['gpt']), '_ped.DiskType instance --\n name: gpt features: 10') -+ self.assertEqual(str(self.disktype['gpt']), '_ped.DiskType instance --\n name: gpt features: 58') - else: - self.assertEqual(str(self.disktype['gpt']), '_ped.DiskType instance --\n name: gpt features: 2') - diff --git a/pyparted-3.12.0-partition-types.patch b/pyparted-3.12.0-partition-types.patch deleted file mode 100644 index 075c18e..0000000 --- a/pyparted-3.12.0-partition-types.patch +++ /dev/null @@ -1,85 +0,0 @@ -diff -up pyparted-3.12.0/src/parted/__init__.py.orig pyparted-3.12.0/src/parted/__init__.py ---- pyparted-3.12.0/src/parted/__init__.py.orig 2022-03-07 12:38:56.000000000 -0500 -+++ pyparted-3.12.0/src/parted/__init__.py 2022-06-21 15:05:10.318939409 -0400 -@@ -217,6 +217,14 @@ from _ped import DISK_GPT_PMBR_BOOT - from _ped import DISK_TYPE_EXTENDED - from _ped import DISK_TYPE_PARTITION_NAME - -+if hasattr(_ped, 'DISK_TYPE_PARTITION_TYPE_ID'): -+ # pylint: disable=E0611 -+ from _ped import DISK_TYPE_PARTITION_TYPE_ID -+ -+if hasattr(_ped, 'DISK_TYPE_PARTITION_TYPE_UUID'): -+ # pylint: disable=E0611 -+ from _ped import DISK_TYPE_PARTITION_TYPE_UUID -+ - from _ped import EXCEPTION_TYPE_INFORMATION - from _ped import EXCEPTION_TYPE_WARNING - from _ped import EXCEPTION_TYPE_ERROR -diff -up pyparted-3.12.0/src/_pedmodule.c.orig pyparted-3.12.0/src/_pedmodule.c ---- pyparted-3.12.0/src/_pedmodule.c.orig 2022-03-07 12:49:11.000000000 -0500 -+++ pyparted-3.12.0/src/_pedmodule.c 2022-06-21 15:04:57.863977820 -0400 -@@ -685,6 +685,14 @@ MOD_INIT(_ped) { - PyModule_AddIntConstant(m, "DISK_TYPE_EXTENDED", PED_DISK_TYPE_EXTENDED); - PyModule_AddIntConstant(m, "DISK_TYPE_PARTITION_NAME", PED_DISK_TYPE_PARTITION_NAME); - -+#if PED_DISK_TYPE_LAST_FEATURE > 2 -+ PyModule_AddIntConstant(m, "DISK_TYPE_PARTITION_TYPE_ID", PED_DISK_TYPE_PARTITION_TYPE_ID); -+#endif -+ -+#if PED_DISK_TYPE_LAST_FEATURE > 4 -+ PyModule_AddIntConstant(m, "DISK_TYPE_PARTITION_TYPE_UUID", PED_DISK_TYPE_PARTITION_TYPE_UUID); -+#endif -+ - /* add PedFileSystemType as _ped.FileSystemType */ - if (PyType_Ready(&_ped_FileSystemType_Type_obj) < 0) - return MOD_ERROR_VAL; -diff -up pyparted-3.12.0/tests/test__ped_disktype.py.orig pyparted-3.12.0/tests/test__ped_disktype.py ---- pyparted-3.12.0/tests/test__ped_disktype.py.orig 2018-01-12 13:31:40.000000000 -0500 -+++ pyparted-3.12.0/tests/test__ped_disktype.py 2022-06-21 15:04:57.863977820 -0400 -@@ -63,11 +63,22 @@ class DiskTypeCheckFeatureTestCase(Requi - self.assertTrue(self.disktype[name].check_feature(_ped.DISK_TYPE_EXTENDED)) - self.assertFalse(self.disktype[name].check_feature(_ped.DISK_TYPE_PARTITION_NAME)) - -+ if hasattr(_ped, "DISK_TYPE_PARTITION_TYPE_ID"): -+ self.assertTrue(self.disktype[name].check_feature(_ped.DISK_TYPE_PARTITION_TYPE_ID)) -+ -+ if hasattr(_ped, "DISK_TYPE_PARTITION_TYPE_UUID"): -+ self.assertFalse(self.disktype[name].check_feature(_ped.DISK_TYPE_PARTITION_TYPE_UUID)) -+ - # The following types support DISK_TYPE_PARTITION_NAME - for name in ['amiga', 'gpt', 'mac', 'pc98']: - self.assertFalse(self.disktype[name].check_feature(_ped.DISK_TYPE_EXTENDED)) - self.assertTrue(self.disktype[name].check_feature(_ped.DISK_TYPE_PARTITION_NAME)) - -+ # The following types support DISK_TYPE_PARTITION_TYPE_UUID -+ for name in ['gpt']: -+ if hasattr(_ped, "DISK_TYPE_PARTITION_TYPE_UUID"): -+ self.assertTrue(self.disktype[name].check_feature(_ped.DISK_TYPE_PARTITION_TYPE_UUID)) -+ - # The following types support all features - for name in ['dvh']: - self.assertTrue(self.disktype[name].check_feature(_ped.DISK_TYPE_EXTENDED)) -@@ -75,11 +86,20 @@ class DiskTypeCheckFeatureTestCase(Requi - - class DiskTypeStrTestCase(RequiresDiskTypes): - def runTest(self): -- self.assertEqual(str(self.disktype['msdos']), '_ped.DiskType instance --\n name: msdos features: 1') -+ if hasattr(_ped, "DISK_TYPE_PARTITION_TYPE_ID"): -+ self.assertEqual(str(self.disktype['msdos']), '_ped.DiskType instance --\n name: msdos features: 5') -+ else: -+ self.assertEqual(str(self.disktype['msdos']), '_ped.DiskType instance --\n name: msdos features: 1') -+ - 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') -+ -+ if hasattr(_ped, "DISK_TYPE_PARTITION_TYPE_UUID"): -+ self.assertEqual(str(self.disktype['gpt']), '_ped.DiskType instance --\n name: gpt features: 10') -+ else: -+ self.assertEqual(str(self.disktype['gpt']), '_ped.DiskType instance --\n name: gpt features: 2') -+ - self.assertEqual(str(self.disktype['mac']), '_ped.DiskType instance --\n name: mac features: 2') - 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.spec b/pyparted.spec index e1ebdbe..8d47076 100644 --- a/pyparted.spec +++ b/pyparted.spec @@ -1,164 +1,63 @@ -%if 0%{?rhel} -%if %{rhel} <= 7 -# disable python3 by default -%bcond_with python3 -%else -%bcond_without python3 -%endif +Summary: Python module for GNU parted +Name: pyparted +Epoch: 1 +Version: 3.13.0 +Release: 1%{?dist} +License: GPL-2.0-or-later +URL: https://github.com/dcantrell/pyparted -%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 -Name: pyparted -Epoch: 1 -Version: 3.12.0 -Release: 11%{?dist} -License: GPL-2.0-or-later -URL: https://github.com/dcantrell/pyparted - -Source0: https://github.com/dcantrell/pyparted/releases/download/v%{version}/%{name}-%{version}.tar.gz -Source1: https://github.com/dcantrell/pyparted/releases/download/v%{version}/%{name}-%{version}.tar.gz.asc -Source2: keyring.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-partition-types.patch - -Patch1: pyparted-3.12.0-gpt-disktype-test.patch +Source0: https://github.com/dcantrell/pyparted/releases/download/v%{version}/%{name}-%{version}.tar.gz +Source1: https://github.com/dcantrell/pyparted/releases/download/v%{version}/%{name}-%{version}.tar.gz.asc +Source2: keyring.gpg +Source3: trustdb.gpg BuildRequires: make BuildRequires: gcc -BuildRequires: parted-devel >= 3.3 +BuildRequires: parted-devel >= 3.4 BuildRequires: pkgconfig BuildRequires: e2fsprogs BuildRequires: gnupg2 - -%if %{with python3} BuildRequires: python3-devel BuildRequires: python3-six BuildRequires: python3-setuptools -%endif -%if %{with python2} -BuildRequires: python2-devel -BuildRequires: python2-six -%endif - -%global _description\ -Python module for the parted library. It is used for manipulating\ +%description +Python module for the parted library. It is used for manipulating 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 Summary: Python 3 module for GNU parted %description -n python3-pyparted Python module for the parted library. It is used for manipulating partition tables. This package provides Python 3 bindings for parted. -%endif %prep # Verify source archive signature gpg --no-default-keyring --keyring %{SOURCE2} --trustdb-name %{SOURCE3} --verify %{SOURCE1} %{SOURCE0} || exit 1 -%setup -q -%patch -P 0 -p1 -%patch -P 1 -p1 - -%if %{with python3} -everything=$(ls) -mkdir -p py3dir -cp -a $everything py3dir -%endif +%autosetup %build -%if %{with python2} -PYTHON=python2 %make_build CFLAGS="%{optflags} -fcommon" -%endif - -%if %{with python3} -pushd py3dir -PYTHON=python3 %make_build CFLAGS="%{optflags} -fcommon" -popd -%endif +%make_build CFLAGS="%{optflags} -fcommon" %check -%if %{with python2} -PYTHON=python2 make test -%endif - -%if %{with python3} -pushd py3dir -PYTHON=python3 make test -popd -%endif +make test %install -%if %{with python2} -PYTHON=python2 %make_install -%endif +%make_install -%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 -%doc AUTHORS COPYING NEWS README TODO +%doc AUTHORS HACKING NEWS README.md RELEASE TODO +%license LICENSE %{python3_sitearch}/_ped.*.so %{python3_sitearch}/parted %{python3_sitearch}/%{name}-%{version}-*.egg-info -%endif %changelog +* Wed Jun 21 2023 David Cantrell - 1:3.13.0-1 +- Upgrade to pyparted-3.13.0 + * Thu Jun 15 2023 Python Maint - 1:3.12.0-11 - Rebuilt for Python 3.12 diff --git a/sources b/sources index 7f89792..39be172 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (pyparted-3.12.0.tar.gz) = 0179e5334be8c04287b10b47d407ad339933cd3e20514d2142fe968acf8a36c40e541ee5165e2b3699a40b133d8f1948d8d12ccf307d3a1736090fb33f28b7e7 -SHA512 (pyparted-3.12.0.tar.gz.asc) = 452d386fbc8b84fa0dc186bb75c6c12eb051c8a37575e5a3a0cf504d13c4b2a0134d7e486928f9af7d142d25802bda05c97fd95ff80721ae6f6c0abedb8b1614 +SHA512 (pyparted-3.13.0.tar.gz) = a9162afdbee48de5474de98ae8c08df028d485e122fcafae8421dddd47c9ed00d8dd9f40d854b14d4582483d8ea3469128a912491371385e4f18a0dbbbafbfd5 +SHA512 (pyparted-3.13.0.tar.gz.asc) = 6f3e973b52584450c3eed97d64266df832d8820a6a72f731fbb9fbd9be06f93f2d53b47bcae01b78a831e3e3cedca3ae8629dc5f9fe35dcc3ed11226a11fd952 From 560c551e0cba178e8fb34be0b796aa9ba5f9dc7d Mon Sep 17 00:00:00 2001 From: Python Maint Date: Thu, 22 Jun 2023 14:22:46 +0200 Subject: [PATCH 13/29] Rebuilt for Python 3.12 --- pyparted.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyparted.spec b/pyparted.spec index 8d47076..111be2c 100644 --- a/pyparted.spec +++ b/pyparted.spec @@ -2,7 +2,7 @@ Summary: Python module for GNU parted Name: pyparted Epoch: 1 Version: 3.13.0 -Release: 1%{?dist} +Release: 2%{?dist} License: GPL-2.0-or-later URL: https://github.com/dcantrell/pyparted @@ -55,6 +55,9 @@ make test %{python3_sitearch}/%{name}-%{version}-*.egg-info %changelog +* Thu Jun 22 2023 Python Maint - 1:3.13.0-2 +- Rebuilt for Python 3.12 + * Wed Jun 21 2023 David Cantrell - 1:3.13.0-1 - Upgrade to pyparted-3.13.0 From 68b2466ffd8b7471694835d9b0f5f2b1fbeb4e7f Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 21 Jul 2023 06:46:37 +0000 Subject: [PATCH 14/29] Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- pyparted.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyparted.spec b/pyparted.spec index 111be2c..190e231 100644 --- a/pyparted.spec +++ b/pyparted.spec @@ -2,7 +2,7 @@ Summary: Python module for GNU parted Name: pyparted Epoch: 1 Version: 3.13.0 -Release: 2%{?dist} +Release: 3%{?dist} License: GPL-2.0-or-later URL: https://github.com/dcantrell/pyparted @@ -55,6 +55,9 @@ make test %{python3_sitearch}/%{name}-%{version}-*.egg-info %changelog +* Fri Jul 21 2023 Fedora Release Engineering - 1:3.13.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + * Thu Jun 22 2023 Python Maint - 1:3.13.0-2 - Rebuilt for Python 3.12 From b43cea136d3d99417cbb112c32cac0877b053036 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sun, 21 Jan 2024 22:47:14 +0000 Subject: [PATCH 15/29] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- pyparted.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyparted.spec b/pyparted.spec index 190e231..fe20a52 100644 --- a/pyparted.spec +++ b/pyparted.spec @@ -2,7 +2,7 @@ Summary: Python module for GNU parted Name: pyparted Epoch: 1 Version: 3.13.0 -Release: 3%{?dist} +Release: 4%{?dist} License: GPL-2.0-or-later URL: https://github.com/dcantrell/pyparted @@ -55,6 +55,9 @@ make test %{python3_sitearch}/%{name}-%{version}-*.egg-info %changelog +* Sun Jan 21 2024 Fedora Release Engineering - 1:3.13.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Fri Jul 21 2023 Fedora Release Engineering - 1:3.13.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild From 28afbe941526da1816ea5c18fbbbb08cdd64d419 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 26 Jan 2024 00:38:54 +0000 Subject: [PATCH 16/29] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- pyparted.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyparted.spec b/pyparted.spec index fe20a52..87309cd 100644 --- a/pyparted.spec +++ b/pyparted.spec @@ -2,7 +2,7 @@ Summary: Python module for GNU parted Name: pyparted Epoch: 1 Version: 3.13.0 -Release: 4%{?dist} +Release: 5%{?dist} License: GPL-2.0-or-later URL: https://github.com/dcantrell/pyparted @@ -55,6 +55,9 @@ make test %{python3_sitearch}/%{name}-%{version}-*.egg-info %changelog +* Fri Jan 26 2024 Fedora Release Engineering - 1:3.13.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Sun Jan 21 2024 Fedora Release Engineering - 1:3.13.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From 2164058f9515e852d5bada52d98089914b9161e8 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Fri, 7 Jun 2024 09:50:44 +0200 Subject: [PATCH 17/29] Rebuilt for Python 3.13 --- pyparted.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyparted.spec b/pyparted.spec index 87309cd..af3c28e 100644 --- a/pyparted.spec +++ b/pyparted.spec @@ -2,7 +2,7 @@ Summary: Python module for GNU parted Name: pyparted Epoch: 1 Version: 3.13.0 -Release: 5%{?dist} +Release: 6%{?dist} License: GPL-2.0-or-later URL: https://github.com/dcantrell/pyparted @@ -55,6 +55,9 @@ make test %{python3_sitearch}/%{name}-%{version}-*.egg-info %changelog +* Fri Jun 07 2024 Python Maint - 1:3.13.0-6 +- Rebuilt for Python 3.13 + * Fri Jan 26 2024 Fedora Release Engineering - 1:3.13.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From 7db2b45750f5f0b74a2586a1491683b5f31c2781 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 19 Jul 2024 08:56:04 +0000 Subject: [PATCH 18/29] Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild --- pyparted.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyparted.spec b/pyparted.spec index af3c28e..efcea27 100644 --- a/pyparted.spec +++ b/pyparted.spec @@ -2,7 +2,7 @@ Summary: Python module for GNU parted Name: pyparted Epoch: 1 Version: 3.13.0 -Release: 6%{?dist} +Release: 7%{?dist} License: GPL-2.0-or-later URL: https://github.com/dcantrell/pyparted @@ -55,6 +55,9 @@ make test %{python3_sitearch}/%{name}-%{version}-*.egg-info %changelog +* Fri Jul 19 2024 Fedora Release Engineering - 1:3.13.0-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + * Fri Jun 07 2024 Python Maint - 1:3.13.0-6 - Rebuilt for Python 3.13 From a5d5cf52a2ab9bae79ef95b426307539a1c6e7b7 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 18 Jan 2025 11:17:57 +0000 Subject: [PATCH 19/29] Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild --- pyparted.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyparted.spec b/pyparted.spec index efcea27..0ce4215 100644 --- a/pyparted.spec +++ b/pyparted.spec @@ -2,7 +2,7 @@ Summary: Python module for GNU parted Name: pyparted Epoch: 1 Version: 3.13.0 -Release: 7%{?dist} +Release: 8%{?dist} License: GPL-2.0-or-later URL: https://github.com/dcantrell/pyparted @@ -55,6 +55,9 @@ make test %{python3_sitearch}/%{name}-%{version}-*.egg-info %changelog +* Sat Jan 18 2025 Fedora Release Engineering - 1:3.13.0-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + * Fri Jul 19 2024 Fedora Release Engineering - 1:3.13.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild From f6172d0db0522264fcf0dc2b87a2fbf059f812fe Mon Sep 17 00:00:00 2001 From: Python Maint Date: Mon, 2 Jun 2025 21:23:35 +0200 Subject: [PATCH 20/29] Rebuilt for Python 3.14 --- pyparted.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyparted.spec b/pyparted.spec index 0ce4215..d6e9ec4 100644 --- a/pyparted.spec +++ b/pyparted.spec @@ -2,7 +2,7 @@ Summary: Python module for GNU parted Name: pyparted Epoch: 1 Version: 3.13.0 -Release: 8%{?dist} +Release: 9%{?dist} License: GPL-2.0-or-later URL: https://github.com/dcantrell/pyparted @@ -55,6 +55,9 @@ make test %{python3_sitearch}/%{name}-%{version}-*.egg-info %changelog +* Mon Jun 02 2025 Python Maint - 1:3.13.0-9 +- Rebuilt for Python 3.14 + * Sat Jan 18 2025 Fedora Release Engineering - 1:3.13.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild From f5a2e7a5d463740b88228784229e96fc7b40b1ce Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Sun, 15 Jun 2025 12:59:28 -0400 Subject: [PATCH 21/29] Drop unused six dependency six is unused as of 3.13.0: https://github.com/dcantrell/pyparted/commit/2f58eaea26773cd14ec0407f06b9c699abf47a8a --- pyparted.spec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pyparted.spec b/pyparted.spec index d6e9ec4..1f42611 100644 --- a/pyparted.spec +++ b/pyparted.spec @@ -2,7 +2,7 @@ Summary: Python module for GNU parted Name: pyparted Epoch: 1 Version: 3.13.0 -Release: 9%{?dist} +Release: 10%{?dist} License: GPL-2.0-or-later URL: https://github.com/dcantrell/pyparted @@ -18,7 +18,6 @@ BuildRequires: pkgconfig BuildRequires: e2fsprogs BuildRequires: gnupg2 BuildRequires: python3-devel -BuildRequires: python3-six BuildRequires: python3-setuptools %description @@ -55,6 +54,9 @@ make test %{python3_sitearch}/%{name}-%{version}-*.egg-info %changelog +* Sun Jun 15 2025 Yaakov Selkowitz - 1:3.13.0-10 +- Drop unused six dependency + * Mon Jun 02 2025 Python Maint - 1:3.13.0-9 - Rebuilt for Python 3.14 From e753df8da255df179a032b60af04b6c4adf3410b Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 25 Jul 2025 06:23:09 +0000 Subject: [PATCH 22/29] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild --- pyparted.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyparted.spec b/pyparted.spec index 1f42611..f7ed7f8 100644 --- a/pyparted.spec +++ b/pyparted.spec @@ -2,7 +2,7 @@ Summary: Python module for GNU parted Name: pyparted Epoch: 1 Version: 3.13.0 -Release: 10%{?dist} +Release: 11%{?dist} License: GPL-2.0-or-later URL: https://github.com/dcantrell/pyparted @@ -54,6 +54,9 @@ make test %{python3_sitearch}/%{name}-%{version}-*.egg-info %changelog +* Fri Jul 25 2025 Fedora Release Engineering - 1:3.13.0-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + * Sun Jun 15 2025 Yaakov Selkowitz - 1:3.13.0-10 - Drop unused six dependency From d5724a4b259ddc57ebf1ed22e6deff2087e5bcf1 Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Wed, 23 Jul 2025 15:00:35 -0700 Subject: [PATCH 23/29] tests: Move pyparted tests from sti to tmt This converts to using tmt style tests, and adds a test that actually uses the installed pyparted library to manipulate a temporary disk image. Resolves: rhbz#2383021 --- .fmf/version | 1 + plans/run-tests.fmf | 9 ++++ tests/scripts/pyparted-tests | 88 ++++++++++++++++++++++++++++++++++++ tests/scripts/run_tests.sh | 29 ------------ tests/tests.yml | 15 ------ 5 files changed, 98 insertions(+), 44 deletions(-) create mode 100644 .fmf/version create mode 100644 plans/run-tests.fmf create mode 100755 tests/scripts/pyparted-tests delete mode 100755 tests/scripts/run_tests.sh delete mode 100644 tests/tests.yml diff --git a/.fmf/version b/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/plans/run-tests.fmf b/plans/run-tests.fmf new file mode 100644 index 0000000..cf8a582 --- /dev/null +++ b/plans/run-tests.fmf @@ -0,0 +1,9 @@ +summary: Run pyparted tests +prepare: + how: install + package: + - python3-pyparted +execute: + script: | + fallocate -l 1G $PWD/disk.img + ./tests/scripts/pyparted-tests $PWD/disk.img diff --git a/tests/scripts/pyparted-tests b/tests/scripts/pyparted-tests new file mode 100755 index 0000000..8edcca1 --- /dev/null +++ b/tests/scripts/pyparted-tests @@ -0,0 +1,88 @@ +#!/usr/bin/python3 + +import parted +import sys + + +def init_disk(disk_img): + # Make a disklabel (failures here will raise an error) + dev = parted.getDevice(disk_img) + disk = parted.freshDisk(dev, "gpt") + + # Make a partition + geom = parted.Geometry(device=dev, + start=2048, + end=50*2048) + fs = parted.FileSystem(type="ext4", geometry=geom) + part = parted.Partition(disk=disk, + type=parted.PARTITION_NORMAL, + fs=fs, + geometry=geom) + disk.addPartition(partition=part, + constraint=dev.optimalAlignedConstraint) + part.setFlag(parted.PARTITION_BOOT) + disk.commit() + +def read_disk(disk_img): + # Read the disk and check the partitions + dev = parted.getDevice(disk_img) + disk = parted.newDisk(dev) + + if dev.length == 0: + print("ERROR: Disk has no length", file=sys.stderr) + sys.exit(1) + + if len(disk.partitions) != 1: + print("ERROR: Wrong number of partitions", file=sys.stderr) + sys.exit(1) + + part = disk.partitions[0] + if part.geometry.end != 50*2048: + print("ERROR: Partition is wrong length", file=sys.stderr) + sys.exit(1) + + if part.geometry.start != 2048: + print("ERROR: Parition doesn't start at sector 2048", file=sys.stderr) + sys.exit(1) + + +def remove_partition(disk_img): + # Remove partition and check disk + dev = parted.getDevice(disk_img) + disk = parted.newDisk(dev) + + if len(disk.partitions) != 1: + print("ERROR: Wrong number of partitions", file=sys.stderr) + sys.exit(1) + + disk.removePartition(partition=disk.partitions[0]) + disk.commit() + + dev = parted.getDevice(disk_img) + disk = parted.newDisk(dev) + + if len(disk.partitions) != 0: + print("ERROR: Failed to delete partition", file=sys.stderr) + sys.exit(1) + + +def main(disk_img): + print(f"Running tests on {disk_img}") + + try: + init_disk(disk_img) + read_disk(disk_img) + remove_partition(disk_img) + except Exception as e: + print(f"ERROR: {str(e)}", file=sys.stderr) + sys.exit(1) + + print("PASS", file=sys.stderr) + sys.exit(0) + +if __name__ == '__main__': + if len(sys.argv) < 2: + print("Usage: %s " % sys.argv[0], file=sys.stderr) + sys.exit(1) + + main(sys.argv[1]) diff --git a/tests/scripts/run_tests.sh b/tests/scripts/run_tests.sh deleted file mode 100755 index 21804db..0000000 --- a/tests/scripts/run_tests.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -PATH=/usr/bin -TMPDIR="$(mktemp -d)" -CWD="$(pwd)" - -PACKAGE=pyparted -BRANCH= - -# clone the dist-git tree for this package -cd ${TMPDIR} -fedpkg co ${PACKAGE} -cd ${PACKAGE} -[ -z "${BRANCH}" ] || fedpkg switch-branch ${BRANCH} -fedpkg prep - -# scramble together the extracted source tree name -SRCDIR="${PACKAGE}-$(grep Version: ${PACKAGE}.spec | cut -d ' ' -f 2)" - -# run the tests -cd ${SRCDIR} -#make check # this runs pylint, which is sometimes wrong/noisy -make test -RET=$? - -# clean up and exit -cd ${CWD} -rm -rf ${TMPDIR} -exit ${RET} diff --git a/tests/tests.yml b/tests/tests.yml deleted file mode 100644 index 171d4d0..0000000 --- a/tests/tests.yml +++ /dev/null @@ -1,15 +0,0 @@ ---- - -- hosts: localhost - roles: - - role: standard-test-basic - tags: - - classic - - required_packages: - - fedpkg - - tests: - - simple: - dir: scripts/ - run: ./run_tests.sh From bd307c7d69a015eb1371b3ea7380653c7d24a139 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Fri, 15 Aug 2025 13:09:13 +0200 Subject: [PATCH 24/29] Rebuilt for Python 3.14.0rc2 bytecode --- pyparted.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyparted.spec b/pyparted.spec index f7ed7f8..cf6cd09 100644 --- a/pyparted.spec +++ b/pyparted.spec @@ -2,7 +2,7 @@ Summary: Python module for GNU parted Name: pyparted Epoch: 1 Version: 3.13.0 -Release: 11%{?dist} +Release: 12%{?dist} License: GPL-2.0-or-later URL: https://github.com/dcantrell/pyparted @@ -54,6 +54,9 @@ make test %{python3_sitearch}/%{name}-%{version}-*.egg-info %changelog +* Fri Aug 15 2025 Python Maint - 1:3.13.0-12 +- Rebuilt for Python 3.14.0rc2 bytecode + * Fri Jul 25 2025 Fedora Release Engineering - 1:3.13.0-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild From 2e82ee90f003a56fbbcf3893247e32f8b398a57d Mon Sep 17 00:00:00 2001 From: Python Maint Date: Fri, 19 Sep 2025 12:40:14 +0200 Subject: [PATCH 25/29] Rebuilt for Python 3.14.0rc3 bytecode --- pyparted.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyparted.spec b/pyparted.spec index cf6cd09..a6d63a7 100644 --- a/pyparted.spec +++ b/pyparted.spec @@ -2,7 +2,7 @@ Summary: Python module for GNU parted Name: pyparted Epoch: 1 Version: 3.13.0 -Release: 12%{?dist} +Release: 13%{?dist} License: GPL-2.0-or-later URL: https://github.com/dcantrell/pyparted @@ -54,6 +54,9 @@ make test %{python3_sitearch}/%{name}-%{version}-*.egg-info %changelog +* Fri Sep 19 2025 Python Maint - 1:3.13.0-13 +- Rebuilt for Python 3.14.0rc3 bytecode + * Fri Aug 15 2025 Python Maint - 1:3.13.0-12 - Rebuilt for Python 3.14.0rc2 bytecode From 0ad0fbeef9a20fce8025f20cd01bfd6a48441498 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 17 Jan 2026 06:00:48 +0000 Subject: [PATCH 26/29] Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild --- pyparted.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyparted.spec b/pyparted.spec index a6d63a7..751923e 100644 --- a/pyparted.spec +++ b/pyparted.spec @@ -2,7 +2,7 @@ Summary: Python module for GNU parted Name: pyparted Epoch: 1 Version: 3.13.0 -Release: 13%{?dist} +Release: 14%{?dist} License: GPL-2.0-or-later URL: https://github.com/dcantrell/pyparted @@ -54,6 +54,9 @@ make test %{python3_sitearch}/%{name}-%{version}-*.egg-info %changelog +* Sat Jan 17 2026 Fedora Release Engineering - 1:3.13.0-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild + * Fri Sep 19 2025 Python Maint - 1:3.13.0-13 - Rebuilt for Python 3.14.0rc3 bytecode From df740093ccc535b125e09e03acd476bcc7ef1850 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Wed, 3 Jun 2026 17:46:10 +0200 Subject: [PATCH 27/29] Rebuilt for Python 3.15 --- pyparted.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyparted.spec b/pyparted.spec index 751923e..4c52b45 100644 --- a/pyparted.spec +++ b/pyparted.spec @@ -2,7 +2,7 @@ Summary: Python module for GNU parted Name: pyparted Epoch: 1 Version: 3.13.0 -Release: 14%{?dist} +Release: 15%{?dist} License: GPL-2.0-or-later URL: https://github.com/dcantrell/pyparted @@ -54,6 +54,9 @@ make test %{python3_sitearch}/%{name}-%{version}-*.egg-info %changelog +* Wed Jun 03 2026 Python Maint - 1:3.13.0-15 +- Rebuilt for Python 3.15 + * Sat Jan 17 2026 Fedora Release Engineering - 1:3.13.0-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild From d1e72e367715cb2dc1382378b96aaad86d703db0 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 16 Jul 2026 17:55:18 +0000 Subject: [PATCH 28/29] Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild --- pyparted.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyparted.spec b/pyparted.spec index 4c52b45..5775ce1 100644 --- a/pyparted.spec +++ b/pyparted.spec @@ -2,7 +2,7 @@ Summary: Python module for GNU parted Name: pyparted Epoch: 1 Version: 3.13.0 -Release: 15%{?dist} +Release: 16%{?dist} License: GPL-2.0-or-later URL: https://github.com/dcantrell/pyparted @@ -54,6 +54,9 @@ make test %{python3_sitearch}/%{name}-%{version}-*.egg-info %changelog +* Thu Jul 16 2026 Fedora Release Engineering - 1:3.13.0-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild + * Wed Jun 03 2026 Python Maint - 1:3.13.0-15 - Rebuilt for Python 3.15 From f00b886f17cea03b03df51eefce8446efd6b2680 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Wed, 22 Jul 2026 10:51:18 +0200 Subject: [PATCH 29/29] Rebuilt for Python 3.15.0b4 ABI change --- pyparted.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyparted.spec b/pyparted.spec index 5775ce1..ad79d71 100644 --- a/pyparted.spec +++ b/pyparted.spec @@ -2,7 +2,7 @@ Summary: Python module for GNU parted Name: pyparted Epoch: 1 Version: 3.13.0 -Release: 16%{?dist} +Release: 17%{?dist} License: GPL-2.0-or-later URL: https://github.com/dcantrell/pyparted @@ -54,6 +54,9 @@ make test %{python3_sitearch}/%{name}-%{version}-*.egg-info %changelog +* Wed Jul 22 2026 Python Maint - 1:3.13.0-17 +- Rebuilt for Python 3.15.0b4 ABI change + * Thu Jul 16 2026 Fedora Release Engineering - 1:3.13.0-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild