Package python-module-parted: Specfile

%define _upstream pyparted
Name: python-module-parted
Version: 2.0.4
Release: alt1

Summary: Python bindings for libparted

Group: Development/Python
License: GPL
URL: https://fedorahosted.org/pyparted/
Packager: Eugene Ostapets <eostapets@altlinux.ru>
Source: %_upstream-%version.tar.gz
Patch: alt-pyparted-enable_devmapper.patch
Provides: %_upstream


# Automatically added by buildreq on Fri Feb 20 2009
BuildRequires: libparted-devel python-devel

%description
pyparted is a set of native Python bindings for libparted.  libparted is the
library portion of the GNU parted project.  With pyparted, you can write
applications that interact with disk partition tables and filesystems.

The Python bindings are implemented in two layers.  Since libparted itself
is written in C without any real implementation of objects, a simple 1:1
mapping of externally accessible libparted functions was written.  This
mapping is provided in the _ped Python module.  You can use that module if
you want to, but it's really just meant for the larger parted module.


%prep
%setup -n %_upstream-%version
%patch -p1

%build
%autoreconf
%configure
%make_build 

%install
%makeinstall_std

%files
%doc README NEWS TODO WHY
%python_sitelibdir/parted
%python_sitelibdir/*.so
%exclude %python_sitelibdir/*.la
%changelog
* Tue Mar 03 2009 Eugene Ostapets <eostapets@altlinux.ru> 2.0.4-alt1
- new version

* Thu Feb 26 2009 Eugene Ostapets <eostapets@altlinux.ru> 2.0.2-alt1
- new version 

* Fri Feb 20 2009 Eugene Ostapets <eostapets@altlinux.ru> 2.0.1-alt1
- First build for Sisyphus