- Spec file cleanups to comply with current packaging policies

This commit is contained in:
David Cantrell 2010-05-22 01:50:07 +00:00
parent 2a45fce1d7
commit 91d710adc2

View File

@ -3,14 +3,14 @@
Summary: Python module for GNU parted
Name: pyparted
Version: 3.4
Release: 1%{?dist}
Release: 2%{?dist}
License: GPLv2+
Group: System Environment/Libraries
URL: http://fedorahosted.org/pyparted
Source0: http://fedorahosted.org/releases/p/y/%{name}/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -u -n)
BuildRequires: python-devel
BuildRequires: parted-devel >= 2.1
BuildRequires: pkgconfig
@ -27,15 +27,15 @@ partition tables.
%build
%configure
%{__make} %{?_smp_mflags}
make %{?_smp_mflags}
%install
%{__rm} -rf %{buildroot}
%{__make} install DESTDIR=%{buildroot}
%{__rm} -rf %{buildroot}%{python_sitearch}/_pedmodule.la
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
rm -rf %{buildroot}%{python_sitearch}/_pedmodule.la
%clean
%{__rm} -rf %{buildroot}
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
@ -44,6 +44,9 @@ partition tables.
%{python_sitearch}/parted
%changelog
* Fri May 21 2010 David Cantrell <dcantrell@redhat.com> - 3.4-2
- Spec file cleanups to comply with current packaging policies
* Thu Apr 29 2010 David Cantrell <dcantrell@redhat.com> - 3.4-1
- Handle PED_EXCEPTION_WARNING with PED_EXCEPTION_YES_NO (#575749)
(dcantrell)