Upgrade to 1.2.5
This commit is contained in:
parent
88a434baad
commit
35d5ad3519
@ -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.0.0
|
Version: 1.2.5
|
||||||
Release: 1
|
Release: 1
|
||||||
Summary: Word wrapping library for node
|
Summary: Word wrapping library for node
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/substack/node-wordwrap
|
URL: https://github.com/jonschlinkert/word-wrap
|
||||||
Source0: https://registry.npmjs.org/wordwrap/-/wordwrap-%{version}.tgz
|
Source0: https://github.com/jonschlinkert/word-wrap/archive/%{version}/word-wrap-%{version}.tar.gz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
ExclusiveArch: %{nodejs_arches} noarch
|
ExclusiveArch: %{nodejs_arches} noarch
|
||||||
BuildRequires: nodejs-packaging
|
BuildRequires: nodejs-packaging
|
||||||
@ -17,29 +17,32 @@ 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
|
||||||
%setup -q -n package
|
%autosetup -n word-wrap-%{version} -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p %{buildroot}%{nodejs_sitelib}/wordwrap
|
mkdir -p %{buildroot}%{nodejs_sitelib}/word-wrap
|
||||||
cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/wordwrap
|
cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/word-wrap
|
||||||
%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/wordwrap
|
ln -sf .. node_modules/word-wrap
|
||||||
%{_bindir}/tape test/*.js
|
%{_bindir}/tape test/*.js
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%{!?_licensedir:%global license %doc}
|
%{!?_licensedir:%global license %doc}
|
||||||
%doc README.markdown example
|
%doc README.md
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{nodejs_sitelib}/wordwrap
|
%{nodejs_sitelib}/word-wrap
|
||||||
|
|
||||||
%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
|
||||||
|
|||||||
BIN
word-wrap-1.2.5.tar.gz
Normal file
BIN
word-wrap-1.2.5.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user