[iproute] Simplify the spec a bit thanks to the UsrMove feature
Petr Šabata
psabata at fedoraproject.org
Fri Jan 27 13:54:13 UTC 2012
commit d05c6a429bff0ba602110de7430a7164e6c55675
Author: Petr Šabata <contyk at redhat.com>
Date: Fri Jan 27 14:51:00 2012 +0100
Simplify the spec a bit thanks to the UsrMove feature
iproute.spec | 21 ++++++++-------------
1 files changed, 8 insertions(+), 13 deletions(-)
---
diff --git a/iproute.spec b/iproute.spec
index fcf62ab..4472f53 100644
--- a/iproute.spec
+++ b/iproute.spec
@@ -2,7 +2,7 @@
Summary: Advanced IP routing and network device configuration tools
Name: iproute
Version: 3.2.0
-Release: 1%{?dist}
+Release: 2%{?dist}
Group: Applications/System
URL: http://kernel.org/pub/linux/utils/networking/%{name}2/
Source0: http://kernel.org/pub/linux/utils/networking/%{name}2/%{name}2-%{version}.tar.bz2
@@ -73,7 +73,6 @@ make -C doc
%install
mkdir -p \
- %{buildroot}/sbin \
%{buildroot}%{_includedir} \
%{buildroot}%{_sbindir} \
%{buildroot}%{_mandir}/man3 \
@@ -83,30 +82,24 @@ mkdir -p \
%{buildroot}%{_sysconfdir}/iproute2 \
%{buildroot}%{_sysconfdir}/sysconfig/cbq
-# /sbin
for binary in \
examples/cbq.init-%{cbq_version} \
+ genl/genl \
ip/ifcfg \
ip/ip \
ip/routef \
ip/routel \
ip/rtpr \
- tc/tc
- do install -m755 ${binary} %{buildroot}/sbin
-done
-mv %{buildroot}/sbin/cbq.init-%{cbq_version} %{buildroot}/sbin/cbq
-
-# /usr/sbin
-for binary in \
- genl/genl \
misc/arpd \
misc/ifstat \
misc/lnstat \
misc/nstat \
misc/rtacct \
- misc/ss
+ misc/ss \
+ tc/tc
do install -m755 ${binary} %{buildroot}%{_sbindir}
done
+mv %{buildroot}%{_sbindir}/cbq.init-%{cbq_version} %{buildroot}%{_sbindir}/cbq
cd %{buildroot}%{_sbindir}
ln -s lnstat ctstat
ln -s lnstat rtstat
@@ -157,7 +150,6 @@ done
%dir %{_sysconfdir}/iproute2
%doc COPYING
%doc README README.decnet README.iproute2+tc README.distribution README.lnstat
-/sbin/*
%{_mandir}/man8/*
%attr(644,root,root) %config(noreplace) %{_sysconfdir}/iproute2/*
%{_sbindir}/*
@@ -180,6 +172,9 @@ done
%{_includedir}/libnetlink.h
%changelog
+* Fri Jan 27 2012 Petr Šabata <contyk at redhat.com> - 3.2.0-2
+- Simplify the spec a bit thanks to the UsrMove feature
+
* Fri Jan 06 2012 Petr Šabata <contyk at redhat.com> - 3.2.0-1
- 3.2.0 bump
- Removing a useless, now conflicting patch (initcwnd already decumented)
More information about the scm-commits
mailing list