diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7e340b5 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/read-all-stream-65f188a.tar.gz diff --git a/.rh-nodejs4-nodejs-read-all-stream.metadata b/.rh-nodejs4-nodejs-read-all-stream.metadata new file mode 100644 index 0000000..673c6b2 --- /dev/null +++ b/.rh-nodejs4-nodejs-read-all-stream.metadata @@ -0,0 +1 @@ +72590ffc7b697cc844160515ce537fe98b3f1d8b SOURCES/read-all-stream-65f188a.tar.gz 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-read-all-stream.spec b/SPECS/nodejs-read-all-stream.spec new file mode 100644 index 0000000..9010f2a --- /dev/null +++ b/SPECS/nodejs-read-all-stream.spec @@ -0,0 +1,88 @@ +%{?scl:%scl_package nodejs-%{module_name}} +%{!?scl:%global pkg_name %{name}} +%{?nodejs_find_provides_and_requires} + +%global enable_tests 0 +%global module_name read-all-stream +%global commit0 65f188a592577e590e2be30ff9d7b17d3c8e444c +%global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) + +Name: %{?scl_prefix}nodejs-%{module_name} +Version: 3.0.1 +Release: 6%{?dist} +Summary: Read all stream content and pass it to callback + +License: MIT +URL: https://github.com/floatdrop/read-all-stream +Source0: https://github.com/floatdrop/%{module_name}/archive/%{commit0}.tar.gz#/%{module_name}-%{shortcommit0}.tar.gz +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch + +BuildRequires: nodejs010-runtime + +%if 0%{?enable_tests} +BuildRequires: %{?scl_prefix}npm(mocha) +BuildRequires: %{?scl_prefix}npm(readable-stream) +BuildRequires: %{?scl_prefix}npm(pinkie-promise) +%endif + +%description +%{summary}. + +%prep +%setup -q -n %{module_name}-%{commit0} +rm -rf node_modules + +%nodejs_fixdep pinkie-promise "^2.0.0" + +%build +# nothing to build + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name} +cp -pr package.json *.js %{buildroot}%{nodejs_sitelib}/%{module_name} +%nodejs_symlink_deps + +%if 0%{?enable_tests} + +%check +%nodejs_symlink_deps --check +mocha +%endif + +%files +%{!?_licensedir:%global license %doc} +%doc readme.md +%license license +%{nodejs_sitelib}/%{module_name} + +%changelog +* Sun Feb 14 2016 Zuzana Svetlikova - 3.0.1-6 +- rebuilt + +* Tue Jan 12 2016 Tomas Hrcka - 3.0.1-5 +- Use macro to find provides and requires + +* Tue Jan 12 2016 Tomas Hrcka - 3.0.1-4 +- Enable scl macros, fix license macro for el6 + +* Thu Nov 26 2015 Parag Nemade - 3.0.1-3 +- fixdep npm(pinkie-promise) + +* Fri Aug 07 2015 Parag Nemade - 3.0.1-2 +- Update to 3.0.1 + +* Sat Jul 18 2015 Parag Nemade - 3.0.0-2 +- Add missing BR:npm(readable-stream) + +* Wed Jul 15 2015 Parag Nemade - 3.0.0-1 +- Update to 3.0.0 + +* Thu Jan 22 2015 Parag Nemade - 1.0.1-1 +- Update to 1.0.1 + +* Sun Dec 07 2014 Parag Nemade - 0.1.2-2 +- Add test.js from upstream and enable tests + +* Thu Dec 04 2014 Parag Nemade - 0.1.2-1 +- Initial packaging \ No newline at end of file