!1 package init

Merge pull request !1 from zhanghua/master
This commit is contained in:
openeuler-ci-bot 2020-08-22 12:42:00 +08:00 committed by Gitee
commit 88a434baad
3 changed files with 49 additions and 0 deletions

45
nodejs-wordwrap.spec Normal file
View File

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

4
nodejs-wordwrap.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: substack/node-wordwrap
tag_pattern: "^wordwrap-"
seperator: "."

BIN
wordwrap-1.0.0.tgz Normal file

Binary file not shown.