Summary: Python module for GNU parted Name: pyparted Epoch: 1 Version: 3.9 Release: 13%{?dist} License: GPLv2+ Group: System Environment/Libraries URL: http://fedorahosted.org/pyparted Source0: http://fedorahosted.org/releases/p/y/%{name}/%{name}-%{version}.tar.gz Patch1: 0001-Do-not-traceback-when-calling-setlocale-875354.patch Patch2: 0002-Convert-Constraint-to-__ped.Constraint-in-partition..patch Patch3: 0003-Subject-PATCH-pyparted-export-ped_disk_new-functiona.patch Patch4: pyparted-3.9-tests-fixes.patch Patch5: pyparted-3.9-aarch64.patch Patch6: Makefile_enable_coverage_for_testsuite.patch Patch7: 0001-Fix-some-tests-under-python-coverage-1057626.patch Patch8: 0001-support-ppc64le-in-pyparted.patch Patch9: 0004-Add-new-functions-to-extend-exception-handling.patch Patch10: 0005-PyInt_FromLong-doesn-t-exist-in-python3-so-always-us.patch Patch11: 0006-Remember-to-pass-the-arguments-to-the-exception-hand.patch Patch12: 0007-Put-new-_ped-constants-and-functions-into-the-parted.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -u -n) BuildRequires: python-devel BuildRequires: parted-devel >= 3.1 BuildRequires: pkgconfig BuildRequires: e2fsprogs %ifnarch s390 s390x BuildRequires: python-coverage %endif %description Python module for the parted library. It is used for manipulating partition tables. %prep %setup -q %patch1 -p 1 %patch2 -p 1 %patch3 -p 1 %patch4 -p 1 %patch5 -p 1 %ifnarch s390 s390x %patch6 -p 1 %endif %patch7 -p 1 %patch8 -p 1 %patch9 -p 1 %patch10 -p 1 %patch11 -p 1 %patch12 -p 1 %build make %{?_smp_mflags} %check make test %install rm -rf %{buildroot} make install DESTDIR=%{buildroot} %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc AUTHORS BUGS COPYING ChangeLog NEWS README TODO %{python_sitearch}/_pedmodule.so %{python_sitearch}/parted %{python_sitearch}/%{name}-%{version}-*.egg-info %changelog * Tue Jun 23 2015 David Cantrell - 1:3.9-13 - Rebuild Resolves: rhbz#1188163 * Thu Jun 11 2015 Brian C. Lane - 1:3.9-12 - Backport support for register_exn_handler (#1188163) Related: rhbz#1188163 * Tue Aug 19 2014 David Cantrell - 1:3.9-11 - Fix invalid rpm changelog entries Related: rhbz#1125656 * Tue Aug 19 2014 David Cantrell - 1:3.9-10 - Add disklabel support for ppc64le systems Resolves: rhbz#1125656 * Tue Aug 19 2014 David Cantrell - 1:3.9-9 - Disable python-coverage tests on s390x Related: rhbz#1057626 - Fix python-coverage tests (some disabled that are not working) Resolves: rhbz#1057626 * Tue Feb 18 2014 David Cantrell - 1:3.9-8 - Enable running test suite through python-coverage Resolves: rhbz#1057626 * Thu Feb 06 2014 David Cantrell - 1:3.9-7 - Add disklabel support for aarch64 systems Resolves: rhbz#1060376 * Tue Jan 28 2014 Daniel Mach - 1:3.9-6 - Mass rebuild 2014-01-24 * Tue Jan 21 2014 David Cantrell - 1:3.9-5 - Run test suite from the %%check spec file section Resolves: rhbz#1025238 * Fri Dec 27 2013 Daniel Mach - 1:3.9-4 - Mass rebuild 2013-12-27 * Mon Jun 24 2013 Chris Lumens 3.9-3 - Fix a bunch of unicode-related tracebacks during installation. * Thu Feb 14 2013 Fedora Release Engineering - 3.9-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Wed Dec 05 2012 David Cantrell - 3.9-1 - Upgrade to pyparted-3.9 * Sat Jul 21 2012 Fedora Release Engineering - 3.8-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Tue Mar 13 2012 Brian C. Lane - 3.8-4 - Rebuild against parted 3.1 * Thu Feb 02 2012 Brian C. Lane - 3.8-3 - Add patch for new parted PED_DISK_GPT_PMBR_BOOT flag * Sat Jan 14 2012 Fedora Release Engineering - 3.8-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Wed Jun 29 2011 David Cantrell - 3.8-1 - Upgraded to pyparted-3.8 * Wed Jun 29 2011 David Cantrell - 3.7-2 - BR parted-devel >= 3.0 - Adjust for distutils build method * Wed Jun 29 2011 David Cantrell - 3.7-1 - Upgraded to pyparted-3.7 (compatibility with parted-3.0) * Wed Mar 23 2011 David Cantrell - 3.6-1 - Upgraded to pyparted-3.6 * Thu Mar 17 2011 David Cantrell - 3.5-3 - Add support for PED_PARTITION_LEGACY_BOOT partition flag now in libparted * Tue Feb 08 2011 Fedora Release Engineering - 3.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Mon Jan 17 2011 David Cantrell - 3.5-1 - Drop dependency on python-decorator module. (dcantrell) - Differentiate the "Could not commit" messages. (jgranado) - Import _ped.DiskLabelException into parted namespace (cjwatson) - Return PED_EXCEPTION_NO for yes/no interactive exceptions. (dcantrell) * Wed Jul 21 2010 David Malcolm - 3.4-3 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild * Fri May 21 2010 David Cantrell - 3.4-2 - Spec file cleanups to comply with current packaging policies * Thu Apr 29 2010 David Cantrell - 3.4-1 - Handle PED_EXCEPTION_WARNING with PED_EXCEPTION_YES_NO (#575749) (dcantrell) * Wed Apr 21 2010 Chris Lumens - 3.3-1 - Upgrade to pyparted-3.3 (#583628). * Wed Mar 31 2010 David Cantrell - 3.2-2 - Rebuild for libparted soname change * Thu Mar 25 2010 Chris Lumens - 3.2-1 - Upgrade to pyparted-3.2 (#571940). * Mon Mar 01 2010 David Cantrell - 3.1-1 - Upgrade to pyparted-3.1 (#567576). * Tue Jan 12 2010 David Cantrell - 3.0-1 - Upgrade to pyparted-3.0. * Mon Jan 11 2010 Hans de Goede - 2.5-4 - Rebuild for new parted-2.1 - Remove py_disk_clobber_exclude function binding, as this function was removed from parted-2.1 * Thu Jan 7 2010 Hans de Goede - 2.5-3 - Change python_sitearch macro to use %%global as the new rpm will break using %%define here, see: https://www.redhat.com/archives/fedora-devel-list/2010-January/msg00093.html * Sat Dec 19 2009 David Cantrell - 2.5-2 - Exclude pyparted-2.4.tar.gz from source RPM (oops) * Sat Dec 19 2009 David Cantrell - 2.5-1 - Update release instructions. (dcantrell) - Remove old cylinder alignment test cases for _ped. (dcantrell) - Add tests for max partition length / start sector (hdegoede) - Add _pedmodule and parted functions for max partition length / start sector (hdegoede) - Remove align_to_cylinders function bindings (hdegoede) - Add tests for disk flag methods (hdegoede) - Add _pedmodule and parted functions for per disk flags (hdegoede) - Every tuple member requires a comma after it. (dcantrell) - Fill out a lot of simple _ped.Disk test cases. (dcantrell) - Disable DeviceDestroyTestCase for now. (dcantrell) - Add RequiresLabeledDevice to tests/_ped/baseclass.py. (dcantrell) - Attempt at fixing _ped.Device.destroy(), no dice. (dcantrell) - Fix UnitFormatCustomTestCase and UnitFormatTestCase. (dcantrell) - Fix UnitFormatCustomByteTestCase and UnitFormatByteTestCase. (dcantrell) - Add DeviceStrTestCase, disable DeviceDestroyTestCase. (dcantrell) - Add DeviceDestroyTestCase and DeviceCacheRemoveTestCase. (dcantrell) - Implemented ConstraintIsSolutionTestCase(). (dcantrell) - Implement ConstraintSolveMaxTestCase(). (dcantrell) - Implement ConstraintSolveNearestTestCase(). (dcantrell) - Correct py_ped_file_system_probe_specific() for NULL returns. (dcantrell) - Implement FileSystemProbeSpecificTestCase(). (dcantrell) - Implement FileSystemProbeTestCase(). (dcantrell) - Add RequiresFileSystem to tests/_ped/baseclass.py. (dcantrell) - Add disk alignment test cases in test_ped.py. (dcantrell) - Fix CHSGeometryStrTestCase(). (dcantrell) - Fix ConstraintDuplicateTestCase...finally. (dcantrell) - Put a deprecation warning in py_ped_constraint_duplicate(). (dcantrell) - Note that we need parted from Fedora for pyparted. (dcantrell) - Fix UnitGetSizeTestCase in _ped test cases for _ped.UNIT_PERCENT. (dcantrell) - Add testcase for new _ped disk get_partition_alignment method (hdegoede) * Fri Nov 06 2009 David Cantrell - 2.4-1 - Upgrade to pyparted-2.4: Use PedDevice length instead of DIY (#532023) (hdegoede) Use sectorSize not physicalSectorSize for size calculations (hdegoede) * Tue Nov 03 2009 David Cantrell - 2.3-1 - Upgrade to pyparted-2.3: Remove root user requirement in _ped Add testcases for new _ped device methods Add python wrapper for new PedDisk partition alignment info function Add support for new PedDisk parition alignment info function Add python wrappers for new PedDevice alignment info functions Add support for new PedDevice alignment info functions Fix a whole pile of test cases. Remove ped_disk_commit_to_dev() call from py_ped_disk_new_fresh() Fix error in Constraint __str__ method Make _ped_Device2PedDevice properly set / throw exceptions Fixup various errorhandling issues in pydisk.c Add missing _ped_Device2PedDevice() retval checks Use libparted commit() for parted.disk.Disk.commit() (hdegoede). - BR parted-devel >= 1.9.0-20 * Fri Oct 02 2009 David Cantrell - 2.2-1 - Upgrade to pyparted-2.2: Fixes PedDisk2_ped_Disk() and avoids losing disk label data in the conversion process (#526999) * Mon Aug 17 2009 Chris Lumens - 2.1.2-1 - Upgrade to pyparted-2.1.2: PED_DEVICE_DM is always defined in libparted these days. Handle parted exceptions arising from ped_device_get (#495433). * Tue Aug 04 2009 David Cantrell - 2.1.1-1 - Upgrade to pyparted-2.1.1 * Sun Jul 26 2009 Fedora Release Engineering - 2.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Thu Jul 16 2009 David Cantrell - 2.1.0-1 - Upgrade to pyparted-2.1.0, requires parted-1.9.0-1 or higher * Fri Jul 10 2009 David Cantrell - 2.0.12-2 - Rebuild for new parted * Tue Apr 14 2009 David Cantrell - 2.0.12-1 - Upgrade to pyparted-2.0.12 * Mon Apr 13 2009 David Cantrell - 2.0.11-1 - Upgrade to pyparted-2.0.11 * Fri Apr 03 2009 David Cantrell - 2.0.10-1 - Upgrade to pyparted-2.0.10 Fix LVM problems around parted.Disk.commit() (#491746) * Mon Mar 23 2009 David Cantrell - 2.0.9-1 - Upgrade to pyparted-2.0.9 * Fri Mar 20 2009 David Cantrell - 2.0.8-1 - Upgrade to pyparted-2.0.8 * Thu Mar 19 2009 David Cantrell - 2.0.7-1 - Upgrade to pyparted-2.0.7 * Thu Mar 12 2009 David Cantrell - 2.0.6-1 - Upgrade to pyparted-2.0.6 * Thu Mar 05 2009 David Cantrell - 2.0.5-1 - Upgrade to pyparted-2.0.5 * Sat Feb 28 2009 David Cantrell - 2.0.4-1 - Upgrade to pyparted-2.0.4 * Fri Feb 27 2009 David Cantrell - 2.0.3-1 - Upgrade to pyparted-2.0.3 * Wed Feb 25 2009 David Cantrell - 2.0.2-1 - Upgrade to pyparted-2.0.2 * Mon Feb 16 2009 David Cantrell - 2.0.1-1 - Upgrade to pyparted-2.0.1 (#485632) * Thu Feb 12 2009 David Cantrell - 2.0.0-1 - Upgrade to pyparted-2.0.0 * Sat Nov 29 2008 Ignacio Vazquez-Abrams - 1.8.9-6 - Rebuild for Python 2.6 * Fri Feb 08 2008 David Cantrell - 1.8.9-5 - Rebuild for gcc-4.3 * Wed Jan 02 2008 David Cantrell - 1.8.9-4 - Rebuild * Mon Nov 19 2007 Jeremy Katz - 1.8.9-3 - Add support for exact constraints * Tue Aug 21 2007 David Cantrell - 1.8.9-2 - Rebuild * Fri Aug 10 2007 David Cantrell - 1.8.9-1 - Update license tag to indicate GPL v2 or later - Update URLs to point to new upstream location * Fri Jun 15 2007 David Cantrell - 1.8.8-1 - Clean up wording in package description (#226337) - BR pkgconfig (#226337) * Fri Jun 15 2007 David Cantrell - 1.8.7-1 - Merge review (#226337) * Mon Apr 23 2007 David Cantrell - 1.8.6-2 - Ensure build env CFLAGS are included (#226337) * Thu Apr 19 2007 David Cantrell - 1.8.6-1 - Merge review (#226337) * Tue Mar 20 2007 David Cantrell - 1.8.5-4 - Rebuild for GNU parted-1.8.6 * Tue Mar 20 2007 David Cantrell - 1.8.5-3 - Rebuild for GNU parted-1.8.5 * Mon Mar 19 2007 David Cantrell - 1.8.5-2 - Rebuild for GNU parted-1.8.4 * Thu Feb 08 2007 David Cantrell - 1.8.5-1 - Define and use python_sitearch rather than python_sitelib * Thu Feb 08 2007 David Cantrell - 1.8.4-1 - Use preferred BuildRoot (package review) - Define and use python_sitelib macro (package review) * Fri Jan 12 2007 David Cantrell - 1.8.3-1 - Required parted-1.8.2 or higher * Wed Jan 10 2007 Jeremy Katz - 1.8.2-1 - use PyObject_DEL instead of PyMem_DEL * Thu Dec 7 2006 Jeremy Katz - 1.8.1-3 - rebuild for python 2.5 * Tue Dec 05 2006 David Cantrell - 1.8.1-2 - Rebuild for GNU parted-1.8.1 * Thu Nov 30 2006 David Cantrell - 1.8.1-1 - Determine Python version to use in %%build so the source RPM is more easily moved between distribution releases. * Fri Nov 17 2006 David Cantrell - 1.8.0-1 - Bump version to 1.8.0 and require parted >= 1.8.0 - Remove python-abi Requires line since rpm handles that automatically * Wed Aug 30 2006 David Cantrell - 1.7.3-1 - Include parted/constraint.h in required header files * Wed Aug 30 2006 David Cantrell - 1.7.2-2 - Require parted-1.7.1 or higher * Tue Jul 25 2006 David Cantrell - 1.7.2-1 - Add HPSERVICE, PALO, PREP, and MSFT_RESERVED to partition types list * Wed Jul 12 2006 Jesse Keating - 1.7.1-1.1 - rebuild * Sun May 28 2006 David Cantrell - 1.7.1-1 - Bump version to 1.7.1 and require parted >= 1.7.1 * Fri May 19 2006 David Cantrell - 1.7.0-1 - Bump version to 1.7.0 and require parted >= 1.7.0 * Fri Dec 09 2005 Jesse Keating - rebuilt * Fri Nov 11 2005 Peter Jones - 1.6.10-1 - rebuild for new parted. - add debugging options for make so debuginfo isn't useless * Wed Nov 9 2005 Jeremy Katz - 1.6.9-5 - rebuild for new parted * Wed Aug 31 2005 Chris Lumens 1.6.9-4 - Rebuilt for new parted library. * Wed Mar 16 2005 Chris Lumens 1.6.9-3 - Updated for gcc4 and python2.4. Fixed build warnings. * Tue Dec 14 2004 Jeremy Katz - 1.6.9-2 - add support for sx8 devices * Mon Nov 8 2004 Jeremy Katz - 1.6.8-3 - rebuild for python 2.4 * Mon Oct 11 2004 Warren Togami - 1.6.8-2 - #135100 req python-abi (Robert Scheck) * Tue Aug 17 2004 Jeremy Katz - 1.6.8-1 - update for new parted ABI - device -> heads, sectors, cylinders now refer to the bios geometry - require parted >= 1.6.12 * Thu Jul 22 2004 Jeremy Katz - 1.6.7-3 - build on ppc64 again * Thu May 13 2004 Jeremy Katz - 1.6.7-1 - fix build for newer versions of gcc (fix from Jeff Law) * Tue Mar 16 2004 Jeremy Katz 1.6.6-2 - fix PARTITION_PROTECTED definition (#118451) * Fri Mar 12 2004 Jeremy Katz - Initial build split out into separate source from the parted package. - Don't build on ppc64 right now due to parted build problems (#118183)