!3 [sync] PR-1: add spec and package
From: @openeuler-sync-bot Reviewed-by: @Lostwayzxc Signed-off-by: @Lostwayzxc
This commit is contained in:
commit
42feb74849
BIN
oeAware-manager-v1.0.0.tar.gz
Normal file
BIN
oeAware-manager-v1.0.0.tar.gz
Normal file
Binary file not shown.
46
oeAware-manager.spec
Normal file
46
oeAware-manager.spec
Normal file
@ -0,0 +1,46 @@
|
||||
Name: oeAware-manager
|
||||
Version: v1.0.0
|
||||
Release: 1
|
||||
Summary: OeAware server and client
|
||||
License: MulanPSL2
|
||||
URL: https://gitee.com/openeuler/%{name}
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
|
||||
BuildRequires: cmake make gcc-c++
|
||||
BuildRequires: boost-devel
|
||||
BuildRequires: curl-devel
|
||||
BuildRequires: log4cplus-devel
|
||||
BuildRequires: yaml-cpp-devel
|
||||
BuildRequires: gtest-devel gmock-devel
|
||||
|
||||
Requires: oeAware-collector
|
||||
Requires: oeAware-scenario
|
||||
|
||||
%description
|
||||
%{name} provides server and client to manager plugins.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{name}-%{version} -p1
|
||||
|
||||
%build
|
||||
mkdir build
|
||||
cd build
|
||||
cmake ..
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
install -D -m 0770 build/src/plugin_mgr/oeAware %{buildroot}%{_bindir}/oeaware
|
||||
install -D -m 0770 build/src/client/oeawarectl %{buildroot}%{_bindir}/oeawarectl
|
||||
install -D -m 0640 config.yaml %{buildroot}%{_sysconfdir}/oeAware/config.yaml
|
||||
install -D -p -m 0644 oeAware.service %{buildroot}%{_unitdir}/oeAware.service
|
||||
|
||||
%files
|
||||
%attr(0770, root, root) %{_bindir}/oeaware
|
||||
%attr(0770, root, root) %{_bindir}/oeawarectl
|
||||
%attr(0640, root, root) %{_sysconfdir}/oeAware/config.yaml
|
||||
%attr(0644, root, root) %{_unitdir}/oeAware.service
|
||||
|
||||
%changelog
|
||||
* Thu Apr 18 2024 fly_1997 <flylove7@outlook.com> -v1.0.0-1
|
||||
- Package init
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user