diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f48f6ec --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/assert-plus-1.0.0.tgz diff --git a/.rh-nodejs6-nodejs-assert-plus.metadata b/.rh-nodejs6-nodejs-assert-plus.metadata new file mode 100644 index 0000000..b2a22f1 --- /dev/null +++ b/.rh-nodejs6-nodejs-assert-plus.metadata @@ -0,0 +1 @@ +f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525 SOURCES/assert-plus-1.0.0.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-assert-plus.spec b/SPECS/nodejs-assert-plus.spec new file mode 100644 index 0000000..d7da9f3 --- /dev/null +++ b/SPECS/nodejs-assert-plus.spec @@ -0,0 +1,77 @@ +%{?scl:%scl_package nodejs-assert-plus} +%{!?scl:%global pkg_name %{name}} +%global enable_tests 0 + +%{?nodejs_find_provides_and_requires} + +Name: %{?scl_prefix}nodejs-assert-plus +Version: 1.0.0 +Release: 1%{?dist} +Summary: Extra assertions on top of node's assert module +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch + +# MIT license text in README.md +License: MIT +URL: https://github.com/mcavage/node-assert-plus +Source0: http://registry.npmjs.org/assert-plus/-/assert-plus-%{version}.tgz + +BuildRequires: %{?scl_prefix}nodejs-devel + +%if 0%{enable_tests} +BuildRequires: %{?scl_prefix}npm(tape) +BuildRequires: %{?scl_prefix}npm(faucet) +%endif + +%description +This library is a super small wrapper over node's assert module that has two +things: (1) the ability to disable assertions with the environment variable +NODE_NDEBUG, and (2) some API wrappers for argument testing. + +%prep +%setup -q -n package + +%build +#nothing to do + +%install + +mkdir -p %{buildroot}%{nodejs_sitelib}/assert-plus +cp -pr package.json assert.js %{buildroot}%{nodejs_sitelib}/assert-plus + +%nodejs_symlink_deps + +%if 0%{enable_tests} +%check +%nodejs_symlink_deps --check +tape tests/*.js | ./node_modules/.bin/faucet +%endif + +%files +%{nodejs_sitelib}/assert-plus +%doc README.md + +%changelog +* Wed Sep 07 2016 Zuzana Svetlikova - 1.0.0-1 +- Updated with script + +* Wed Sep 07 2016 Zuzana Svetlikova - 0.2.0-1 +- Updated with script + +* Tue Feb 16 2016 Zuzana Svetlikova - 0.1.4-3.1 +- Use macro in -runtime dependency + +* Sun Feb 14 2016 Zuzana Svetlikova - 0.1.4-2.1 +- Rebuilt with updated metapackage + +* Wed Dec 11 2013 Tomas Hrcka - 0.1.4-1.1 +- enable scl support + +* Tue Jul 30 2013 T.C. Hollingsworth - 0.1.4-1 +- new upstream release 0.1.4 + +* Sun Jun 23 2013 T.C. Hollingsworth - 0.1.3-2 +- restrict to compatible arches + +* Thu Jun 13 2013 T.C. Hollingsworth - 0.1.3-1 +- initial package