diff --git a/nodejs-tunnel-agent.spec b/nodejs-tunnel-agent.spec new file mode 100644 index 0000000..f0780a2 --- /dev/null +++ b/nodejs-tunnel-agent.spec @@ -0,0 +1,36 @@ +%{?nodejs_find_provides_and_requires} +Name: nodejs-tunnel-agent +Version: 0.4.2 +Release: 1 +Summary: HTTP proxy tunneling agent +License: ASL 2.0 +URL: https://github.com/request/tunnel-agent +Source0: https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-%{version}.tgz +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch +BuildRequires: nodejs-packaging +%description +%{summary}. + +%prep +%setup -q -n package + +%build + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/tunnel-agent +cp -pr index.js package.json %{buildroot}%{nodejs_sitelib}/tunnel-agent +%nodejs_symlink_deps + +%check +%nodejs_symlink_deps --check +%__nodejs -e "require('./')" + +%files +%doc README.md +%license LICENSE +%{nodejs_sitelib}/tunnel-agent + +%changelog +* Tue Aug 11 2020 zhanghua - 0.4.2-1 +- package init diff --git a/nodejs-tunnel-agent.yaml b/nodejs-tunnel-agent.yaml new file mode 100644 index 0000000..99394ff --- /dev/null +++ b/nodejs-tunnel-agent.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: request/tunnel-agent +tag_pattern: "^v" +seperator: "." diff --git a/tunnel-agent-0.4.2.tgz b/tunnel-agent-0.4.2.tgz new file mode 100644 index 0000000..e6852a8 Binary files /dev/null and b/tunnel-agent-0.4.2.tgz differ