nodejs-balanced-match/nodejs-balanced-match.spec
cherry530 da51c25397 solve selfrequires problem
Signed-off-by: cherry530 <707078654@qq.com>
2023-11-06 15:23:55 +08:00

53 lines
1.3 KiB
RPMSpec

%{?nodejs_find_provides_and_requires}
%global packagename balanced-match
%global enable_tests 0
Name: nodejs-balanced-match
Version: 2.0.0
Release: 2
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} -p1
%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 Nov 06 2023 yaoxin <yao_xin001@hoperun.com> - 2.0.0-2
- solve selfrequires problem
* Fri Nov 03 2023 yaoxin <yao_xin001@hoperun.com> - 2.0.0-1
- Upgrade to 2.0.0
* Mon Aug 17 2020 Shaoqiang Kang <kangshaoqiang1@huawei.com> - 1.0.0-1
- Package init