diff --git a/README.md b/README.md index 76bba54..ca6ccb8 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ # node-gyp +Node.js native addon build tool. diff --git a/node-gyp.spec b/node-gyp.spec new file mode 100644 index 0000000..f50920c --- /dev/null +++ b/node-gyp.spec @@ -0,0 +1,45 @@ +Name: node-gyp +Version: 7.1.2 +Release: 1mamba +Summary: Node.js native addon build tool +Group: Development/Tools +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/nodejs/node-gyp +Source: https://registry.npmjs.org/node-gyp/-/node-gyp-%{version}.tgz +License: MIT +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END +BuildRequires: nodejs +Requires: nodejs + +%description +Node.js native addon build tool. + +#% debug_package + +%prep +%setup -q -c + +%build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +npm install -g --prefix %{buildroot}%{_prefix} %{SOURCE0} + +rm -rf %{buildroot}%{_prefix}/lib/node_modules/node-gyp/.github + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_bindir}/node-gyp +%dir %{_prefix}/lib/node_modules/node-gyp +%{_prefix}/lib/node_modules/node-gyp/* +%doc package/LICENSE + +%changelog +* Sat Mar 20 2021 Silvan Calarco 7.1.2-1mamba +- package created using the webbuild interface