minor specfile cleanups: prefer %buildroot, add a couple line breaks

This commit is contained in:
Jeff Garzik 2009-07-17 00:45:58 +00:00
parent 6373c0cad5
commit 4dc2c75890

View File

@ -1,10 +1,12 @@
Summary: Ethernet settings tool for PCI ethernet cards
Name: ethtool
Version: 6
Release: 4.20090306git%{?dist}
Release: 5.20090306git%{?dist}
Summary: Ethernet settings tool for PCI ethernet cards
License: GPLv2
Group: Applications/System
URL: http://sourceforge.net/projects/gkernel/
# When using tarball from released upstream version:
# - http://downloads.sourceforge.net/gkernel/%{name}-%{version}.tar.gz
#
@ -39,15 +41,15 @@ autoconf
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' install
rm -rf %{buildroot}
make DESTDIR=%{buildroot} INSTALL='install -p' install
# Some legacy support for scripts etc. out there
mkdir -p $RPM_BUILD_ROOT%{_sbindir}
ln -sf ../../sbin/%{name} $RPM_BUILD_ROOT%{_sbindir}/%{name}
mkdir -p %{buildroot}%{_sbindir}
ln -sf ../../sbin/%{name} %{buildroot}%{_sbindir}/%{name}
%clean
rm -rf $RPM_BUILD_ROOT
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
@ -57,6 +59,9 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man8/%{name}.8*
%changelog
* Thu Jul 16 2009 Jeff Garzik <jgarzik@redhat.com> 6-5.20090306git
- minor specfile cleanups
* Sat Mar 07 2009 Robert Scheck <robert@fedoraproject.org> 6-4.20090306git
- Upgrade to GIT 20090306