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 - 2.0.45-1 - Init package