python-parted/python-parted.spec

Thu, 26 May 2011 15:49:15 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 26 May 2011 15:49:15 +0200
changeset 14
bc3cd9a53ab5
child 15
5ae423a55bed
permissions
-rw-r--r--

Import package vendor original specs for necessary manipulations.

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

mercurial