diff --git a/entities-1.1.1.tgz b/entities-1.1.1.tgz new file mode 100644 index 0000000..d7e67b1 Binary files /dev/null and b/entities-1.1.1.tgz differ diff --git a/nodejs-entities.spec b/nodejs-entities.spec new file mode 100644 index 0000000..aebec0a --- /dev/null +++ b/nodejs-entities.spec @@ -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 - 1.1.1-1 +- Package init diff --git a/nodejs-entities.yaml b/nodejs-entities.yaml new file mode 100644 index 0000000..2b62574 --- /dev/null +++ b/nodejs-entities.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: fb55/node-entities +tag_prefix: "^v" +seperator: "."