!174 [sync] PR-172: [Cherry pick] sync master

From: @openeuler-sync-bot 
Reviewed-by: @hellotcc 
Signed-off-by: @hellotcc
This commit is contained in:
openeuler-ci-bot 2024-11-15 02:58:31 +00:00 committed by Gitee
commit cb1fee4bd4
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,8 +1,8 @@
Name: rdma-core
Version: 50.0
Release: 13
Release: 14
Summary: RDMA core userspace libraries and daemons
License: GPLv2 or BSD
License: GPL-2.0-only OR BSD-2-Clause AND BSD-3-Clause
Url: https://github.com/linux-rdma/rdma-core
Source: https://github.com/linux-rdma/rdma-core/releases/download/v%{version}/%{name}-%{version}.tar.gz
@ -255,7 +255,6 @@ Obsoletes: infiniband-diags-help < %{version}-%{release}
Man pages and other related documents for %{name}.
%prep
%setup
%autosetup -v -p1
%build
@ -317,12 +316,6 @@ install -D -m 0644 ibacm_opts.cfg %{buildroot}%{_sysconfdir}/rdma/
rm -rf %{buildroot}/%{_initrddir}/
rm -f %{buildroot}/%{_sbindir}/srp_daemon.sh
%ldconfig_scriptlets -n libibverbs
%ldconfig_scriptlets -n libibumad
%ldconfig_scriptlets -n librdmacm
%post
if [ -x /sbin/udevadm ];then
/sbin/udevadm trigger --subsystem-match=infiniband --action=change || true
@ -628,6 +621,13 @@ fi
%doc %{_docdir}/%{name}-%{version}/70-persistent-ipoib.rules
%changelog
* Fri Nov 08 2024 Funda Wang <fundawang@yeah.net> - 50.0-14
- adopt to new cmake macro
- migrated to SPDX license
- drop useless setup macro, cause it duplicates with autosetup
- drop useless ldconfig_scriptlets, it has been done through glibc's
filetriggers since openeuler 1.0
* Sat Aug 31 2024 Li Fuyan <li.fuyan@zte.com.cn> - 50.0-13
- Type: requirement
- ID: NA