diff options
| author | 张智皓 <[email protected]> | 2023-08-04 03:18:22 +0000 |
|---|---|---|
| committer | 张智皓 <[email protected]> | 2023-08-04 03:18:22 +0000 |
| commit | ef06d0d83b04edc91943e30ea5c51b16c84bef16 (patch) | |
| tree | a1c1d348a8829ca38cc18508d3c3846b13897bc1 | |
| parent | 5fb7451dff0c90d485f05b7fb3129bc7164f341a (diff) | |
上传新文件
| -rw-r--r-- | userlib/libsiw.spec.in | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/userlib/libsiw.spec.in b/userlib/libsiw.spec.in new file mode 100644 index 0000000..bf1501e --- /dev/null +++ b/userlib/libsiw.spec.in @@ -0,0 +1,55 @@ +%define ver @VERSION@ + +Name: libsiw +Version: 0.9 +Release: 1%{?dist} +Summary: Software iWARP user Lib + +Group: System Environment/Libraries +License: GPL/BSD +Url: https://github.com/zrlio/softiwarp +Source: https://github.com/zrlio/softiwarp/tree/master/userlib +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: libibverbs-devel + +%description +libsiw provides a userspace driver for Linux Kernel SoftiWARP stack +for use with the libibverbs and librdmacm libraries. + +%package devel +Summary: Development files for the libsiw driver +Group: System Environment/Libraries +Requires: %{name} = %{version}-%{release} + +%description devel +Static version of libsiw that may be linked directly to an +application, which may be useful for debugging. + +%prep +%setup -q -n %{name}-%{ver} + +%build +%configure +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +%makeinstall +# remove unpackaged files from the buildroot +rm -f $RPM_BUILD_ROOT%{_libdir}/*.la + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%{_libdir}/libsiw*.so +%doc AUTHORS COPYING ChangeLog README +%config %{_sysconfdir}/libibverbs.d/libsiw.driver + +%files devel +%defattr(-,root,root,-) +%{_libdir}/libsiw*.a + +%changelog |
