etmem/etmem.spec

66 lines
1.5 KiB
RPMSpec
Raw Normal View History

2021-03-18 12:02:33 +08:00
%global debug_package %{nil}
Name: etmem
Version: 1.0
Release: 6
2021-03-18 12:02:33 +08:00
Summary: etmem
License: Mulan PSL v2
Source0: etmem-%{version}.tar.gz
2021-03-18 15:25:39 +08:00
Patch0: 0001-fix-64K-pagesize-scan-problem.patch
2021-03-20 18:24:45 +08:00
Patch1: 0002-change-aarch64-march-to-armv8-a.patch
2021-03-18 12:02:33 +08:00
#Dependency
BuildRequires: cmake gcc gcc-c++
2021-03-18 12:02:33 +08:00
BuildRequires: libboundscheck
Requires: libboundscheck
%description
etmem module
#Build sections
%prep
%autosetup -n etmem-%{version} -p1
%build
mkdir -p build
cd build
cmake ..
make
%install
mkdir -p $RPM_BUILD_ROOT%{_bindir}
install -d $RPM_BUILD_ROOT%{_sysconfdir}/etmem/
install -m 0500 build/bin/etmem $RPM_BUILD_ROOT%{_bindir}
install -m 0500 build/bin/etmemd $RPM_BUILD_ROOT%{_bindir}
2021-03-18 12:02:33 +08:00
install -m 0600 conf/example_conf.yaml $RPM_BUILD_ROOT%{_sysconfdir}/etmem/
%files
%defattr(-,root,root,0750)
%{_bindir}/etmem
%{_bindir}/etmemd
%dir %{_sysconfdir}/etmem
%{_sysconfdir}/etmem/example_conf.yaml
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%changelog
* Mon Aug 1 2021 louhongxiang <louhongxiang@huawei.com> 1.0-6
- cancel write permission of root.
* Mon May 24 2021 liubo <liubo254@huawei.com> 1.0-5
- add missing BuildRequires in etmem spec
2021-04-02 17:09:28 +08:00
* Fri Apr 2 2021 louhongxiang <louhongxiang@huawei.com> 1.0-4
- modify README correctly
2021-03-20 18:24:45 +08:00
* Sat Mar 30 2021 liubo <liubo254@huawei.com> 1.0-3
- Change aarch64 march to armv8-a
2021-03-18 15:25:39 +08:00
* Thu Mar 18 2021 liubo <liubo254@huawei.com> 1.0-2
- Fix 64K pagesize scan problem
2021-03-18 12:02:33 +08:00
* Thu Mar 18 2021 louhongxiang <louhongxiang@huawei.com>
- Package init