From 48bc5ccea054ce84925f4692c95ffb87638ad48d Mon Sep 17 00:00:00 2001 From: zhaoyuxing Date: Mon, 19 Jul 2021 21:54:57 +0800 Subject: [PATCH] test --- A-Ops.spec | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 A-Ops.spec diff --git a/A-Ops.spec b/A-Ops.spec new file mode 100644 index 0000000..ae82686 --- /dev/null +++ b/A-Ops.spec @@ -0,0 +1,65 @@ +# Copyright (c) Huawei Technologies Co., Ltd. 2014-2019. All rights reserved. +# Description: spec file for package A-ops + +%global debug_package %{nil} +Summary: Intelligent ops toolkit for openEuler +Name: A-Ops +Version: 1.0.0 +Release: 1 +License: Mulan PSL v2 +URL: https://gitee.com/openeuler/A-Ops +Source: https://gitee.com/src-openeuler/A-Ops/repository/archive/v%{version}.tar.gz +BuildRoot: %{_builddir}/%{name}-%{version} +BuildRequires: cmake +BuildRequires: gcc-c++ +BuildRequires: elfutils-devel +BuildRequires: clang >= 10.0.1 +BuildRequires: llvm +BuildRequires: libconfig-devel librdkafka-devel libmicrohttpd-devel +Requires: bash glibc elfutils zlib +Requires: iproute +Requires: kernel >= 4.18.0-147.5.1.6 +Requires: elfutils-devel + +%description +A-ops is the intelligent ops toolkit for openEuler + +%prep +%setup -q + +%build +sh gala-gopher/build.sh + +%install +install -d %{buildroot}/opt/gala-gopher +install -d %{buildroot}%{_bindir} +sh gala-gopher/install.sh %{buildroot}%{_bindir} %{buildroot}/opt/gala-gopher + +%pre + +%post + +%preun + +%postun + +#%clean + +%files +%defattr(-,root,root) +%dir /opt/gala-gopher +%dir /opt/gala-gopher/extend_probes +%dir /opt/gala-gopher/meta +%{_bindir}/* +%config(noreplace) /opt/gala-gopher/gala-gopher.conf +/opt/gala-gopher/extend_probes/* +/opt/gala-gopher/meta/* +%exclude /opt/gala-gopher/extend_probes/__pycache__/* +%exclude /opt/gala-gopher/extend_probes/__pycache__ + +%changelog +* Fri Oct 16 2021 zhaoyuxing - 1.0.0-1 +- Type:requirement +- ID:NA +- SUG:NA +- DESC: init A-Ops \ No newline at end of file -- Gitee