We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d579e5 commit bfb3921Copy full SHA for bfb3921
pkg/redhat/nccl.spec.in
@@ -7,6 +7,7 @@ Group: Development/Libraries
7
License: BSD
8
URL: http://developer.nvidia.com/nccl
9
Source0: nccl_${nccl:Major}.${nccl:Minor}.${nccl:Patch}${nccl:Suffix}-${pkg:Revision}+cuda${cuda:Major}.${cuda:Minor}_${pkg:Arch}.txz
10
+Prereq: /sbin/ldconfig
11
12
%description
13
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
50
51
# static
52
install -m 644 lib/libnccl_static.a $RPM_BUILD_ROOT/%{_libdir}
53
54
+%post -p /sbin/ldconfig
55
+%postun -p /sbin/ldconfig
56
+
57
+%post devel -p /sbin/ldconfig
58
+%postun devel -p /sbin/ldconfig
59
60
%clean
61
rm -rf $RPM_BUILD_ROOT
62
0 commit comments