代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/nodejs-difflib 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
%{?nodejs_find_provides_and_requires}
%global packagename difflib
%global enable_tests 1
Name: nodejs-difflib
Version: 0.2.4
Release: 2
Summary: Text diff library ported from Python's difflib module
License: Python
URL: https://github.com/qiao/difflib.js.git
Source0: https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz
Patch0: difflib-0.2.4-fix-test-keywords.patch
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging
%if 0%{?enable_tests}
BuildRequires: coffee-script mocha npm(heap) npm(should)
%endif
%description
Text diff library ported from Python's difflib module
%prep
%setup -q -n package
%patch0 -p1
rm lib/difflib.js
%nodejs_fixdep heap '^0.2.0'
%build
%{_bindir}/coffee -c -b -o lib/ src/difflib.coffee
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
cp -pr package.json *.js lib/ \
%{buildroot}%{nodejs_sitelib}/%{packagename}
%nodejs_symlink_deps
%if 0%{?enable_tests}
%check
%nodejs_symlink_deps --check
%{__nodejs} -e 'require("./")'
%{_bindir}/coffee -c -b test/*.coffee
%{_bindir}/mocha --require should -R spec --ui qunit
%endif
%files
%{!?_licensedir:%global license %doc}
%doc *.md
%license README.md
%{nodejs_sitelib}/%{packagename}
%changelog
* Tue Nov 26 2020 leiju <leiju4@huawei.com> - 0.2.4-2
- delete ExclusiveArch:%{ix86} x86_64 %{arm} noarch
* Tue Aug 18 2020 Anan Fu <fuanan3@huawei.com> - 0.2.4-1
- package init
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。