[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1558339780-8314-1-git-send-email-tariqt@mellanox.com>
Date: Mon, 20 May 2019 11:09:40 +0300
From: Tariq Toukan <tariqt@...lanox.com>
To: "John W. Linville" <linville@...driver.com>
Cc: netdev@...r.kernel.org, Mikhael Goikhman <migo@...lanox.com>,
Tzafrir Cohen <tzafrirc@...lanox.com>,
Tariq Toukan <tariqt@...lanox.com>
Subject: [PATCH ethtool] ethtool.spec: Use standard file location macros
From: Mikhael Goikhman <migo@...lanox.com>
Use _prefix and _sbindir macros to allow building the package under a
different prefix.
Signed-off-by: Mikhael Goikhman <migo@...lanox.com>
Signed-off-by: Tzafrir Cohen <tzafrirc@...lanox.com>
Signed-off-by: Tariq Toukan <tariqt@...lanox.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
Powered by blists - more mailing lists