ovirt-engine-nodejs-modules/ovirt-engine-nodejs-modules.spec
2022-04-01 17:13:21 +08:00

54 lines
1.3 KiB
RPMSpec

Name: ovirt-engine-nodejs-modules
Version: 2.0.53
Release: 2
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
* Fri Apr 1 2022 liqiuyu <liqiuyu@kylinos.cn> - 2.0.53-2
- add yaml
* Tue Sep 7 2021 liyanan <liyanan32@huawei.com> - 2.0.53-1
- update to 2.0.53
* Mon Jul 05 2021 wangdi <wangdi@kylinos.cn> - 2.0.45-1
- Init package