Thu, 26 May 2011 15:49:15 +0200
Import package vendor original specs for necessary manipulations.
michael@14 | 1 | %define modname pyparted |
michael@14 | 2 | Name: python-parted |
michael@14 | 3 | %if %suse_version > 1020 |
michael@14 | 4 | Version: 1.8.9 |
michael@14 | 5 | %else |
michael@14 | 6 | Version: 1.7.3 |
michael@14 | 7 | %endif |
michael@14 | 8 | Release: 10.1 |
michael@14 | 9 | Summary: Python Module for GNU Parted |
michael@14 | 10 | URL: http://people.redhat.com/dcantrel/pyparted |
michael@14 | 11 | License: GNU General Public License (GPL) |
michael@14 | 12 | Group: Development/Libraries/Python |
michael@14 | 13 | Source: %{modname}-%{version}.tar.bz2 |
michael@14 | 14 | BuildRoot: %{_tmppath}/%{name}-buildroot |
michael@14 | 15 | %{py_requires} |
michael@14 | 16 | BuildRequires: e2fsprogs-devel parted-devel python-devel |
michael@14 | 17 | %if %suse_version > 1000 |
michael@14 | 18 | BuildRequires: pkg-config |
michael@14 | 19 | %else |
michael@14 | 20 | BuildRequires: pkgconfig |
michael@14 | 21 | %endif |
michael@14 | 22 | |
michael@14 | 23 | %description |
michael@14 | 24 | Python interface to GNU parted. |
michael@14 | 25 | |
michael@14 | 26 | GNU Parted is a program for creating, destroying, resizing, checking, |
michael@14 | 27 | and copying partitions, and the file systems on them. |
michael@14 | 28 | |
michael@14 | 29 | Authors: |
michael@14 | 30 | -------- |
michael@14 | 31 | David Cantrell <dcantrell@redhat.com> |
michael@14 | 32 | Matt Wilson <msw@redhat.com> |
michael@14 | 33 | Jeremy Katz <katzj@redhat.com> |
michael@14 | 34 | Peter Jones <pjones@redhat.com> |
michael@14 | 35 | Chris Lumens <clumens@redhat.com> |
michael@14 | 36 | |
michael@14 | 37 | %prep |
michael@14 | 38 | %setup -q -n %{modname}-%{version} |
michael@14 | 39 | |
michael@14 | 40 | %build |
michael@14 | 41 | export CFLAGS="$RPM_OPT_FLAGS" |
michael@14 | 42 | %if %suse_version < 1030 |
michael@14 | 43 | %configure ||: |
michael@14 | 44 | cat config.log |
michael@14 | 45 | %endif |
michael@14 | 46 | make |
michael@14 | 47 | |
michael@14 | 48 | %install |
michael@14 | 49 | %makeinstall |
michael@14 | 50 | |
michael@14 | 51 | %clean |
michael@14 | 52 | rm -rf %{buildroot} |
michael@14 | 53 | |
michael@14 | 54 | %files |
michael@14 | 55 | %defattr(-,root,root) |
michael@14 | 56 | %doc README COPYING AUTHORS ChangeLog |
michael@14 | 57 | %{py_sitedir}/partedmodule.so |
michael@14 | 58 | |
michael@14 | 59 | %changelog |
michael@14 | 60 | |
michael@14 | 61 | * Wed Jun 25 2008 - James Oakley <jfunk@funktronics.ca> - 1.8.9-1 |
michael@14 | 62 | - Update to 1.8.9 |
michael@14 | 63 | |
michael@14 | 64 | * Thu May 31 2007 - James Oakley <jfunk@funktronics.ca> - 1.8.6-1 |
michael@14 | 65 | - Initial release |