add package
This commit is contained in:
parent
a15f9e2018
commit
f1aa709c28
BIN
aops-hermes-v1.0.0.tar.gz
Normal file
BIN
aops-hermes-v1.0.0.tar.gz
Normal file
Binary file not shown.
47
aops-hermes.spec
Normal file
47
aops-hermes.spec
Normal 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) %{_unitdir}/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
BIN
node-modules.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user