etmem: Fix build problems

Add missing Requires
Remove write permssion in %file section after strip
Change Requires numactl to numactl-libs

Signed-off-by: Kemeng Shi <shikemeng@huawei.com>
This commit is contained in:
Kemeng Shi 2021-10-19 18:58:25 +08:00
parent eefb9f90eb
commit e27417f540

View File

@ -2,7 +2,7 @@
Name: etmem
Version: 1.0
Release: 7
Release: 8
Summary: etmem
License: Mulan PSL v2
Source0: etmem-%{version}.tar.gz
@ -59,9 +59,10 @@ Patch48: 0049-Add-engine-memdcd-to-etmemd.patch
Patch49: 0050-Add-CMakeLists.txt-for-three-features-of-etmem.patch
#Dependency
BuildRequires: cmake gcc gcc-c++
BuildRequires: cmake gcc gcc-c++ glib2-devel
BuildRequires: libboundscheck numactl-devel libcap-devel json-c-devel
Requires: libboundscheck json-c libcap numactl
Requires: libboundscheck json-c libcap numactl-libs
Requires: glib2
%description
etmem module
@ -82,28 +83,33 @@ mkdir -p $RPM_BUILD_ROOT%{_libdir}
mkdir -p $RPM_BUILD_ROOT%{_includedir}
install -d $RPM_BUILD_ROOT%{_sysconfdir}/etmem/
install -m 0500 etmem/build/bin/etmem $RPM_BUILD_ROOT%{_bindir}
install -m 0500 etmem/build/bin/etmemd $RPM_BUILD_ROOT%{_bindir}
install -m 0700 etmem/build/bin/etmem $RPM_BUILD_ROOT%{_bindir}
install -m 0700 etmem/build/bin/etmemd $RPM_BUILD_ROOT%{_bindir}
install -m 0600 etmem/conf/example_conf.yaml $RPM_BUILD_ROOT%{_sysconfdir}/etmem/
install -m 0550 build/memRouter/memdcd $RPM_BUILD_ROOT%{_bindir}
install -m 0550 build/userswap/libuswap.a $RPM_BUILD_ROOT%{_libdir}
install -m 0750 build/memRouter/memdcd $RPM_BUILD_ROOT%{_bindir}
install -m 0750 build/userswap/libuswap.a $RPM_BUILD_ROOT%{_libdir}
install -m 0644 userswap/include/uswap_api.h $RPM_BUILD_ROOT%{_includedir}
%files
%defattr(-,root,root,0750)
%{_bindir}/etmem
%{_bindir}/etmemd
%attr(0500, -, -) %{_bindir}/etmem
%attr(0500, -, -) %{_bindir}/etmemd
%dir %{_sysconfdir}/etmem
%{_sysconfdir}/etmem/example_conf.yaml
%{_bindir}/memdcd
%{_libdir}/libuswap.a
%attr(0550, -, -) %{_bindir}/memdcd
%attr(0550, -, -) %{_libdir}/libuswap.a
%{_includedir}/uswap_api.h
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%changelog
* Thu Oct 30 2021 yangxin <245051644@qq.com> 1.0-7
* Thu Oct 20 2021 shikemeng <shikemeng@huawei.com> 1.0-8
- Add missing Requires
- Remove write permssion in %file after strip
- Change Requires numactl to numactl-libs
* Thu Sep 30 2021 yangxin <245051644@qq.com> 1.0-7
- Update etmem and add new features memRouter and userswap.=
* Mon Aug 1 2021 louhongxiang <louhongxiang@huawei.com> 1.0-6