Move ABI dependency generator to nodejs package
Without having any default stream, this generator has to be stream-specific; therefore it is now being shipped by nodejs*-devel for each stream. Related: RHEL-67814
This commit is contained in:
parent
9d5d38fba8
commit
c15d4d3782
@ -19,8 +19,6 @@ Source0007: nodejs-symlink-deps
|
||||
Source0008: nodejs.attr
|
||||
Source0009: nodejs.prov
|
||||
Source0010: nodejs.req
|
||||
Source0011: nodejs_abi.attr
|
||||
Source0012: nodejs_abi.req
|
||||
|
||||
Source0111: nodejs-packaging-bundler
|
||||
|
||||
@ -29,9 +27,6 @@ Source0101: test.tar.gz
|
||||
|
||||
BuildRequires: python3
|
||||
|
||||
# Several of the macros require the /usr/bin/node command, so we need to
|
||||
# ensure that it is present when packaging.
|
||||
Requires: /usr/bin/node
|
||||
Requires: redhat-rpm-config
|
||||
|
||||
%description
|
||||
@ -65,10 +60,8 @@ popd
|
||||
%install
|
||||
install -Dpm0644 macros.nodejs %{buildroot}%{macrosdir}/macros.nodejs
|
||||
install -Dpm0644 nodejs.attr %{buildroot}%{_rpmconfigdir}/fileattrs/nodejs.attr
|
||||
install -Dpm0644 nodejs_abi.attr %{buildroot}%{_rpmconfigdir}/fileattrs/nodejs_abi.attr
|
||||
install -pm0755 nodejs.prov %{buildroot}%{_rpmconfigdir}/nodejs.prov
|
||||
install -pm0755 nodejs.req %{buildroot}%{_rpmconfigdir}/nodejs.req
|
||||
install -pm0755 nodejs_abi.req %{buildroot}%{_rpmconfigdir}/nodejs_abi.req
|
||||
install -pm0755 nodejs-symlink-deps %{buildroot}%{_rpmconfigdir}/nodejs-symlink-deps
|
||||
install -pm0755 nodejs-fixdep %{buildroot}%{_rpmconfigdir}/nodejs-fixdep
|
||||
install -pm0755 nodejs-setversion %{buildroot}%{_rpmconfigdir}/nodejs-setversion
|
||||
|
||||
@ -1,2 +0,0 @@
|
||||
%__nodejs_native_requires %{_rpmconfigdir}/nodejs_abi.req
|
||||
%__nodejs_native_path ^/usr/lib.*/node_modules/.*\\.node$
|
||||
@ -1,8 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Get the ABI version
|
||||
abi_version=$(/usr/bin/node -p process.versions.modules)
|
||||
|
||||
# Write out the Virtual Requires
|
||||
echo "nodejs(abi) = ${abi_version}"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user