michael@14: %define modname pyparted michael@14: Name: python-parted michael@14: %if %suse_version > 1020 michael@14: Version: 1.8.9 michael@14: %else michael@14: Version: 1.7.3 michael@14: %endif michael@14: Release: 10.1 michael@14: Summary: Python Module for GNU Parted michael@14: URL: http://people.redhat.com/dcantrel/pyparted michael@14: License: GNU General Public License (GPL) michael@14: Group: Development/Libraries/Python michael@14: Source: %{modname}-%{version}.tar.bz2 michael@14: BuildRoot: %{_tmppath}/%{name}-buildroot michael@14: %{py_requires} michael@14: BuildRequires: e2fsprogs-devel parted-devel python-devel michael@14: %if %suse_version > 1000 michael@14: BuildRequires: pkg-config michael@14: %else michael@14: BuildRequires: pkgconfig michael@14: %endif michael@14: michael@14: %description michael@14: Python interface to GNU parted. michael@14: michael@14: GNU Parted is a program for creating, destroying, resizing, checking, michael@14: and copying partitions, and the file systems on them. michael@14: michael@14: Authors: michael@14: -------- michael@14: David Cantrell michael@14: Matt Wilson michael@14: Jeremy Katz michael@14: Peter Jones michael@14: Chris Lumens michael@14: michael@14: %prep michael@14: %setup -q -n %{modname}-%{version} michael@14: michael@14: %build michael@14: export CFLAGS="$RPM_OPT_FLAGS" michael@14: %if %suse_version < 1030 michael@14: %configure ||: michael@14: cat config.log michael@14: %endif michael@14: make michael@14: michael@14: %install michael@14: %makeinstall michael@14: michael@14: %clean michael@14: rm -rf %{buildroot} michael@14: michael@14: %files michael@14: %defattr(-,root,root) michael@14: %doc README COPYING AUTHORS ChangeLog michael@14: %{py_sitedir}/partedmodule.so michael@14: michael@14: %changelog michael@14: michael@14: * Wed Jun 25 2008 - James Oakley - 1.8.9-1 michael@14: - Update to 1.8.9 michael@14: michael@14: * Thu May 31 2007 - James Oakley - 1.8.6-1 michael@14: - Initial release