!3 回退 'Pull Request !2 : Upgrade to 1.2.5'

From: @lyn1001 
Reviewed-by: @starlet-dx, @wang--ge 
Signed-off-by: @wang--ge
This commit is contained in:
openeuler-ci-bot 2023-11-03 09:53:39 +00:00 committed by Gitee
commit b556b0752d
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 9 additions and 12 deletions

View File

@ -1,12 +1,12 @@
%{?nodejs_find_provides_and_requires} %{?nodejs_find_provides_and_requires}
%global enable_tests 1 %global enable_tests 1
Name: nodejs-wordwrap Name: nodejs-wordwrap
Version: 1.2.5 Version: 1.0.0
Release: 1 Release: 1
Summary: Word wrapping library for node Summary: Word wrapping library for node
License: MIT License: MIT
URL: https://github.com/jonschlinkert/word-wrap URL: https://github.com/substack/node-wordwrap
Source0: https://github.com/jonschlinkert/word-wrap/archive/%{version}/word-wrap-%{version}.tar.gz Source0: https://registry.npmjs.org/wordwrap/-/wordwrap-%{version}.tgz
BuildArch: noarch BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging BuildRequires: nodejs-packaging
@ -17,32 +17,29 @@ BuildRequires: npm(tape)
Wrap those words. Show them at what columns to start and stop. Wrap those words. Show them at what columns to start and stop.
%prep %prep
%autosetup -n word-wrap-%{version} -p1 %setup -q -n package
%build %build
%install %install
mkdir -p %{buildroot}%{nodejs_sitelib}/word-wrap mkdir -p %{buildroot}%{nodejs_sitelib}/wordwrap
cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/word-wrap cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/wordwrap
%nodejs_symlink_deps %nodejs_symlink_deps
%check %check
%nodejs_symlink_deps --check %nodejs_symlink_deps --check
%{__nodejs} -e 'require("./")' %{__nodejs} -e 'require("./")'
%if 0%{?enable_tests} %if 0%{?enable_tests}
ln -sf .. node_modules/word-wrap ln -sf .. node_modules/wordwrap
%{_bindir}/tape test/*.js %{_bindir}/tape test/*.js
%endif %endif
%files %files
%{!?_licensedir:%global license %doc} %{!?_licensedir:%global license %doc}
%doc README.md %doc README.markdown example
%license LICENSE %license LICENSE
%{nodejs_sitelib}/word-wrap %{nodejs_sitelib}/wordwrap
%changelog %changelog
* Thu Nov 02 2023 yaoxin <yao_xin001@hoperun.com> - 1.2.5-1
- Upgrade to 1.2.5
* Thu Aug 20 2020 zhanghua <zhanghua40@huawei.com> - 1.0.0-1 * Thu Aug 20 2020 zhanghua <zhanghua40@huawei.com> - 1.0.0-1
- Package init - Package init

Binary file not shown.

BIN
wordwrap-1.0.0.tgz Normal file

Binary file not shown.