fix tarball directory name

This commit is contained in:
Michal Schmidt 2023-02-02 17:15:56 +01:00
parent 52b36c25ad
commit 0c122819fe

View File

@ -2,6 +2,8 @@ Name: perftest
Summary: IB Performance Tests Summary: IB Performance Tests
# Upstream uses a dash in the version. Not valid in the Version field, so we use a dot instead. # Upstream uses a dash in the version. Not valid in the Version field, so we use a dot instead.
%global upstream_ver 4.5-0.20 %global upstream_ver 4.5-0.20
# The directory in the tarball has only the part before the dash.
%global tarball_ver 4.5
Version: 4.5.0.20 Version: 4.5.0.20
Release: %autorelease Release: %autorelease
License: GPLv2 or BSD License: GPLv2 or BSD
@ -24,7 +26,7 @@ connections. It does not work on normal TCP/IP networks, only on
RDMA networks. RDMA networks.
%prep %prep
%setup -q %setup -q -n %{name}-%{tarball_ver}
find src -type f -iname '*.[ch]' -exec chmod a-x '{}' ';' find src -type f -iname '*.[ch]' -exec chmod a-x '{}' ';'
%build %build