diff --git a/nodejs-balanced-match.spec b/nodejs-balanced-match.spec new file mode 100644 index 0000000..45a012f --- /dev/null +++ b/nodejs-balanced-match.spec @@ -0,0 +1,46 @@ +%{?nodejs_find_provides_and_requires} +%global packagename balanced-match +%global enable_tests 1 +Name: nodejs-balanced-match +Version: 1.0.0 +Release: 1 +Summary: Match balanced character pairs, like "{" and "}" +License: MIT +URL: https://github.com/juliangruber/balanced-match.git +Source0: https://github.com/juliangruber/balanced-match/archive/v%{version}.tar.gz +ExclusiveArch: %{nodejs_arches} noarch +BuildArch: noarch +BuildRequires: nodejs-packaging +%if 0%{?enable_tests} +BuildRequires: npm(tape) +%endif +%description +Match balanced character pairs, like "{" and "}" + +%prep +%autosetup -n balanced-match-%{version} + +%build + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename} +cp -pr package.json index.js \ + %{buildroot}%{nodejs_sitelib}/%{packagename} +%nodejs_symlink_deps + +%check +%nodejs_symlink_deps --check +%{__nodejs} -e 'require("./")' +%if 0%{?enable_tests} +%{_bindir}/tape test/test.js +%endif + +%files +%{!?_licensedir:%global license %doc} +%doc README.md +%license LICENSE.md +%{nodejs_sitelib}/%{packagename} + +%changelog +* Mon Aug 17 2020 Shaoqiang Kang - 1.0.0-1 +- Package init diff --git a/nodejs-balanced-match.yaml b/nodejs-balanced-match.yaml new file mode 100644 index 0000000..e013663 --- /dev/null +++ b/nodejs-balanced-match.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: juliangruber/balanced-match +tag_prefix: "v" +seperator: "." diff --git a/v1.0.0.tar.gz b/v1.0.0.tar.gz new file mode 100644 index 0000000..c194864 Binary files /dev/null and b/v1.0.0.tar.gz differ