diff --git a/.gitignore b/.gitignore index e69de29..e4ef182 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/is-typedarray-1.0.0.tgz diff --git a/nodejs-is-typedarray.spec b/nodejs-is-typedarray.spec new file mode 100644 index 0000000..6096d1c --- /dev/null +++ b/nodejs-is-typedarray.spec @@ -0,0 +1,55 @@ +# needed for building on el6 +%{?nodejs_find_provides_and_requires} + +%global srcname is-typedarray + +Name: nodejs-%{srcname} +Version: 1.0.0 +Release: 1%{?dist} +Summary: Detect whether or not an object is a Typed Array +License: MIT +URL: https://github.com/hughsk/%{srcname} +Source0: https://registry.npmjs.org/%{srcname}/-/%{srcname}-%{version}.tgz + +BuildArch: noarch + +%if 0%{?rhel} == 6 +ExclusiveArch: %{ix86} x86_64 %{arm} noarch +%else +ExclusiveArch: %{nodejs_arches} noarch +%endif + +BuildRequires: nodejs-packaging +BuildRequires: nodejs-tape + +%description +%{summary}. + +%prep +%autosetup -n package +rm -rf node_modules + +%build +#nothing to do + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/%{srcname} + +cp -pr package.json *.js \ + %{buildroot}%{nodejs_sitelib}/%{srcname} + +%nodejs_symlink_deps + +%check +%nodejs_symlink_deps --check +%{__nodejs} test.js + +%files +%{!?_licensedir:%global license %doc} +%doc README.md +%license LICENSE.md +%{nodejs_sitelib}/%{srcname} + +%changelog +* Sun Dec 06 2015 Piotr Popieluch - 1.0.0-1 +- Initial package diff --git a/sources b/sources index e69de29..445ddec 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +d5efec2afc8b29ff367a2127cd1890b2 is-typedarray-1.0.0.tgz