[ofa-general] [PATCH] libmlx4: use dynamic archive name when building an rpm

sebastien dugue sebastien.dugue at bull.net
Mon Aug 3 07:37:36 PDT 2009



  There is a discrepancy between the tar.gz source archive name and the library
version. rpmbuild then fails to find its source files.

  Fix this by dynamically setting the package version into the archive name .

Signed-off-by: Sebastien Dugue <sebastien.dugue at bull.net>

---
 libmlx4.spec.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libmlx4.spec.in b/libmlx4.spec.in
index 869032f..7c6c841 100644
--- a/libmlx4.spec.in
+++ b/libmlx4.spec.in
@@ -6,7 +6,7 @@ Summary: Mellanox ConnectX InfiniBand HCA Userspace Driver
 Group: System Environment/Libraries
 License: GPLv2 or BSD
 Url: http://openfabrics.org/
-Source: http://openfabrics.org/downloads/mlx4/libmlx4-1.0.tar.gz
+Source: http://openfabrics.org/downloads/mlx4/libmlx4-%{version}.tar.gz
 BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 
 BuildRequires: libibverbs-devel >= 1.1-0.1.rc2
-- 
1.6.0.4




More information about the general mailing list