nodejs-balanced-match/nodejs-balanced-match.spec

59 lines
1.5 KiB
RPMSpec
Raw Permalink Normal View History

2020-08-28 15:36:14 +08:00
%{?nodejs_find_provides_and_requires}
%global packagename balanced-match
2023-11-09 16:37:12 +08:00
%global enable_tests 1
2020-08-28 15:36:14 +08:00
Name: nodejs-balanced-match
2023-11-07 19:44:36 +08:00
Version: 1.0.0
2023-11-09 16:37:12 +08:00
Release: 3
2020-08-28 15:36:14 +08:00
Summary: Match balanced character pairs, like "{" and "}"
License: MIT
URL: https://github.com/juliangruber/balanced-match.git
2020-09-07 17:55:05 +08:00
Source0: https://github.com/juliangruber/balanced-match/archive/v%{version}.tar.gz
2020-08-28 15:36:14 +08:00
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
2023-11-07 19:44:36 +08:00
%autosetup -n balanced-match-%{version}
2020-08-28 15:36:14 +08:00
%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
2023-11-09 16:37:12 +08:00
* Thu Nov 09 2023 yaoxin <yao_xin001@hoperun.com> - 1.0.0-3
- Revert "solve selfrequires problem"
2023-11-07 19:44:36 +08:00
* Tue Nov 07 2023 yaoxin <yao_xin001@hoperun.com> - 1.0.0-2
- Revert balanced-match version to 1.0.0
* Mon Nov 06 2023 yaoxin <yao_xin001@hoperun.com> - 2.0.0-2
- solve selfrequires problem
2023-11-03 11:28:12 +08:00
* Fri Nov 03 2023 yaoxin <yao_xin001@hoperun.com> - 2.0.0-1
- Upgrade to 2.0.0
2020-08-28 15:36:14 +08:00
* Mon Aug 17 2020 Shaoqiang Kang <kangshaoqiang1@huawei.com> - 1.0.0-1
- Package init