Skip to content

Commit bfb3921

Browse files
lowintelligencesjeaugey
authored andcommitted
Refine RPM package building spec file.
Add /sbin/ldconfig into RPM package install operations.
1 parent 4d579e5 commit bfb3921

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pkg/redhat/nccl.spec.in

+7
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Group: Development/Libraries
77
License: BSD
88
URL: http://developer.nvidia.com/nccl
99
Source0: nccl_${nccl:Major}.${nccl:Minor}.${nccl:Patch}${nccl:Suffix}-${pkg:Revision}+cuda${cuda:Major}.${cuda:Minor}_${pkg:Arch}.txz
10+
Prereq: /sbin/ldconfig
1011

1112
%description
1213
NCCL (pronounced "Nickel") is a stand-alone library of standard collective
@@ -50,6 +51,12 @@ ln -s libnccl.so.${nccl:Major} $RPM_BUILD_ROOT/%{_libdir}/libnccl.so
5051
# static
5152
install -m 644 lib/libnccl_static.a $RPM_BUILD_ROOT/%{_libdir}
5253

54+
%post -p /sbin/ldconfig
55+
%postun -p /sbin/ldconfig
56+
57+
%post devel -p /sbin/ldconfig
58+
%postun devel -p /sbin/ldconfig
59+
5360
%clean
5461
rm -rf $RPM_BUILD_ROOT
5562

0 commit comments

Comments
 (0)