python-parted/python-parted.spec

changeset 14
bc3cd9a53ab5
child 15
5ae423a55bed
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/python-parted/python-parted.spec	Thu May 26 15:49:15 2011 +0200
     1.3 @@ -0,0 +1,65 @@
     1.4 +%define modname pyparted
     1.5 +Name:           python-parted
     1.6 +%if %suse_version > 1020
     1.7 +Version:        1.8.9
     1.8 +%else
     1.9 +Version:        1.7.3
    1.10 +%endif
    1.11 +Release:        10.1
    1.12 +Summary:        Python Module for GNU Parted
    1.13 +URL:            http://people.redhat.com/dcantrel/pyparted
    1.14 +License:        GNU General Public License (GPL)
    1.15 +Group:          Development/Libraries/Python
    1.16 +Source:         %{modname}-%{version}.tar.bz2
    1.17 +BuildRoot:      %{_tmppath}/%{name}-buildroot
    1.18 +%{py_requires}
    1.19 +BuildRequires:  e2fsprogs-devel parted-devel python-devel
    1.20 +%if %suse_version > 1000
    1.21 +BuildRequires:  pkg-config
    1.22 +%else
    1.23 +BuildRequires:  pkgconfig
    1.24 +%endif
    1.25 +
    1.26 +%description
    1.27 +Python interface to GNU parted.
    1.28 +
    1.29 +GNU Parted is a program for creating, destroying, resizing, checking,
    1.30 +and copying partitions, and the file systems on them.
    1.31 +
    1.32 +Authors:
    1.33 +--------
    1.34 +    David Cantrell <dcantrell@redhat.com>
    1.35 +    Matt Wilson <msw@redhat.com>
    1.36 +    Jeremy Katz <katzj@redhat.com>
    1.37 +    Peter Jones <pjones@redhat.com>
    1.38 +    Chris Lumens <clumens@redhat.com>
    1.39 +
    1.40 +%prep
    1.41 +%setup -q -n %{modname}-%{version}
    1.42 +
    1.43 +%build
    1.44 +export CFLAGS="$RPM_OPT_FLAGS"
    1.45 +%if %suse_version < 1030
    1.46 +%configure ||:
    1.47 +cat config.log
    1.48 +%endif
    1.49 +make
    1.50 +
    1.51 +%install
    1.52 +%makeinstall
    1.53 +
    1.54 +%clean
    1.55 +rm -rf %{buildroot}
    1.56 +
    1.57 +%files
    1.58 +%defattr(-,root,root)
    1.59 +%doc README COPYING AUTHORS ChangeLog
    1.60 +%{py_sitedir}/partedmodule.so
    1.61 +
    1.62 +%changelog
    1.63 +
    1.64 +* Wed Jun 25 2008 - James Oakley <jfunk@funktronics.ca> - 1.8.9-1
    1.65 +- Update to 1.8.9
    1.66 +
    1.67 +* Thu May 31 2007 - James Oakley <jfunk@funktronics.ca> - 1.8.6-1
    1.68 +- Initial release

mercurial