Add support for PED_PARTITION_LEGACY_BOOT partition flag now in libparted

This commit is contained in:
David Cantrell 2011-03-17 05:13:52 -10:00
parent 7f85f2c067
commit 2b8b5f7b78
2 changed files with 30 additions and 2 deletions

View File

@ -0,0 +1,22 @@
diff -urN pyparted-3.5.orig/src/_pedmodule.c pyparted-3.5/src/_pedmodule.c
--- pyparted-3.5.orig/src/_pedmodule.c 2010-07-07 08:23:03.000000000 -1000
+++ pyparted-3.5/src/_pedmodule.c 2011-03-17 05:09:11.033085295 -1000
@@ -492,6 +492,7 @@
PyModule_AddIntConstant(m, "PARTITION_APPLE_TV_RECOVERY", PED_PARTITION_APPLE_TV_RECOVERY);
PyModule_AddIntConstant(m, "PARTITION_BIOS_GRUB", PED_PARTITION_BIOS_GRUB);
PyModule_AddIntConstant(m, "PARTITION_DIAG", PED_PARTITION_DIAG);
+ PyModule_AddIntConstant(m, "PARTITION_LEGACY_BOOT", PED_PARTITION_LEGACY_BOOT);
PyModule_AddIntConstant(m, "DISK_CYLINDER_ALIGNMENT", PED_DISK_CYLINDER_ALIGNMENT);
diff -urN pyparted-3.5.orig/src/parted/__init__.py pyparted-3.5/src/parted/__init__.py
--- pyparted-3.5.orig/src/parted/__init__.py 2011-01-16 00:08:59.000000000 -1000
+++ pyparted-3.5/src/parted/__init__.py 2011-03-17 05:09:39.417128307 -1000
@@ -107,6 +107,7 @@
from _ped import PARTITION_APPLE_TV_RECOVERY
from _ped import PARTITION_BIOS_GRUB
from _ped import PARTITION_DIAG
+from _ped import PARTITION_LEGACY_BOOT
from _ped import DISK_CYLINDER_ALIGNMENT

View File

@ -3,16 +3,18 @@
Summary: Python module for GNU parted
Name: pyparted
Version: 3.5
Release: 2%{?dist}
Release: 3%{?dist}
License: GPLv2+
Group: System Environment/Libraries
URL: http://fedorahosted.org/pyparted
Source0: http://fedorahosted.org/releases/p/y/%{name}/%{name}-%{version}.tar.gz
Patch0: pyparted-3.5-legacy-boot.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -u -n)
BuildRequires: python-devel
BuildRequires: parted-devel >= 2.1
BuildRequires: parted-devel >= 2.3
BuildRequires: pkgconfig
%description
@ -21,6 +23,7 @@ partition tables.
%prep
%setup -q
%patch0 -p1
%build
%configure
@ -41,6 +44,9 @@ rm -rf %{buildroot}
%{python_sitearch}/parted
%changelog
* Thu Mar 17 2011 David Cantrell <dcantrell@redhat.com> - 3.5-3
- Add support for PED_PARTITION_LEGACY_BOOT partition flag now in libparted
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild