From: Mikhael Goikhman <m...@mellanox.com> Use _prefix and _sbindir macros to allow building the package under a different prefix.
Signed-off-by: Mikhael Goikhman <m...@mellanox.com> Signed-off-by: Tzafrir Cohen <tzafr...@mellanox.com> Signed-off-by: Tariq Toukan <tar...@mellanox.com> --- ethtool.spec.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ethtool.spec.in b/ethtool.spec.in index 6e9e1f591240..9c01b07abf2b 100644 --- a/ethtool.spec.in +++ b/ethtool.spec.in @@ -22,7 +22,7 @@ network devices, especially Ethernet devices. %build -CFLAGS="${RPM_OPT_FLAGS}" ./configure --prefix=/usr --mandir=%{_mandir} +CFLAGS="${RPM_OPT_FLAGS}" ./configure --prefix=%{_prefix} --mandir=%{_mandir} make @@ -32,7 +32,7 @@ make install DESTDIR=${RPM_BUILD_ROOT} %files %defattr(-,root,root) -/usr/sbin/ethtool +%{_sbindir}/ethtool %{_mandir}/man8/ethtool.8* %doc AUTHORS COPYING NEWS README -- 1.8.3.1