!1 Init package for version 2.0.45
From: @crrs666 Reviewed-by: @jxy_git Signed-off-by: @jxy_git
This commit is contained in:
commit
c8b98eea1c
47
ovirt-engine-nodejs-modules.spec
Normal file
47
ovirt-engine-nodejs-modules.spec
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
Name: ovirt-engine-nodejs-modules
|
||||||
|
Version: 2.0.45
|
||||||
|
Release: 1
|
||||||
|
Summary: Node.js modules required to build oVirt JavaScript applications
|
||||||
|
Group: Virtualization/Management
|
||||||
|
License: Multiple
|
||||||
|
URL: http://ovirt.org
|
||||||
|
Source0: yarn-offline-cache.tar
|
||||||
|
Source1: sources.tar
|
||||||
|
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
BuildRequires: nodejs
|
||||||
|
Requires: nodejs
|
||||||
|
|
||||||
|
%description
|
||||||
|
Node.js modules required to build oVirt JavaScript applications.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
tar -xf %{SOURCE1}
|
||||||
|
|
||||||
|
%install
|
||||||
|
%define dest %{buildroot}%{_datadir}/%{name}
|
||||||
|
|
||||||
|
# Create the destination directory in build root:
|
||||||
|
install -d -m 755 %{dest}/bin
|
||||||
|
|
||||||
|
# Extract the offline cache tarball:
|
||||||
|
tar -xf %{SOURCE0} -C %{dest}
|
||||||
|
|
||||||
|
# Copy additional (non license, non doc) files to build root:
|
||||||
|
sed 's/@NVR@/%{name}-%{version}-%{release}/' setup-env.sh.in > setup-env.sh
|
||||||
|
install -m 755 setup-env.sh %{dest}
|
||||||
|
install -m 644 projects_files.tar %{dest}
|
||||||
|
|
||||||
|
# install yarn-X.Y.Z.js in bin/ as normal executable
|
||||||
|
install -m 755 yarn-1.22.0.js %{dest}/bin/yarn
|
||||||
|
|
||||||
|
%files
|
||||||
|
%license LICENSES
|
||||||
|
%license LICENSE-yarn
|
||||||
|
%{_datadir}/%{name}
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Mon Jul 05 2021 wangdi <wangdi@kylinos.cn> - 2.0.45-1
|
||||||
|
- Init package
|
||||||
|
|
||||||
BIN
sources.tar
Normal file
BIN
sources.tar
Normal file
Binary file not shown.
BIN
yarn-offline-cache.tar
Normal file
BIN
yarn-offline-cache.tar
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user