1 Star 0 Fork 2

src-oepkgs-oE-rv/nodejs-difflib

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
nodejs-difflib.spec 1.42 KB
一键复制 编辑 原始数据 按行查看 历史
%{?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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-oepkgs-oe-rv/nodejs-difflib.git
git@gitee.com:src-oepkgs-oe-rv/nodejs-difflib.git
src-oepkgs-oe-rv
nodejs-difflib
nodejs-difflib
master

搜索帮助