nodejs-abbrev/nodejs-abbrev.spec

39 lines
984 B
RPMSpec
Raw Permalink Normal View History

2020-08-20 10:53:54 +08:00
%{?nodejs_find_provides_and_requires}
Name: nodejs-abbrev
2022-06-29 08:36:56 +00:00
Version: 1.1.1
2020-08-20 10:53:54 +08:00
Release: 1
Summary: Abbreviation calculator for Node.js
License: MIT
URL: https://github.com/isaacs/abbrev-js
2022-06-29 08:36:56 +00:00
Source0: https://github.com/npm/abbrev-js/archive/refs/tags/v1.1.1.tar.gz
2020-08-20 10:53:54 +08:00
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging
%description
Calculate the set of unique abbreviations for a given set of strings.
%prep
2022-06-29 08:36:56 +00:00
%autosetup -n abbrev-js-%{version}
2020-08-20 10:53:54 +08:00
%build
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/abbrev
cp -pr abbrev.js package.json %{buildroot}%{nodejs_sitelib}/abbrev
%nodejs_symlink_deps
%check
node abbrev.js
%files
%{nodejs_sitelib}/abbrev
%doc README.md
%license LICENSE
%changelog
2022-06-29 08:36:56 +00:00
* Wed Jun 29 2022 chenchen <chen_aka_jan@163.com> - 1.1.1-1
- Update to 1.1.1
2020-08-20 10:53:54 +08:00
* Sat Aug 8 2020 wutao <wutao61@huawei.com> - 1.0.7-1
- package init