From 2c51ec3a42113a6140bc3739f12dd166a12b4ed9 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: May 31 2016 08:56:38 +0000 Subject: import rh-nodejs4-nodejs-pseudomap-1.0.2-1.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..21dc482 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/pseudomap-1.0.2.tgz diff --git a/.rh-nodejs4-nodejs-pseudomap.metadata b/.rh-nodejs4-nodejs-pseudomap.metadata new file mode 100644 index 0000000..9d149ae --- /dev/null +++ b/.rh-nodejs4-nodejs-pseudomap.metadata @@ -0,0 +1 @@ +f052a28da70e618917ef0a8ac34c1ae5a68286b3 SOURCES/pseudomap-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-pseudomap.spec b/SPECS/nodejs-pseudomap.spec new file mode 100644 index 0000000..b4f4878 --- /dev/null +++ b/SPECS/nodejs-pseudomap.spec @@ -0,0 +1,58 @@ +%{?scl:%scl_package nodejs-rimraf} +%{!?scl:%global pkg_name %{name}} + +%global npm_name pseudomap +%{?nodejs_find_provides_and_requires} + +%global enable_tests 0 + +Name: %{?scl_prefix}nodejs-pseudomap +Version: 1.0.2 +Release: 1%{?dist} +Summary: A thing that is a lot like ES6 `Map`, but without iterators, for use in environments where `for..of` syntax and `Map` are not available. +Url: https://github.com/isaacs/pseudomap#readme +Source0: https://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz +License: ISC + +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch + +BuildRequires: %{?scl_prefix}nodejs-devel + +%if 0%{?enable_tests} +BuildRequires: npm(tap) +%endif + +%description +A thing that is a lot like ES6 `Map`, but without iterators, for use in environments where `for..of` syntax and `Map` are not available. + +%prep +%setup -q -n package + +%build +#nothing to do + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name} + +cp -pr package.json map.js pseudomap.js \ + %{buildroot}%{nodejs_sitelib}/%{npm_name} + +%{nodejs_symlink_deps} + +%if 0%{?enable_tests} +%check +%{nodejs_symlink_deps} --check +tap test/*.js +%endif + +%files +%{nodejs_sitelib}/pseudomap + +%doc README.md +%license LICENSE + +%changelog +* Thu Apr 07 2016 Zuzana Svetlikova - 1.0.2-1 +- Initial build +