diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..40be43e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/is-buffer-1.0.2.tgz diff --git a/.nodejs010-nodejs-is-buffer.metadata b/.nodejs010-nodejs-is-buffer.metadata new file mode 100644 index 0000000..692eb2d --- /dev/null +++ b/.nodejs010-nodejs-is-buffer.metadata @@ -0,0 +1 @@ +f5c6c051d73f86f11b4ee14267cc1029fce261d0 SOURCES/is-buffer-1.0.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-is-buffer.spec b/SPECS/nodejs-is-buffer.spec new file mode 100644 index 0000000..0494d41 --- /dev/null +++ b/SPECS/nodejs-is-buffer.spec @@ -0,0 +1,44 @@ +%{?scl:%scl_package nodejs-%{npm_name}} +%{!?scl:%global pkg_name %{name}} +%{?nodejs_find_provides_and_requires} + +%global npm_name is-buffer + +Summary: Determine if an object is Buffer +Name: %{?scl_prefix}nodejs-%{npm_name} +Version: 1.0.2 +Release: 2%{?dist} +License: MIT +URL: https://github.com/feross/is-buffer +Source0: http://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz +BuildRequires: %{?scl_prefix}runtime +ExclusiveArch: %{nodejs_arches} noarch +BuildArch: noarch +Provides: %{?scl_prefix}nodejs-%{npm_name} = %{version} + +%description +This module lets you check if an object is a Buffer without +using Buffer.isBuffer (which includes the whole buffer module +in browserify). + +It's future-proof and works in node too! + +%prep +%setup -q -n package + +%build + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name} +cp -pr index.js package.json test %{buildroot}%{nodejs_sitelib}/%{npm_name} + +%files +%doc LICENSE README.md +%{nodejs_sitelib}/%{npm_name} + +%changelog +* Thu Jan 14 2016 Tomas Hrcka - 1.0.2-2 +- Enable scl macros + +* Thu Sep 10 2015 Troy Dawson - 1.0.2-1 +- Initial package