diff --git a/nodejs-stringstream.spec b/nodejs-stringstream.spec new file mode 100644 index 0000000..058208e --- /dev/null +++ b/nodejs-stringstream.spec @@ -0,0 +1,37 @@ +%global srcname stringstream +Name: nodejs-%{srcname} +Version: 0.0.5 +Release: 1 +Summary: Encode and decode streams into string streams +License: MIT +URL: https://github.com/mhart/StringStream +Source0: https://github.com/mhart/stringstream/archive/v%{version}/stringstream-%{version}.tar.gz +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch +BuildRequires: nodejs-packaging +%description +%{summary}. + +%prep +%autosetup -n StringStream-%{version} +rm -rf node_modules + +%build + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/%{srcname} +cp -pr package.json stringstream.js \ + %{buildroot}%{nodejs_sitelib}/%{srcname} +%nodejs_symlink_deps + +%check +%{__nodejs} -e 'require("./")' + +%files +%doc README.md example.js +%license LICENSE.txt +%{nodejs_sitelib}/%{srcname} + +%changelog +* Wed Aug 12 2020 wangyue - 0.0.5-1 +- package init diff --git a/nodejs-stringstream.yaml b/nodejs-stringstream.yaml new file mode 100644 index 0000000..c6638de --- /dev/null +++ b/nodejs-stringstream.yaml @@ -0,0 +1,5 @@ +git_url: https://github.com/mhart/StringStream +version_control: github +src_repo: mhart/StringStream +tag_prefix: "^v" +seperator: "." diff --git a/stringstream-0.0.5.tar.gz b/stringstream-0.0.5.tar.gz new file mode 100644 index 0000000..5bd78f5 Binary files /dev/null and b/stringstream-0.0.5.tar.gz differ