From 33cde7528207fcd9fce2101a4bfb83e4ac127775 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: May 31 2016 09:11:12 +0000 Subject: import rh-nodejs4-nodejs-balanced-match-0.2.1-3.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..feba55d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/balanced-match-0.2.1.tgz diff --git a/.rh-nodejs4-nodejs-balanced-match.metadata b/.rh-nodejs4-nodejs-balanced-match.metadata new file mode 100644 index 0000000..b10d380 --- /dev/null +++ b/.rh-nodejs4-nodejs-balanced-match.metadata @@ -0,0 +1 @@ +7bc658b4bed61eee424ad74f75f5c3e2c4df3cc7 SOURCES/balanced-match-0.2.1.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-balanced-match.spec b/SPECS/nodejs-balanced-match.spec new file mode 100644 index 0000000..d366e16 --- /dev/null +++ b/SPECS/nodejs-balanced-match.spec @@ -0,0 +1,70 @@ +%{?scl:%scl_package nodejs-balanced-match} +%{!?scl:%global pkg_name %{name}} + +%{?nodejs_find_provides_and_requires} + +%global packagename balanced-match +%global enable_tests 0 +# tests disabled to to reliance on ancient version of 'tape' + +Name: %{?scl_prefix}nodejs-balanced-match +Version: 0.2.1 +Release: 3%{?dist} +Summary: Match balanced character pairs, like "{" and "}" + +License: MIT +URL: https://github.com/juliangruber/balanced-match.git +Source0: https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz + +ExclusiveArch: %{nodejs_arches} noarch +BuildArch: noarch + +BuildRequires: nodejs010-runtime +%if 0%{?enable_tests} +BuildRequires: %{?scl_prefix}mocha +%endif + +Requires: %{?scl_prefix}nodejs + +%description +Match balanced character pairs, like "{" and "}" + +%prep +%setup -q -n package +# setup the tests +#%setup -q -T -D -a 1 -n package + +%build +# nothing to do! + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename} +cp -pr package.json *.js \ + %{buildroot}%{nodejs_sitelib}/%{packagename} + +%nodejs_symlink_deps + +%if 0%{?enable_tests} + +%check +%nodejs_symlink_deps --check +%{?scl:scl enable %{scl} - << \EOF} +make test +%{?scl:EOF} +%endif + +%files +%{!?_licensedir:%global license %doc} +%doc README.md +%license LICENSE.md +%{nodejs_sitelib}/%{packagename} + +%changelog +* Sun Feb 14 2016 Zuzana Svetlikova - 0.2.1-3 +- rebuilt + +* Tue Dec 01 2015 Tomas Hrcka - 0.2.1-2 +- Enable scl macros + +* Tue Oct 20 2015 Jared Smith - 0.2.0-1 +- Initial packaging