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 <[email protected]>

---
 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

_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to