diff options
author | Cao Zongyan <zongyan.cao@alibaba-inc.com> | 2019-07-31 07:21:35 +0300 |
---|---|---|
committer | Sylvain Jeaugey <sjeaugey@nvidia.com> | 2019-07-31 20:36:22 +0300 |
commit | bfb39215199bf6b0cd29631441f0a345d5f1d869 (patch) | |
tree | 2f96af52df25c6648614cc4ba76e36938bf33d09 | |
parent | 4d579e51ccb4d332c0b13783cc979dd7f5cf05d3 (diff) |
Refine RPM package building spec file.
Add /sbin/ldconfig into RPM package install operations.
-rw-r--r-- | pkg/redhat/nccl.spec.in | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pkg/redhat/nccl.spec.in b/pkg/redhat/nccl.spec.in index f9d83a3..5fad346 100644 --- a/pkg/redhat/nccl.spec.in +++ b/pkg/redhat/nccl.spec.in @@ -7,6 +7,7 @@ Group: Development/Libraries License: BSD URL: http://developer.nvidia.com/nccl Source0: nccl_${nccl:Major}.${nccl:Minor}.${nccl:Patch}${nccl:Suffix}-${pkg:Revision}+cuda${cuda:Major}.${cuda:Minor}_${pkg:Arch}.txz +Prereq: /sbin/ldconfig %description 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 # static install -m 644 lib/libnccl_static.a $RPM_BUILD_ROOT/%{_libdir} +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%post devel -p /sbin/ldconfig +%postun devel -p /sbin/ldconfig + %clean rm -rf $RPM_BUILD_ROOT |