From 731ec905b07fa9dd00661faeb7e91117e9891591 Mon Sep 17 00:00:00 2001 From: Parag A Nemade Date: May 31 2017 13:21:50 +0000 Subject: Initial commit(#1450296) --- diff --git a/.gitignore b/.gitignore index e69de29..e5a5466 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/v1.0.0.tar.gz diff --git a/nodejs-buffer-shims.spec b/nodejs-buffer-shims.spec new file mode 100644 index 0000000..20ef1d3 --- /dev/null +++ b/nodejs-buffer-shims.spec @@ -0,0 +1,53 @@ +%{?nodejs_find_provides_and_requires} + +%global enable_tests 1 +%global packagename buffer-shims + +Name: nodejs-%{packagename} +Version: 1.0.0 +Release: 1%{?dist} +Summary: Some shims for node buffers +License: MIT +URL: https://github.com/calvinmetcalf/%{packagename} +Source0: https://github.com/calvinmetcalf/%{packagename}/archive/v%{version}.tar.gz + +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch + +BuildRequires: nodejs-packaging + +%if 0%{?enable_tests} +BuildRequires: npm(tape) +%endif + +%description +Functions to make sure the new buffer methods work in older browsers. + +%prep +%autosetup -n %{packagename}-%{version} + +%build +#nothing to do + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename} +cp -pr package.json *.js \ + %{buildroot}%{nodejs_sitelib}/%{packagename} + +%nodejs_symlink_deps + +%check +%nodejs_symlink_deps --check +%{__nodejs} -e 'require("./")' +%if 0%{?enable_tests} +tape test/*.js +%endif + +%files +%doc readme.md +%license license.md +%{nodejs_sitelib}/%{packagename} + +%changelog +* Fri May 12 2017 Parag Nemade - 1.0.0-1 +- initial package diff --git a/sources b/sources index e69de29..30100b6 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +SHA512 (v1.0.0.tar.gz) = 707a129cfbf61e2d7874199e50c8209309c1f062fd49e3e5f8a66ccb93ce935210c344e130651dd23bda3d07e253f77be4e6f81841eb14b696900a1befd59ff9