diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fe36c8f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/isstream-0.1.2.tgz diff --git a/.rh-nodejs6-nodejs-isstream.metadata b/.rh-nodejs6-nodejs-isstream.metadata new file mode 100644 index 0000000..48f2c01 --- /dev/null +++ b/.rh-nodejs6-nodejs-isstream.metadata @@ -0,0 +1 @@ +47e63f7af55afa6f92e1500e690eb8b8529c099a SOURCES/isstream-0.1.2.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-isstream.spec b/SPECS/nodejs-isstream.spec new file mode 100644 index 0000000..425f258 --- /dev/null +++ b/SPECS/nodejs-isstream.spec @@ -0,0 +1,65 @@ +%{?scl:%scl_package nodejs-isstream} +%{!?scl:%global package name %{name}} +%global npm_name isstream + +%{?nodejs_find_provides_and_requires} + +%{!?scl:%global enable_tests 0} +#tests are missing from npm tarball + +Name: %{?scl_prefix}nodejs-isstream +Version: 0.1.2 +Release: 2%{?dist} +Summary: Determine if an object is a Stream +Url: https://github.com/rvagg/isstream +Source0: https://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz +License: MIT + +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch + +BuildRequires: %{?scl_prefix}nodejs-devel + +%if 0%{?enable_tests} +BuildRequires: npm(core-util-is) +BuildRequires: npm(inherits) +BuildRequires: npm(isarray) +BuildRequires: npm(string_decoder) +BuildRequires: npm(tape) +%endif + +%description +Determine if an object is a Stream + +%prep +%setup -q -n package + +%build +#nothing to do + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name} + +cp -pr package.json isstream.js \ + %{buildroot}%{nodejs_sitelib}/%{npm_name} + +%{nodejs_symlink_deps} + +%if 0%{?enable_tests} +%check +%{nodejs_symlink_deps} --check +tar --xform 's/^package/readable-stream-1.0/' -zxf readable-stream-1.0.*.tgz && tar --xform 's/^package/readable-stream-1.1/' -zxf readable-stream-1.1.*.tgz && node test.js; rm -rf readable-stream-1.?/ +%endif + +%files +%{nodejs_sitelib}/isstream + +%doc README.md +%license LICENSE.md + +%changelog +* Sun Feb 14 2016 Zuzana Svetlikova - 0.1.2-2 +- rebuilt + +* Thu Jul 16 2015 Zuzana Svetlikova - 0.1.2-1 +- Initial build