%global npm_name configurable-http-proxy Name: nodejs-configurable-http-proxy Version: 4.1.0 Release: 1%{?dist} Summary: A configurable-on-the-fly HTTP Proxy License: BSD-3-Clause Group: Development/Libraries URL: https://github.com/jupyterhub/configurable-http-proxy#readme Source0: https://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tar.gz BuildRequires: nodejs-packaging Requires: npm(commander) >= 2.19.0 Requires: npm(commander) < 2.20.0 Requires: npm(http-proxy) >= 1.17.0 Requires: npm(http-proxy) < 1.18.0 Requires: npm(lynx) >= 0.2.0 Requires: npm(lynx) < 0.3.0 Requires: npm(strftime) >= 0.10.0 Requires: npm(strftime) < 0.11.0 Requires: npm(winston) >= 3.2.0 Requires: npm(winston) < 3.3.0 BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch %description %{summary} %prep %setup -q -n %{npm_name}-%{version} %install mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name} cp -pfr bin %{buildroot}%{nodejs_sitelib}/%{npm_name} cp -pfr index.js %{buildroot}%{nodejs_sitelib}/%{npm_name} cp -pfr lib %{buildroot}%{nodejs_sitelib}/%{npm_name} cp -pfr package.json %{buildroot}%{nodejs_sitelib}/%{npm_name} mkdir -p %{buildroot}%{_bindir} chmod 0755 %{buildroot}%{nodejs_sitelib}/%{npm_name}/bin/configurable-http-proxy ln -sf %{nodejs_sitelib}/%{npm_name}/bin/configurable-http-proxy %{buildroot}%{_bindir}/configurable-http-proxy %nodejs_symlink_deps %check %{nodejs_symlink_deps} --check %files %{nodejs_sitelib}/%{npm_name} %{_bindir}/configurable-http-proxy %license LICENSE %doc CHANGELOG.md %doc README.md %changelog * Wed May 8 2019 Aram Minasyan - 4.1.0-1 - Initial package build, derived from npm2rpm generated spec file.