diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..242e4fe --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/stream-shift-1.0.0.tgz diff --git a/.rh-nodejs6-nodejs-stream-shift.metadata b/.rh-nodejs6-nodejs-stream-shift.metadata new file mode 100644 index 0000000..bf5c1d4 --- /dev/null +++ b/.rh-nodejs6-nodejs-stream-shift.metadata @@ -0,0 +1 @@ +d5c752825e5367e786f78e18e445ea223a155952 SOURCES/stream-shift-1.0.0.tgz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/nodejs-stream-shift.spec b/SPECS/nodejs-stream-shift.spec new file mode 100644 index 0000000..4292c4d --- /dev/null +++ b/SPECS/nodejs-stream-shift.spec @@ -0,0 +1,62 @@ +%{?scl:%scl_package nodejs-%{module_name}} +%{!?scl:%global pkg_name %{name}} +%{?nodejs_find_provides_and_requires} + +%global enable_tests 0 +%global module_name stream-shift + +Name: %{?scl_prefix}nodejs-%{module_name} +Version: 1.0.0 +Release: 3%{?dist} +Summary: Returns the next buffer/object in a stream's readable queue + +License: MIT +URL: https://github.com/mafintosh/stream-shift +Source0: http://registry.npmjs.org/%{module_name}/-/%{module_name}-%{version}.tgz +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch + +BuildRequires: %{?scl_prefix}nodejs-devel + +%if 0%{?enable_tests} +BuildRequires: %{?scl_prefix}npm(tape) +BuildRequires: %{?scl_prefix}npm(through2) +%endif + +%description +%{summary}. + +%prep +%autosetup -n package +rm -rf node_modules + +%build +# nothing to build + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name} +cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/%{module_name} +%nodejs_symlink_deps + +%if 0%{?enable_tests} + +%check +%nodejs_symlink_deps --check +%{__nodejs} -e 'require("./")' +tape test.js +%endif + +%files +%doc README.md +%license LICENSE +%{nodejs_sitelib}/%{module_name} + +%changelog +* Tue Nov 01 2016 Zuzana Svetlikova - 1.0.0-3 +- Missing macro + +* Tue Nov 01 2016 Zuzana Svetlikova - 1.0.0-2 +- Convert to scl + +* Sat Sep 03 2016 Parag Nemade - 1.0.0-1 +- Initial packaging