Package init

This commit is contained in:
lei_ju 2020-08-20 20:56:56 +08:00
parent 7115b72f34
commit 906134eecb
3 changed files with 47 additions and 0 deletions

BIN
entities-1.1.1.tgz Normal file

Binary file not shown.

43
nodejs-entities.spec Normal file
View File

@ -0,0 +1,43 @@
%global enable_tests 1
%global srcname entities
Name: nodejs-%{srcname}
Version: 1.1.1
Release: 1
Summary: Encode & decode XML/HTML entities with ease
License: BSD
URL: https://github.com/fb55/node-entities
Source0: http://registry.npmjs.org/entities/-/entities-%{version}.tgz
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging
%if 0%{?enable_tests}
BuildRequires: npm(mocha)
%endif
%description
%{summary}.
%prep
%setup -q -n package
rm -rf node_modules/
%build
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/%{srcname}
cp -pr package.json index.js lib/ maps/ %{buildroot}%{nodejs_sitelib}/%{srcname}
%nodejs_symlink_deps
%if 0%{?enable_tests}
%check
%nodejs_symlink_deps --check
mocha
%endif
%files
%doc readme.md LICENSE
%{nodejs_sitelib}/%{srcname}
%changelog
* Tue Aug 18 2020 leiju <leiju4@huawei.com> - 1.1.1-1
- Package init

4
nodejs-entities.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: fb55/node-entities
tag_prefix: "^v"
seperator: "."