ovirt-engine-nodejs-modules/ovirt-engine-nodejs-modules.spec

57 lines
1.4 KiB
RPMSpec
Raw Permalink Normal View History

2022-04-01 17:13:21 +08:00
Name: ovirt-engine-nodejs-modules
Version: 2.0.53
Release: 3
2022-04-01 17:13:21 +08:00
Summary: Node.js modules required to build oVirt JavaScript applications
Group: Virtualization/Management
License: Apache-2.0 and BSD
2022-04-01 17:13:21 +08:00
URL: http://ovirt.org
Source0: yarn-offline-cache.tar
Source1: sources.tar
BuildArch: noarch
2021-07-05 17:29:44 +08:00
BuildRequires: nodejs
2022-04-01 17:13:21 +08:00
Requires: nodejs
2021-07-05 17:29:44 +08:00
%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
* Wed Jun 08 2022 tanyulong <tanyulong@kylinos.cn> - 2.0.53-3
- Improve the project according to the requirements of compliance improvement
2022-04-01 17:13:21 +08:00
* Fri Apr 1 2022 liqiuyu <liqiuyu@kylinos.cn> - 2.0.53-2
- add yaml
2021-09-07 11:41:08 +08:00
* Tue Sep 7 2021 liyanan <liyanan32@huawei.com> - 2.0.53-1
- update to 2.0.53
2021-07-05 17:29:44 +08:00
* Mon Jul 05 2021 wangdi <wangdi@kylinos.cn> - 2.0.45-1
- Init package