!1 add package aops-hermes,version1.0.0

From: @rabbitali 
Reviewed-by: @zhu-yuncheng 
Signed-off-by: @zhu-yuncheng
This commit is contained in:
openeuler-ci-bot 2022-11-22 14:14:07 +00:00 committed by Gitee
commit c798f2998c
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 47 additions and 0 deletions

BIN
aops-hermes-v1.0.0.tar.gz Normal file

Binary file not shown.

47
aops-hermes.spec Normal file
View File

@ -0,0 +1,47 @@
%define debug_package %{nil}
Name: aops-hermes
Version: v1.0.0
Release: 1
Summary: Web for an intelligent diagnose frame
License: MulanPSL2
URL: https://gitee.com/openeuler/%{name}
Source0: %{name}-%{version}.tar.gz
Source1: node-modules.tar.gz
BuildRequires: nodejs node-gyp nodejs-yarn
Requires: nginx
%description
Web for an intelligent diagnose frame
%prep
%autosetup -n %{name}-%{version}
%setup -T -D -a 1
%build
yarn build
%install
mkdir -p %{buildroot}/opt/aops/web
cp -r dist %{buildroot}/opt/aops/web/
mkdir -p %{buildroot}/%{_sysconfdir}/nginx
cp -r deploy/aops-nginx.conf %{buildroot}/%{_sysconfdir}/nginx/
mkdir -p %{buildroot}/usr/lib/systemd/system
cp -r deploy/aops-hermes.service %{buildroot}/usr/lib/systemd/system/
%files
%attr(0755, root, root) /opt/aops/web/dist/*
%attr(0755, root, root) %{_sysconfdir}/nginx/aops-nginx.conf
%attr(0755, root, root) /usr/lib/systemd/system/aops-hermes.service
%changelog
* Tue Nov 22 2022 zhuyuncheng<zhuyuncheng@huawei.com> - v1.0.0-1
- Package init

BIN
node-modules.tar.gz Normal file

Binary file not shown.