From 74349aea95a44550d40d43230f931bc3ec9d7313 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Apr 26 2017 10:00:00 +0000 Subject: import rh-nodejs6-nodejs-end-of-stream-1.1.0-5.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..80e200d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/end-of-stream-1.1.0.tgz diff --git a/.rh-nodejs6-nodejs-end-of-stream.metadata b/.rh-nodejs6-nodejs-end-of-stream.metadata new file mode 100644 index 0000000..ca944c7 --- /dev/null +++ b/.rh-nodejs6-nodejs-end-of-stream.metadata @@ -0,0 +1 @@ +e9353258baa9108965efc41cb0ef8ade2f3cfb07 SOURCES/end-of-stream-1.1.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-end-of-stream.spec b/SPECS/nodejs-end-of-stream.spec new file mode 100644 index 0000000..280d6a6 --- /dev/null +++ b/SPECS/nodejs-end-of-stream.spec @@ -0,0 +1,68 @@ +%{?scl:%scl_package nodejs-%{module_name}} +%{!?scl:%global pkg_name %{name}} +%{?nodejs_find_provides_and_requires} + +%global enable_tests 0 +%global module_name end-of-stream + +Name: %{?scl_prefix}nodejs-%{module_name} +Version: 1.1.0 +Release: 5%{?dist} +Summary: Call a callback when a readable/writable/duplex stream has completed or failed + +License: MIT +URL: https://github.com/mafintosh/end-of-stream +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(tap) +BuildRequires: %{?scl_prefix}npm(once) +%endif + +%description +%{summary}. + +%prep +%setup -q -n package +rm -rf node_modules + +%nodejs_fixdep once + +%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 +tap test.js +%endif + +%files +%doc README.md LICENSE +%{nodejs_sitelib}/%{module_name} + +%changelog +* Tue Feb 16 2016 Zuzana Svetlikova - 1.1.0-5 +- Use macro in -runtime dependency + +* Sun Feb 14 2016 Zuzana Svetlikova - 1.1.0-4 +- Rebuilt with updated metapackage + +* Thu Jan 14 2016 Tomas Hrcka - 1.1.0-3 +- Enable scl macros + +* Wed Jun 17 2015 Fedora Release Engineering - 1.1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Mon Dec 22 2014 Parag Nemade - 1.1.0-1 +- Initial packaging