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